Constant message member. More...
#include <MessageConstant.h>
Classes | |
class | Impl |
Message constant implementation. More... | |
Public Member Functions | |
const Variant & | getValue () const |
Retrieve the value of this message constant. | |
MessageConstant () | |
Default constructor. | |
MessageConstant (const MessageConstant &src) | |
Copy constructor. | |
MessageConstant (const MessageMember &src) | |
Copy constructor (overloaded version taking a message member) | |
~MessageConstant () | |
Destructor. | |
Protected Member Functions | |
MessageConstant (const std::string &name, const Variant &value) | |
Constructor (overloaded version taking a name and a variant value) | |
MessageConstant (const std::string &name, const DataType &type, const std::string &value) | |
Constructor (overloaded version taking a name, a data type, and a string value) | |
Static Protected Member Functions | |
template<typename T > | |
static MessageConstant | create (const std::string &name, const T &value) |
Create a message constant. | |
Friends | |
class | MessageDataType |
class | MessageMember |
Constant message member.
Definition at line 32 of file MessageConstant.h.
Default constructor.
Definition at line 30 of file MessageConstant.cpp.
Copy constructor.
Definition at line 54 of file MessageConstant.cpp.
Copy constructor (overloaded version taking a message member)
Definition at line 58 of file MessageConstant.cpp.
Destructor.
Definition at line 64 of file MessageConstant.cpp.
variant_topic_tools::MessageConstant::MessageConstant | ( | const std::string & | name, |
const Variant & | value | ||
) | [protected] |
Constructor (overloaded version taking a name and a variant value)
Definition at line 33 of file MessageConstant.cpp.
variant_topic_tools::MessageConstant::MessageConstant | ( | const std::string & | name, |
const DataType & | type, | ||
const std::string & | value | ||
) | [protected] |
Constructor (overloaded version taking a name, a data type, and a string value)
Definition at line 38 of file MessageConstant.cpp.
static MessageConstant variant_topic_tools::MessageConstant::create | ( | const std::string & | name, |
const T & | value | ||
) | [static, protected] |
Create a message constant.
const Variant & variant_topic_tools::MessageConstant::getValue | ( | ) | const |
Retrieve the value of this message constant.
Definition at line 81 of file MessageConstant.cpp.
friend class MessageDataType [friend] |
Reimplemented from variant_topic_tools::MessageMember.
Definition at line 34 of file MessageConstant.h.
friend class MessageMember [friend] |
Definition at line 35 of file MessageConstant.h.