Static Public Member Functions | List of all members
roswrap::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, T &t)
 Read an object from the stream. Normally the stream passed in here will be a ros::serialization::IStream. More...
 
static uint32_t serializedLength (T &t)
 Determine the serialized length of an object. More...
 
template<typename Stream >
static void write (Stream &stream, T &t)
 Write an object to the stream. Normally the stream passed in here will be a ros::serialization::OStream. More...
 

Detailed Description

template<typename T>
struct roswrap::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 120 of file serialization.h.

Member Function Documentation

◆ read()

template<typename T >
template<typename Stream >
static void roswrap::serialization::Serializer< T >::read ( Stream stream,
T &  t 
)
inlinestatic

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

Definition at line 135 of file serialization.h.

◆ serializedLength()

template<typename T >
static uint32_t roswrap::serialization::Serializer< T >::serializedLength ( T &  t)
inlinestatic

Determine the serialized length of an object.

Definition at line 143 of file serialization.h.

◆ write()

template<typename T >
template<typename Stream >
static void roswrap::serialization::Serializer< T >::write ( Stream stream,
T &  t 
)
inlinestatic

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

Definition at line 126 of file serialization.h.


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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:19