Graphite
Version 3
An experimental 3D geometry processing program
|
Abstract base class for reading and writing values from/to streams. More...
#include <OGF/gom/services/serializer.h>
Public Member Functions | |
~Serializer () override | |
Serializer destructor. | |
virtual bool | serialize_read (std::istream &stream, void *addr)=0 |
Reads a value from a stream. More... | |
virtual bool | serialize_write (std::ostream &stream, void *addr)=0 |
Writes a value to a stream. More... | |
Public Member Functions inherited from GEO::Counted | |
void | ref () const |
Increments the reference count. More... | |
void | unref () const |
Decrements the reference count. More... | |
bool | is_shared () const |
Check if the object is shared. More... | |
int | nb_refs () const |
Gets the number of references that point to this object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from GEO::Counted | |
static void | ref (const Counted *counted) |
Increments the reference count. More... | |
static void | unref (const Counted *counted) |
Decrements the reference count. More... | |
Protected Member Functions inherited from GEO::Counted | |
Counted () | |
Creates a reference counted object. More... | |
virtual | ~Counted () |
Destroys a reference counted object. More... | |
Abstract base class for reading and writing values from/to streams.
Definition at line 58 of file serializer.h.
|
pure virtual |
Reads a value from a stream.
[in] | stream | the input stream |
[out] | addr | an untyped pointer where to store the result |
true | if the value could be successfully read |
false | otherwise |
Implemented in OGF::GenericSerializer< T >, OGF::EnumSerializer, OGF::PointerSerializer, OGF::BoolSerializer, and OGF::StringSerializer.
|
pure virtual |
Writes a value to a stream.
[out] | stream | the output stream |
[in] | addr | an untyped pointer where to read the value from |
true | if the value could be successfully written |
false | otherwise |
Implemented in OGF::GenericSerializer< T >, OGF::EnumSerializer, OGF::PointerSerializer, OGF::BoolSerializer, and OGF::StringSerializer.