OpenSceneGraph 2.8.4
|
This class template provides basic default streaming capabilities for all types that define streaming operators (<< and >>). More...
Public Member Functions | |
virtual std::ostream & | writeTextValue (std::ostream &os, const Value &v, const Options *=0) const |
Writes a textual representation of the value's content to a stream. | |
virtual std::istream & | readTextValue (std::istream &is, Value &v, const Options *=0) const |
Reads a textual representation of the value's content from a stream. | |
virtual std::ostream & | writeBinaryValue (std::ostream &os, const Value &v, const Options *=0) const |
Writes a binary representation of the value's content to a stream. | |
virtual std::istream & | readBinaryValue (std::istream &is, Value &v, const Options *=0) const |
Reads a binary representation of the value's content from a stream. |
This class template provides basic default streaming capabilities for all types that define streaming operators (<< and >>).
Most of the standard types are able to be read and written this way, so the StdReaderWriter template can be a convenient default for several types. The binary representation is a raw copy of the memory content.
TO-DO: improve binary streaming and avoid arch dependency.
virtual std::istream& osgIntrospection::StdReaderWriter< T >::readBinaryValue | ( | std::istream & | , |
Value & | v, | ||
const Options * | = 0 |
||
) | const [inline, virtual] |
Reads a binary representation of the value's content from a stream.
Reimplemented from osgIntrospection::ReaderWriter.
References osgIntrospection::Value::isEmpty().
virtual std::istream& osgIntrospection::StdReaderWriter< T >::readTextValue | ( | std::istream & | , |
Value & | v, | ||
const Options * | = 0 |
||
) | const [inline, virtual] |
Reads a textual representation of the value's content from a stream.
Reimplemented from osgIntrospection::ReaderWriter.
References osgIntrospection::Value::isEmpty().
virtual std::ostream& osgIntrospection::StdReaderWriter< T >::writeBinaryValue | ( | std::ostream & | , |
const Value & | v, | ||
const Options * | = 0 |
||
) | const [inline, virtual] |
Writes a binary representation of the value's content to a stream.
Reimplemented from osgIntrospection::ReaderWriter.
virtual std::ostream& osgIntrospection::StdReaderWriter< T >::writeTextValue | ( | std::ostream & | , |
const Value & | v, | ||
const Options * | = 0 |
||
) | const [inline, virtual] |
Writes a textual representation of the value's content to a stream.
Reimplemented from osgIntrospection::ReaderWriter.
![]() | Generated at Sun Jan 8 2012 13:16:37 for the OpenSceneGraph by doxygen 1.7.4. |