Message variant value (variant-typed implementation) More...
#include <MessageVariant.h>

Public Member Functions | |
| ValuePtr | clone () const |
| Clone this variant value (implementation) More... | |
| Serializer | createSerializer (const DataType &type) const |
| Create a serializer for this variant (implementation) More... | |
| Variant | getMember (int index) const |
| Retrieve a member of the variant collection by index (implementation) More... | |
| Variant | getMember (const std::string &name) const |
| Retrieve a member of the variant collection by name (implementation) More... | |
| const std::string & | getMemberName (int index) const |
| Retrieve the name of the message member with the specified index (implementation) More... | |
| size_t | getNumMembers () const |
| Retrieve the number of members of the variant collection (implementation) More... | |
| bool | hasMember (const std::string &name) const |
| True, if the variant collection contains the member with the specified name (implementation) More... | |
| void | setMember (int index, const Variant &member) |
| Set a member of the variant collection by index (implementation) More... | |
| void | setMember (const std::string &name, const Variant &member) |
| Set a member of the variant collection by name (implementation) More... | |
| ValueImplV (const MessageFieldCollection< Variant > &members=MessageFieldCollection< Variant >()) | |
| Default constructor. More... | |
| ValueImplV (const ValueImplV &src) | |
| Copy constructor. More... | |
| virtual | ~ValueImplV () |
| Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::MessageVariant::Value | |
| void | setValue (const Variant::Value &value) |
| Set the variant's value (implementation) More... | |
| Value () | |
| Default constructor. More... | |
| void | writeMember (std::ostream &stream, int index) const |
| Write the variant collection member with the specified index to a stream (implementation) More... | |
| virtual | ~Value () |
| Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::CollectionVariant::Value | |
| Variant | getMember (const std::string &name, size_t pos) const |
| Recursively retrieve a member of the collection by name. More... | |
| bool | hasMember (const std::string &name, size_t pos) const |
| True, if the collection or any of its members contains the member with the specified name. More... | |
| bool | isEqual (const Variant::Value &value) const |
| True, if this variant value equals another variant value (implementation) More... | |
| void | read (std::istream &stream) |
| Read the variant from a stream (implementation) More... | |
| void | setMember (const std::string &name, const Variant &member, size_t pos) |
| Recursively set a member of the collection by name. More... | |
| Value () | |
| Default constructor. More... | |
| void | write (std::ostream &stream) const |
| Write this variant value to a stream (implementation) More... | |
Public Member Functions inherited from variant_topic_tools::Variant::Value | |
| virtual const std::type_info & | getTypeInfo () const |
| Retrieve the variant's value type information. More... | |
| Value () | |
| Default constructor. More... | |
Public Attributes | |
| MessageFieldCollection< Variant > | members |
| The message members. More... | |
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.
| variant_topic_tools::MessageVariant::ValueImplV::ValueImplV | ( | const ValueImplV & | src | ) |
Copy constructor.
Definition at line 64 of file MessageVariant.cpp.
|
virtual |
Destructor.
Definition at line 68 of file MessageVariant.cpp.
|
virtual |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 136 of file MessageVariant.cpp.
|
virtual |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 140 of file MessageVariant.cpp.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
| MessageFieldCollection<Variant> variant_topic_tools::MessageVariant::ValueImplV::members |
The message members.
Definition at line 150 of file MessageVariant.h.