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. | |
static T | ReadFrom (std::istream &_istream) |
Read object from stream. | |
Detailed Description
template<typename T>
struct gz::common::IO< 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]
template<typename T >
|
inlinestatic |
Read object from string.
This default implementation relies on stream operator overloads.
- Parameters
-
[in] _string String to read object from.
- Returns
- object instance.
References IO< T >::ReadFrom().
◆ ReadFrom() [2/2]
template<typename T >
|
inlinestatic |
Read object from stream.
This default implementation relies on stream operator overloads.
- Parameters
-
[in] _istream Stream 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: