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) | |
void | addVariableMember (const MessageVariable &member) |
Add a variable member to this message data type (implementation) | |
Serializer | createSerializer (const DataType &type) const |
Create a serializer for this data type (re-implementation) | |
Variant | createVariant (const DataType &type) const |
Create a variant from this data type (re-implementation) | |
const std::string & | getDefinition () const |
Retrieve the definition this message data type (implementation) | |
const std::string & | getIdentifier () const |
Retrieve the identifier representing this data type (implementation) | |
std::string | getMD5Sum () const |
Retrieve the MD5 sum of this message data type (implementation) | |
size_t | getSize () const |
Retrieve the size of the instances of this data type (implementation) | |
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) | |
ImplV (const std::string &identifier, const std::string &definition) | |
Constructor (overloaded version taking an identifier and a definition) | |
bool | isFixedSize () const |
True, if this data type represents a fixed-size data type (implementation) | |
bool | isSimple () const |
True, if this data type represents a simple data type (implementation) | |
void | recalculateMD5Sum () |
Re-calculate the MD5 sum of this message data type. | |
virtual | ~ImplV () |
Destructor. | |
Public Attributes | |
std::string | definition |
The definition of this message data type. | |
std::string | identifier |
The identifier representing this message data type. | |
MD5Sum | md5Sum |
The MD5 sum of this message data type. |
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.
variant_topic_tools::MessageDataType::ImplV::~ImplV | ( | ) | [virtual] |
Destructor.
Definition at line 180 of file MessageDataType.cpp.
void variant_topic_tools::MessageDataType::ImplV::addConstantMember | ( | const MessageConstant & | member | ) | [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.
void variant_topic_tools::MessageDataType::ImplV::addVariableMember | ( | const MessageVariable & | member | ) | [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.
Serializer variant_topic_tools::MessageDataType::ImplV::createSerializer | ( | const DataType & | type | ) | const [virtual] |
Create a serializer for this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 384 of file MessageDataType.cpp.
Variant variant_topic_tools::MessageDataType::ImplV::createVariant | ( | const DataType & | type | ) | const [virtual] |
Create a variant from this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 395 of file MessageDataType.cpp.
const std::string & variant_topic_tools::MessageDataType::ImplV::getDefinition | ( | ) | const [virtual] |
Retrieve the definition this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
Definition at line 320 of file MessageDataType.cpp.
const std::string & variant_topic_tools::MessageDataType::ImplV::getIdentifier | ( | ) | const [virtual] |
Retrieve the identifier representing this data type (implementation)
Implements variant_topic_tools::DataType::Impl.
Definition at line 312 of file MessageDataType.cpp.
std::string variant_topic_tools::MessageDataType::ImplV::getMD5Sum | ( | ) | const [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.
size_t variant_topic_tools::MessageDataType::ImplV::getSize | ( | ) | const [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.
bool variant_topic_tools::MessageDataType::ImplV::isFixedSize | ( | ) | const [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.
bool variant_topic_tools::MessageDataType::ImplV::isSimple | ( | ) | const [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.
Re-calculate the MD5 sum of this message data type.
Definition at line 429 of file MessageDataType.cpp.
The definition of this message data type.
Definition at line 297 of file MessageDataType.h.
The identifier representing this message data type.
Definition at line 289 of file MessageDataType.h.
The MD5 sum of this message data type.
Definition at line 293 of file MessageDataType.h.