Message data type implementation. More...
#include <MessageDataType.h>
Public Member Functions | |
virtual void | addConstantMember (const MessageConstant &member)=0 |
Add a constant member to this message data type (abstract declaration) More... | |
virtual void | addVariableMember (const MessageVariable &member)=0 |
Add a variable member to this message data type (abstract declaration) More... | |
virtual const std::string & | getDefinition () const =0 |
Retrieve the definition this message data type (abstract declaration) More... | |
virtual std::string | getMD5Sum () const =0 |
Retrieve the MD5 sum of this message data type (abstract declaration) More... | |
Impl (const MessageFieldCollection< MessageConstant > &constantMembers, const MessageFieldCollection< MessageVariable > &variableMembers) | |
Constructor (overloaded version taking a collection of constant members and a collection of variable members) More... | |
Impl (const std::string &identifier, const std::string &definition) | |
Constructor (overloaded version taking a definition) More... | |
virtual | ~Impl () |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::DataType::Impl | |
virtual Serializer | createSerializer (const DataType &type) const =0 |
Create a serializer for this data type (abstract declaration) More... | |
virtual Variant | createVariant (const DataType &type) const =0 |
Create a variant from this data type (abstract declaration) More... | |
virtual const std::string & | getIdentifier () const =0 |
Retrieve the identifier representing this data type (abstract declaration) More... | |
virtual size_t | getSize () const =0 |
Retrieve the size of the instances of this data type (abstract declaration) More... | |
virtual const std::type_info & | getTypeInfo () const |
Retrieve the type information associated with this data type. More... | |
Impl () | |
Constructor. More... | |
virtual bool | isFixedSize () const =0 |
True, if this data type represents a fixed-size data type (abstract declaration) More... | |
virtual bool | isSimple () const =0 |
True, if this data type represents a simple data type (abstract declaration) More... | |
Public Attributes | |
MessageFieldCollection< MessageConstant > | constantMembers |
The constant members of this message data type. More... | |
MessageFieldCollection< MessageVariable > | variableMembers |
The variable members of this message data type. More... | |
Message data type implementation.
Definition at line 168 of file MessageDataType.h.
variant_topic_tools::MessageDataType::Impl::Impl | ( | const MessageFieldCollection< MessageConstant > & | constantMembers, |
const MessageFieldCollection< MessageVariable > & | variableMembers | ||
) |
Constructor (overloaded version taking a collection of constant members and a collection of variable members)
Definition at line 66 of file MessageDataType.cpp.
variant_topic_tools::MessageDataType::Impl::Impl | ( | const std::string & | identifier, |
const std::string & | definition | ||
) |
Constructor (overloaded version taking a definition)
Definition at line 80 of file MessageDataType.cpp.
|
virtual |
Destructor.
Reimplemented from variant_topic_tools::DataType::Impl.
Definition at line 151 of file MessageDataType.cpp.
|
pure virtual |
Add a constant member to this message data type (abstract declaration)
Implemented in variant_topic_tools::MessageDataType::ImplT< T >, and variant_topic_tools::MessageDataType::ImplV.
|
pure virtual |
Add a variable member to this message data type (abstract declaration)
Implemented in variant_topic_tools::MessageDataType::ImplT< T >, and variant_topic_tools::MessageDataType::ImplV.
|
pure virtual |
Retrieve the definition this message data type (abstract declaration)
Implemented in variant_topic_tools::MessageDataType::ImplT< T >, and variant_topic_tools::MessageDataType::ImplV.
|
pure virtual |
Retrieve the MD5 sum of this message data type (abstract declaration)
Implemented in variant_topic_tools::MessageDataType::ImplT< T >, and variant_topic_tools::MessageDataType::ImplV.
MessageFieldCollection<MessageConstant> variant_topic_tools::MessageDataType::Impl::constantMembers |
The constant members of this message data type.
Definition at line 207 of file MessageDataType.h.
MessageFieldCollection<MessageVariable> variant_topic_tools::MessageDataType::Impl::variableMembers |
The variable members of this message data type.
Definition at line 211 of file MessageDataType.h.