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::istream & | Deserialize (std::istream &_in, DataType &_data) |
Deserialization. More... | |
static std::ostream & | Serialize (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
-
DataType Type on which the operator will be called.
Member Function Documentation
◆ Deserialize()
|
inlinestatic |
Deserialization.
- Parameters
-
[in] _in In stream. [in] _data Data resulting from deserialization.
References std::endl(), and gzwarn.
◆ Serialize()
|
inlinestatic |
Serialization.
References std::endl(), and gzwarn.
The documentation for this class was generated from the following file: