IBlob Class Referenceabstract

#include <Pt/Db/Blob.h>

Shared implementation of blob data.

Inherited by BlobImpl.

Public Member Functions

virtual ~IBlob ()
 Destructor.
virtual void assign (const char *data, std::size_t len)=0
 Copies len bytes from data into this blob.
virtual IBlob * create () const =0
 Creates a new implementation of the same type.
virtual void destroy ()=0
 Destroys an instance created by create().
std::size_t size () const
 Returns the size of the blob data.
const char * data () const
 Returns a pointer to the blob data, or 0 if empty.
bool operator== (const IBlob &other) const
 Returns true if both instances contain the same data.