Gazebo Common

API Reference

5.7.0
IO< T > Struct Template Reference

Traits for type-specific object I/O. More...

#include <IOBase.hh>

Static Public Member Functions

static T ReadFrom (const std::string &_string)
 Read object from string. More...
 
static T ReadFrom (std::istream &_istream)
 Read object from stream. More...
 

Detailed Description

template<typename T>
struct gz::common::IO< T >

Traits for type-specific object I/O.

To be fully specialized as needed.

Member Function Documentation

◆ ReadFrom() [1/2]

static T ReadFrom ( const std::string _string)
inlinestatic

Read object from string.

This default implementation relies on stream operator overloads.

Parameters
[in]_stringString to read object from.
Returns
object instance.

References IO< T >::ReadFrom().

◆ ReadFrom() [2/2]

static T ReadFrom ( std::istream _istream)
inlinestatic

Read object from stream.

This default implementation relies on stream operator overloads.

Parameters
[in]_istreamStream to read object from.
Returns
object instance.

Referenced by IO< T >::ReadFrom(), and IO< DataFrame< K, math::InMemoryTimeVaryingVolumetricGrid< T, V, P > > >::ReadFrom().


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