|
| DbBlob (bool do_swap=true) |
| Standard constructor. More...
|
|
virtual | ~DbBlob () |
| Standard destructor. More...
|
|
| DbBlob (const DbBlob &)=delete |
|
DbBlob & | operator= (const DbBlob &)=delete |
|
const char * | data () const |
| Read access to data buffer. More...
|
|
char * | data () |
| write access to data buffer More...
|
|
void | erase () |
| Reset the buffer. More...
|
|
int | size () const |
| Total buffer size. More...
|
|
bool | isReading () const |
| Get stream buffer state. More...
|
|
bool | isWriting () const |
| Get stream buffer state. More...
|
|
int | buffPointer () const |
| Retrieve current buffer pointer. More...
|
|
void | setBuffPointer (int ptr) |
| Retrieve current buffer pointer. More...
|
|
void | setAnalyzer (Analyzer fun=0) |
| Enable user analysis function. More...
|
|
void | swapToBuffer (const void *source, int siz) |
| Swap buffers: int, long, short, float and double. More...
|
|
void | swapFromBuffer (void *target, int siz) |
| Swap buffers: int, long, short, float and double. More...
|
|
void | adopt (char *memory, int len) |
| Adopt an external memory buffer. More...
|
|
void | reserve (int len) |
| Reserve buffer space; Default: 16 k buffer size. More...
|
|
void | extend (int len) |
| Extend the buffer. More...
|
|
void | setMode (Mode m) |
| Set mode of the stream and allocate buffer. More...
|
|
DbBlob & | writeBytes (const char *str, int len) |
| Write string to output stream. More...
|
|
DbBlob & | operator<< (long long int data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (long long int &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (int data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (int &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (unsigned int data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (unsigned int &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (long data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (long &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (unsigned long data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (unsigned long &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (short data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (short &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (unsigned short data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (unsigned short &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (char data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (char &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (unsigned char data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (unsigned char &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (float data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (float &data) |
| Input Streamer
More...
|
|
DbBlob & | operator<< (double data) |
| Output Streamer
More...
|
|
DbBlob & | operator>> (double &data) |
| Input Streamer
More...
|
|
DbBlob & | operator>> (char *data) |
| Streamer to read strings in (char*) format. More...
|
|
DbBlob & | operator<< (const char *data) |
| Streamer to write strings in (char*) format. More...
|
|
DbBlob & | operator>> (std::string &data) |
| Streamer to read strings in (std::string) format. More...
|
|
DbBlob & | operator<< (const std::string &data) |
| Streamer to write strings in (std::string) format. More...
|
|
Description:
The stream buffer is a small object collecting object data. The basic idea behind the DbBlob is generic object conversion. The DbBlob acts as a byte stream (hence inheriting from a std::string) and stores any information streamed to the buffer. Since the information must be represented in a generic way on the fly byte swapping is performed. However, not only primitive data can be stored in the buffer, but also pointers to DataObjects (symbolic links) and pointers to contained objects. Automatically during serialization the persistent references to the corresponding objects and containers must be stored. These objects are accessible from the DbBlob object.
- Author
- M.Frank
- Version
- 1.0
Definition at line 47 of file DbBlob.h.