Message variant value (variant-typed implementation) More...
#include <MessageVariant.h>
Public Member Functions | |
ValuePtr | clone () const |
Clone this variant value (implementation) | |
Serializer | createSerializer (const DataType &type) const |
Create a serializer for this variant (implementation) | |
Variant | getMember (int index) const |
Retrieve a member of the variant collection by index (implementation) | |
Variant | getMember (const std::string &name) const |
Retrieve a member of the variant collection by name (implementation) | |
const std::string & | getMemberName (int index) const |
Retrieve the name of the message member with the specified index (implementation) | |
size_t | getNumMembers () const |
Retrieve the number of members of the variant collection (implementation) | |
bool | hasMember (const std::string &name) const |
True, if the variant collection contains the member with the specified name (implementation) | |
void | setMember (int index, const Variant &member) |
Set a member of the variant collection by index (implementation) | |
void | setMember (const std::string &name, const Variant &member) |
Set a member of the variant collection by name (implementation) | |
ValueImplV (const MessageFieldCollection< Variant > &members=MessageFieldCollection< Variant >()) | |
Default constructor. | |
ValueImplV (const ValueImplV &src) | |
Copy constructor. | |
virtual | ~ValueImplV () |
Destructor. | |
Public Attributes | |
MessageFieldCollection< Variant > | members |
The message members. |
Message variant value (variant-typed implementation)
Definition at line 89 of file MessageVariant.h.
variant_topic_tools::MessageVariant::ValueImplV::ValueImplV | ( | const MessageFieldCollection< Variant > & | members = MessageFieldCollection<Variant>() | ) |
Default constructor.
Definition at line 59 of file MessageVariant.cpp.
Copy constructor.
Definition at line 64 of file MessageVariant.cpp.
Destructor.
Definition at line 68 of file MessageVariant.cpp.
Variant::ValuePtr variant_topic_tools::MessageVariant::ValueImplV::clone | ( | ) | const [virtual] |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 136 of file MessageVariant.cpp.
Serializer variant_topic_tools::MessageVariant::ValueImplV::createSerializer | ( | const DataType & | type | ) | const [virtual] |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 140 of file MessageVariant.cpp.
Variant variant_topic_tools::MessageVariant::ValueImplV::getMember | ( | int | index | ) | const [virtual] |
Retrieve a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 96 of file MessageVariant.cpp.
Variant variant_topic_tools::MessageVariant::ValueImplV::getMember | ( | const std::string & | name | ) | const [virtual] |
Retrieve a member of the variant collection by name (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 100 of file MessageVariant.cpp.
const std::string & variant_topic_tools::MessageVariant::ValueImplV::getMemberName | ( | int | index | ) | const [virtual] |
Retrieve the name of the message member with the specified index (implementation)
Implements variant_topic_tools::MessageVariant::Value.
Definition at line 104 of file MessageVariant.cpp.
size_t variant_topic_tools::MessageVariant::ValueImplV::getNumMembers | ( | ) | const [virtual] |
Retrieve the number of members of the variant collection (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 82 of file MessageVariant.cpp.
bool variant_topic_tools::MessageVariant::ValueImplV::hasMember | ( | const std::string & | name | ) | const [virtual] |
True, if the variant collection contains the member with the specified name (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 109 of file MessageVariant.cpp.
void variant_topic_tools::MessageVariant::ValueImplV::setMember | ( | int | index, |
const Variant & | member | ||
) | [virtual] |
Set a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 86 of file MessageVariant.cpp.
void variant_topic_tools::MessageVariant::ValueImplV::setMember | ( | const std::string & | name, |
const Variant & | member | ||
) | [virtual] |
Set a member of the variant collection by name (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 91 of file MessageVariant.cpp.
The message members.
Definition at line 150 of file MessageVariant.h.