MessageFieldItem.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2015 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
19 #ifndef RQT_MULTIPLOT_MESSAGE_FIELD_ITEM_H
20 #define RQT_MULTIPLOT_MESSAGE_FIELD_ITEM_H
21 
22 #include <QList>
23 #include <QString>
24 
25 #include <variant_topic_tools/DataType.h>
26 
27 namespace rqt_multiplot {
29  public:
30  MessageFieldItem(const variant_topic_tools::DataType& dataType,
31  MessageFieldItem* parent = 0, const QString& name = QString());
33 
34  MessageFieldItem* getParent() const;
35  size_t getNumChildren() const;
36  MessageFieldItem* getChild(size_t row) const;
37  MessageFieldItem* getChild(const QString& name) const;
38  MessageFieldItem* getDescendant(const QString& path) const;
39  int getRow() const;
40  size_t getNumColumns() const;
41  const QString& getName() const;
42  const variant_topic_tools::DataType& getDataType() const;
43 
44  void appendChild(MessageFieldItem* child);
45 
46  void update(const QString& path);
47 
48  private:
50  QList<MessageFieldItem*> children_;
51 
52  QString name_;
53  variant_topic_tools::DataType dataType_;
54  };
55 };
56 
57 #endif
const QString & getName() const
MessageFieldItem(const variant_topic_tools::DataType &dataType, MessageFieldItem *parent=0, const QString &name=QString())
MessageFieldItem * getChild(size_t row) const
const variant_topic_tools::DataType & getDataType() const
MessageFieldItem * getParent() const
MessageFieldItem * getDescendant(const QString &path) const
void update(const QString &path)
variant_topic_tools::DataType dataType_
void appendChild(MessageFieldItem *child)
QList< MessageFieldItem * > children_


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44