Static Public Member Functions | List of all members
rs2rosinternal::serialization::Serializer< T > Struct Template Reference

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 rs2rosinternal::serialization::IStream. More...
 
static uint32_t serializedLength (typename boost::call_traits< T >::param_type t)
 Determine the serialized length of an object. More...
 
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 rs2rosinternal::serialization::OStream. More...
 

Detailed Description

template<typename T>
struct rs2rosinternal::serialization::Serializer< T >

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 118 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

Member Function Documentation

template<typename T >
template<typename Stream >
static void rs2rosinternal::serialization::Serializer< T >::read ( Stream stream,
typename boost::call_traits< T >::reference  t 
)
inlinestatic

Read an object from the stream. Normally the stream passed in here will be a rs2rosinternal::serialization::IStream.

Definition at line 133 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

template<typename T >
static uint32_t rs2rosinternal::serialization::Serializer< T >::serializedLength ( typename boost::call_traits< T >::param_type  t)
inlinestatic

Determine the serialized length of an object.

Definition at line 141 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

template<typename T >
template<typename Stream >
static void rs2rosinternal::serialization::Serializer< T >::write ( Stream stream,
typename boost::call_traits< T >::param_type  t 
)
inlinestatic

Write an object to the stream. Normally the stream passed in here will be a rs2rosinternal::serialization::OStream.

Definition at line 124 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.


The documentation for this struct was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:42