Gazebo Sim

API Reference

8.6.0
DefaultSerializer< DataType > Class Template Reference

Default serializer template to call stream operators only on types that support them. If the stream operator is not available, a warning message is printed. More...

#include <Component.hh>

Static Public Member Functions

static std::istreamDeserialize (std::istream &_in, DataType &_data)
 Deserialization. More...
 
static std::ostreamSerialize (std::ostream &_out, const DataType &_data)
 Serialization. More...
 

Detailed Description

template<typename DataType>
class gz::sim::serializers::DefaultSerializer< DataType >

Default serializer template to call stream operators only on types that support them. If the stream operator is not available, a warning message is printed.

Template Parameters
DataTypeType on which the operator will be called.

Member Function Documentation

◆ Deserialize()

static std::istream& Deserialize ( std::istream _in,
DataType &  _data 
)
inlinestatic

Deserialization.

Parameters
[in]_inIn stream.
[in]_dataData resulting from deserialization.

References std::endl(), and gzwarn.

◆ Serialize()

static std::ostream& Serialize ( std::ostream _out,
const DataType &  _data 
)
inlinestatic

Serialization.

References std::endl(), and gzwarn.


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