DP3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
dp3::blob::BlobStreamable Class Referenceabstract

Interface for classes that can be streamed using blobs. More...

#include <BlobStreamable.h>

Inheritance diagram for dp3::blob::BlobStreamable:
dp3::parmdb::Axis dp3::parmdb::OrderedAxis dp3::parmdb::RegularAxis

Public Member Functions

virtual ~BlobStreamable ()
 Destructor. More...
 
void serialize (BlobOStream &bos) const
 

Static Public Member Functions

static BlobStreamabledeserialize (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...
 

Detailed Description

Interface for classes that can be streamed using blobs.

Classes that want to be blob-streamable must implement the methods declared in this interface.

Constructor & Destructor Documentation

◆ ~BlobStreamable()

virtual dp3::blob::BlobStreamable::~BlobStreamable ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ classType()

virtual const std::string& dp3::blob::BlobStreamable::classType ( ) const
protectedpure virtual

Return the class type of *this as a string.

Implemented in dp3::parmdb::Axis, dp3::parmdb::OrderedAxis, and dp3::parmdb::RegularAxis.

◆ deserialize()

static BlobStreamable* dp3::blob::BlobStreamable::deserialize ( BlobIStream bis)
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.

◆ serialize()

void dp3::blob::BlobStreamable::serialize ( BlobOStream bos) const

Serialize *this by writing its contents into the blob output stream bos.

Friends And Related Function Documentation

◆ DH_BlobStreamable

friend class DH_BlobStreamable
friend

The private methods must be accessible for DH_BlobStreamable.


The documentation for this class was generated from the following file: