Simbody  3.4 (development)
Utilities for De/serializing

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

Modules

 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.


 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.


 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().



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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines