#include <FBwBlob.h>
Public Methods | |
| FBwBlob (FBwDb *pdb) | |
| Constructor. | |
| FBwBlob (FBwDb *pdb, string Tabla, string Columna) | |
| Constructor. | |
| void | WriteSegment (const char *buffer, int size) |
| Writes a segment of data to blob. | |
| void | Write (const string &value) |
| Writes a string to a blob. | |
| int | ReadSegment () |
| Reads a segment of data into internal segment buffer. | |
| int | ReadSegment (char *buffer, int seglen) |
| Reads a segment of data into an external buffer. | |
| int | Read (char *b, int len) |
| Reads data into an external buffer. | |
| int | Size () |
| Returns Total blob size. | |
| void | SetDB (FBwDb *pdb) |
| Sets database pointer. | |
| bool | Open (ISC_QUAD *pblob_id) |
| open blob | |
| bool | Rewind () |
| Reopens current blob for reading. | |
| bool | Create (ISC_QUAD *pblob_id) |
| creates new blob | |
| bool | Close () |
| closes blob | |
| bool | Cancel () |
| cancels blob creation | |
| char * | GetSegmentBuffer () |
| gets pointer to internal segment buffer | |
| int | GetSegmentLength () |
| gets segment length | |
| bool | IsOpened () |
| checks wether the blob is open or not | |
| bool | eof () |
| checks wether we have read all blob data | |
| ISC_QUAD * | GetBlobId () |
| Gets blob ID. | |
| virtual | ~FBwBlob () |
| Destructor. | |
| bool | Error () |
| flags any error condition | |
Protected Methods | |
| void | AllocSegBuf () |
| creates internal segment buffer | |
| void | GetBlobInfo () |
| Gets blob information. | |
|
|
Constructor. Constructor for generic blob not bounded to any particular column
|
|
||||||||||||||||
|
Constructor. Constructor for blob binded to a particular column
|
|
|
Destructor. as side efect the blob is closed if it was opened |
|
|
creates new blob Creates a new blob suitable for writing data on it
|
|
|
checks wether we have read all blob data Test wether we have read all blob data
|
|
|
flags any error condition
|
|
|
Gets blob ID. Usefull for obtaining blob id when created |
|
|
checks wether the blob is open or not
|
|
|
open blob Open blob for reading
|
|
||||||||||||
|
Reads data into an external buffer. Reads at most len bytes of data into buffer b
|
|
||||||||||||
|
Reads a segment of data into an external buffer. Reads a segment of data to an external buffer. Parameter seglen must be greater or equal to the blob segment size. In case the segment length is greater than seglen, ReadSegment will read at most seglen bytes and the next call to ReadSegment will read de rest of the segment.
|
1.2.17