$search
Templated serialization class. Default implementation provides backwards compatibility with old message types. More...
#include <serialization.h>
Static Public Member Functions | |
template<typename Stream > | |
static void | read (Stream &stream, typename boost::call_traits< T >::reference t) |
Read an object from the stream. Normally the stream passed in here will be a ros::serialization::IStream. | |
static uint32_t | serializedLength (typename boost::call_traits< T >::param_type t) |
Determine the serialized length of an object. | |
template<typename Stream > | |
static void | write (Stream &stream, typename boost::call_traits< T >::param_type t) |
Write an object to the stream. Normally the stream passed in here will be a ros::serialization::OStream. |
Templated serialization class. Default implementation provides backwards compatibility with old message types.
Specializing the Serializer class is the only thing you need to do to get the ROS serialization system to work with a type.
Definition at line 117 of file serialization.h.
static void ros::serialization::Serializer< T >::read | ( | Stream & | stream, | |
typename boost::call_traits< T >::reference | t | |||
) | [inline, static] |
Read an object from the stream. Normally the stream passed in here will be a ros::serialization::IStream.
Definition at line 132 of file serialization.h.
static uint32_t ros::serialization::Serializer< T >::serializedLength | ( | typename boost::call_traits< T >::param_type | t | ) | [inline, static] |
Determine the serialized length of an object.
Definition at line 140 of file serialization.h.
static void ros::serialization::Serializer< T >::write | ( | Stream & | stream, | |
typename boost::call_traits< T >::param_type | t | |||
) | [inline, static] |
Write an object to the stream. Normally the stream passed in here will be a ros::serialization::OStream.
Definition at line 123 of file serialization.h.