Gazebo Gazebo

API Reference

3.15.1
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 ignition::gazebo::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 ignwarn.

◆ Serialize()

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

Serialization.

References std::endl(), and ignwarn.


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