Message data type implementation (variant-typed version) More...
#include <MessageDataType.h>
Public Member Functions | |
void | addConstantMember (const MessageConstant &member) |
Add a constant member to this message data type (implementation) More... | |
void | addVariableMember (const MessageVariable &member) |
Add a variable member to this message data type (implementation) More... | |
Serializer | createSerializer (const DataType &type) const |
Create a serializer for this data type (re-implementation) More... | |
Variant | createVariant (const DataType &type) const |
Create a variant from this data type (re-implementation) More... | |
const std::string & | getDefinition () const |
Retrieve the definition this message data type (implementation) More... | |
const std::string & | getIdentifier () const |
Retrieve the identifier representing this data type (implementation) More... | |
std::string | getMD5Sum () const |
Retrieve the MD5 sum of this message data type (implementation) More... | |
size_t | getSize () const |
Retrieve the size of the instances of this data type (implementation) More... | |
ImplV (const std::string &identifier, const MessageFieldCollection< MessageConstant > &constantMembers, const MessageFieldCollection< MessageVariable > &variableMembers) | |
Constructor (overloaded version taking an identifier, a sequence of constant members, and a sequence of variable members) More... | |
ImplV (const std::string &identifier, const std::string &definition) | |
Constructor (overloaded version taking an identifier and a definition) More... | |
bool | isFixedSize () const |
True, if this data type represents a fixed-size data type (implementation) More... | |
bool | isSimple () const |
True, if this data type represents a simple data type (implementation) More... | |
void | recalculateMD5Sum () |
Re-calculate the MD5 sum of this message data type. More... | |
virtual | ~ImplV () |
Destructor. More... | |
Public Member Functions inherited from 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) 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 const std::type_info & | getTypeInfo () const |
Retrieve the type information associated with this data type. More... | |
Impl () | |
Constructor. More... | |
Public Attributes | |
std::string | definition |
The definition of this message data type. More... | |
std::string | identifier |
The identifier representing this message data type. More... | |
MD5Sum | md5Sum |
The MD5 sum of this message data type. More... | |
Public Attributes inherited from variant_topic_tools::MessageDataType::Impl | |
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 (variant-typed version)
Definition at line 216 of file MessageDataType.h.
variant_topic_tools::MessageDataType::ImplV::ImplV | ( | const std::string & | identifier, |
const MessageFieldCollection< MessageConstant > & | constantMembers, | ||
const MessageFieldCollection< MessageVariable > & | variableMembers | ||
) |
Constructor (overloaded version taking an identifier, a sequence of constant members, and a sequence of variable members)
Definition at line 154 of file MessageDataType.cpp.
variant_topic_tools::MessageDataType::ImplV::ImplV | ( | const std::string & | identifier, |
const std::string & | definition | ||
) |
Constructor (overloaded version taking an identifier and a definition)
Definition at line 172 of file MessageDataType.cpp.
|
virtual |
Destructor.
Definition at line 180 of file MessageDataType.cpp.
|
virtual |
Add a constant member to this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
Definition at line 405 of file MessageDataType.cpp.
|
virtual |
Add a variable member to this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
Definition at line 417 of file MessageDataType.cpp.
|
virtual |
Create a serializer for this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 384 of file MessageDataType.cpp.
|
virtual |
Create a variant from this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 395 of file MessageDataType.cpp.
|
virtual |
Retrieve the definition this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
Definition at line 320 of file MessageDataType.cpp.
|
virtual |
Retrieve the identifier representing this data type (implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 312 of file MessageDataType.cpp.
|
virtual |
Retrieve the MD5 sum of this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
Definition at line 316 of file MessageDataType.cpp.
|
virtual |
Retrieve the size of the instances of this data type (implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 324 of file MessageDataType.cpp.
|
virtual |
True, if this data type represents a fixed-size data type (implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 337 of file MessageDataType.cpp.
|
virtual |
True, if this data type represents a simple data type (implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 346 of file MessageDataType.cpp.
void variant_topic_tools::MessageDataType::ImplV::recalculateMD5Sum | ( | ) |
Re-calculate the MD5 sum of this message data type.
Definition at line 429 of file MessageDataType.cpp.
std::string variant_topic_tools::MessageDataType::ImplV::definition |
The definition of this message data type.
Definition at line 297 of file MessageDataType.h.
std::string variant_topic_tools::MessageDataType::ImplV::identifier |
The identifier representing this message data type.
Definition at line 289 of file MessageDataType.h.
MD5Sum variant_topic_tools::MessageDataType::ImplV::md5Sum |
The MD5 sum of this message data type.
Definition at line 293 of file MessageDataType.h.