19 #ifndef RQT_MULTIPLOT_MESSAGE_FIELD_ITEM_MODEL_H 20 #define RQT_MULTIPLOT_MESSAGE_FIELD_ITEM_MODEL_H 22 #include <QAbstractItemModel> 26 #include <variant_topic_tools/MessageDataType.h> 30 public QAbstractItemModel {
44 QVariant
data(
const QModelIndex&
index,
int role)
const;
45 QModelIndex
index(
int row,
int column,
const QModelIndex& parent)
const;
46 QModelIndex
parent(
const QModelIndex& index)
const;
48 void update(
const QString& path);
virtual ~MessageFieldItemModel()
QModelIndex index(int row, int column, const QModelIndex &parent) const
int columnCount(const QModelIndex &parent) const
MessageFieldItem * rootItem_
QModelIndex parent(const QModelIndex &index) const
int rowCount(const QModelIndex &parent) const
MessageFieldItemModel(QObject *parent=0)
void update(const QString &path)
QVariant data(const QModelIndex &index, int role) const
variant_topic_tools::DataType getFieldDataType(const QString &field) const
void setMessageDataType(const variant_topic_tools::MessageDataType &dataType)
variant_topic_tools::MessageDataType getMessageDataType() const