#include <MessageSerializer.h>
Classes | |
class | Impl |
Message serializer implementation. More... | |
class | ImplT |
Message serializer implementation (templated strong-typed version) More... | |
class | ImplV |
Message serializer implementation (variant-typed version) More... | |
Public Member Functions | |
MessageSerializer () | |
Default constructor. More... | |
MessageSerializer (const MessageSerializer &src) | |
Copy constructor. More... | |
MessageSerializer (const Serializer &src) | |
Copy constructor (overloaded version taking a serializer) More... | |
~MessageSerializer () | |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::Serializer | |
void | advance (ros::serialization::Stream &stream, const Variant &value) |
Advance a stream by the length of a serialized value. More... | |
void | clear () |
Clear the serializer. More... | |
void | deserialize (ros::serialization::IStream &stream, Variant &value) |
Deserialize a variant value from an input stream. More... | |
size_t | getSerializedLength (const Variant &value) const |
Retrieve the serialized length of a variant value. More... | |
bool | isValid () const |
True, if this serializer is valid. More... | |
operator void * () const | |
Void pointer conversion. More... | |
void | serialize (ros::serialization::OStream &stream, const Variant &value) |
Serialize a variant value to an output stream. More... | |
Serializer () | |
Default constructor. More... | |
Serializer (const DataType &dataType) | |
Constructor (overloaded version taking a data type) More... | |
Serializer (const Serializer &src) | |
Copy constructor. More... | |
~Serializer () | |
Destructor. More... | |
Protected Member Functions | |
MessageSerializer (const MessageFieldCollection< Serializer > &memberSerializers) | |
Constructor (overloaded version taking a collection of member serializers) More... | |
Static Protected Member Functions | |
template<typename T > | |
static MessageSerializer | create () |
Create a message serializer. More... | |
Friends | |
class | MessageDataType |
class | MessageVariant |
Additional Inherited Members | |
Protected Types inherited from variant_topic_tools::Serializer | |
typedef boost::shared_ptr< Impl > | ImplPtr |
Declaration of the serializer implementation pointer type. More... | |
typedef boost::weak_ptr< Impl > | ImplWPtr |
Declaration of the serializer implementation weak pointer type. More... | |
Protected Attributes inherited from variant_topic_tools::Serializer | |
ImplPtr | impl |
The serializer's implementation. More... | |
Message serializer.
Definition at line 33 of file MessageSerializer.h.
variant_topic_tools::MessageSerializer::MessageSerializer | ( | ) |
Default constructor.
Definition at line 28 of file MessageSerializer.cpp.
variant_topic_tools::MessageSerializer::MessageSerializer | ( | const MessageSerializer & | src | ) |
Copy constructor.
Definition at line 36 of file MessageSerializer.cpp.
variant_topic_tools::MessageSerializer::MessageSerializer | ( | const Serializer & | src | ) |
Copy constructor (overloaded version taking a serializer)
Definition at line 40 of file MessageSerializer.cpp.
variant_topic_tools::MessageSerializer::~MessageSerializer | ( | ) |
Destructor.
Definition at line 46 of file MessageSerializer.cpp.
|
protected |
Constructor (overloaded version taking a collection of member serializers)
Definition at line 31 of file MessageSerializer.cpp.
|
staticprotected |
Create a message serializer.
|
friend |
Definition at line 35 of file MessageSerializer.h.
|
friend |
Definition at line 36 of file MessageSerializer.h.