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.   | |
| static std::ostream & | Serialize (std::ostream &_out, const DataType &_data) | 
| Serialization.   | |
Detailed Description
template<typename DataType>
class gz::sim::serializers::DefaultSerializer< 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()
template<typename DataType > 
      
  | 
  inlinestatic | 
Deserialization.
- Parameters
 - 
  
[in] _in In stream. [in] _data Data resulting from deserialization.  
References std::endl(), and gzwarn.
◆ Serialize()
template<typename DataType > 
      
  | 
  inlinestatic | 
Serialization.
References std::endl(), and gzwarn.
The documentation for this class was generated from the following file: