Serializer implementation. More...
#include <Serializer.h>
Public Member Functions | |
void | advance (ros::serialization::Stream &stream, const Variant &value) |
Advance a stream by the length of a serialized value. | |
virtual void | deserialize (ros::serialization::IStream &stream, Variant &value)=0 |
Deserialize a variant value (abstract declaration) | |
virtual size_t | getSerializedLength (const Variant &value) const =0 |
Retrieve the serialized length of a variant value (abstract declaration) | |
Impl () | |
Default constructor. | |
virtual void | serialize (ros::serialization::OStream &stream, const Variant &value)=0 |
Serialize a variant value (abstract declaration) | |
virtual | ~Impl () |
Destructor. |
Serializer implementation.
Definition at line 88 of file Serializer.h.
Default constructor.
Reimplemented in variant_topic_tools::ArraySerializer::Impl, variant_topic_tools::MessageSerializer::Impl, and variant_topic_tools::BuiltinSerializer::Impl.
Definition at line 44 of file Serializer.cpp.
variant_topic_tools::Serializer::Impl::~Impl | ( | ) | [virtual] |
Destructor.
Reimplemented in variant_topic_tools::ArraySerializer::Impl, variant_topic_tools::MessageSerializer::Impl, and variant_topic_tools::BuiltinSerializer::Impl.
Definition at line 47 of file Serializer.cpp.
void variant_topic_tools::Serializer::Impl::advance | ( | ros::serialization::Stream & | stream, |
const Variant & | value | ||
) |
Advance a stream by the length of a serialized value.
Definition at line 97 of file Serializer.cpp.
virtual void variant_topic_tools::Serializer::Impl::deserialize | ( | ros::serialization::IStream & | stream, |
Variant & | value | ||
) | [pure virtual] |
Deserialize a variant value (abstract declaration)
Implemented in variant_topic_tools::ArraySerializer::ImplT< T >, variant_topic_tools::MessageSerializer::ImplT< T >, variant_topic_tools::BuiltinSerializer::ImplT< T >, variant_topic_tools::ArraySerializer::ImplV, and variant_topic_tools::MessageSerializer::ImplV.
virtual size_t variant_topic_tools::Serializer::Impl::getSerializedLength | ( | const Variant & | value | ) | const [pure virtual] |
Retrieve the serialized length of a variant value (abstract declaration)
Implemented in variant_topic_tools::ArraySerializer::ImplT< T >, variant_topic_tools::MessageSerializer::ImplT< T >, variant_topic_tools::BuiltinSerializer::ImplT< T >, variant_topic_tools::ArraySerializer::ImplV, and variant_topic_tools::MessageSerializer::ImplV.
virtual void variant_topic_tools::Serializer::Impl::serialize | ( | ros::serialization::OStream & | stream, |
const Variant & | value | ||
) | [pure virtual] |
Serialize a variant value (abstract declaration)
Implemented in variant_topic_tools::ArraySerializer::ImplT< T >, variant_topic_tools::MessageSerializer::ImplT< T >, variant_topic_tools::BuiltinSerializer::ImplT< T >, variant_topic_tools::ArraySerializer::ImplV, and variant_topic_tools::MessageSerializer::ImplV.