Simbody  3.5
Utilities for De/serializing

These namespace-scope templatized utilities provide uniform serialization and deserialization behavior for built-in and SimTK-defined types. More...

Modules

 readFormatted()
 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().
 
 readUnformatted()
 Namespace-scope utility function SimTK::readUnformatted<T>() reads the next whitespace-separated token(s) from a given stream and attempts to interpret them as a value of type T.
 
 writeFormatted()
 Namespace-scope utility method SimTK::writeFormatted<T>() writes a value of type T to an output stream in a mildly formatted way depending on the type of container represented by T.
 
 writeUnformatted()
 Namespace-scope utility method SimTK::writeUnformatted<T>() writes a value of type T to an output stream as a space-separated series of tokens with no brackets, commas, semicolons or other formatting characters.
 

Detailed Description

These namespace-scope templatized utilities provide uniform serialization and deserialization behavior for built-in and SimTK-defined types.

See SimTK::Xml for support of serialization to/from Xml files.