|
DP3
|
Interface for classes that can be streamed using blobs. More...
#include <BlobStreamable.h>
Public Member Functions | |
| virtual | ~BlobStreamable () |
| Destructor. More... | |
| void | serialize (BlobOStream &bos) const |
Static Public Member Functions | |
| static BlobStreamable * | deserialize (BlobIStream &bis) |
Protected Member Functions | |
| virtual const std::string & | classType () const =0 |
Return the class type of *this as a string. More... | |
Friends | |
| class | DH_BlobStreamable |
| The private methods must be accessible for DH_BlobStreamable. More... | |
Interface for classes that can be streamed using blobs.
Classes that want to be blob-streamable must implement the methods declared in this interface.
|
inlinevirtual |
Destructor.
|
protectedpure virtual |
Return the class type of *this as a string.
Implemented in dp3::parmdb::Axis, dp3::parmdb::OrderedAxis, and dp3::parmdb::RegularAxis.
|
static |
Create a new BlobStreamable object by deserializing the contents of the blob input stream bis. The first element in the input stream bis shall be a string containing the class type of the object to be constructed.
| void dp3::blob::BlobStreamable::serialize | ( | BlobOStream & | bos | ) | const |
Serialize *this by writing its contents into the blob output stream bos.
|
friend |
The private methods must be accessible for DH_BlobStreamable.