00001 #ifndef _UTITLITIES_MESSAGE_FIELD_H_ 00002 #define _UTITLITIES_MESSAGE_FIELD_H_ 00003 00004 #include <QObject> 00005 #include <variant_topic_tools/BuiltinVariant.h> 00006 00007 namespace utilities 00008 { 00009 class Message; 00010 00011 class MessageField : public QObject 00012 { 00013 Q_OBJECT 00014 public: 00015 MessageField(QObject* parent, const QString& type, const QString& field); 00016 virtual ~MessageField(); 00017 QString getType() const; 00018 QString getField() const; 00019 void setType(const QString& type); 00020 void setField(const QString& field); 00021 variant_topic_tools::BuiltinVariant 00022 getFieldValue(const Message& message); 00023 00024 private: 00025 QString type_; 00026 QString field_; 00027 }; 00028 } 00029 00030 #endif // _UTITLITIES_MESSAGE_FIELD_H_