Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

Namespace-scope utility method SimTK::readFormatted<T>() reads a value of type T from an input stream, recognizing a variety of formats such as the format produced by writeFormatted() or simpler unformatted data such as is produced by writeUnformatted(). More...

Functions

template<class T >
bool SimTK::readFormatted (std::istream &in, T &v)
 The default implementation of readFormatted<T>() uses readUnformatted<T>(). More...
 

Detailed Description

Namespace-scope utility method SimTK::readFormatted<T>() reads a value of type T from an input stream, recognizing a variety of formats such as the format produced by writeFormatted() or simpler unformatted data such as is produced by writeUnformatted().

When T is a container, the recognized formats depend on the readFormatted() specialization provided with as part of the definition of that container.

Function Documentation

template<class T >
bool SimTK::readFormatted ( std::istream &  in,
T &  v 
)
inline

The default implementation of readFormatted<T>() uses readUnformatted<T>().