Encode triples to a binary file. More...
Public Member Functions | |
Encode (int bufferSize, WriteQueueAccessFile *file, T *triple=0) | |
Intialise the encode from a QueueAccessFile. | |
void | refreshBuffer (void) |
Purge the buffer and block contents to the binary file and intialise. | |
long | byteAlign (void) |
Return the position of the next free byte. | |
void | truncateToNextBlock (int blockSize) |
Store block in buffer and truncate buffer size to the next free block. | |
Protected Attributes | |
WriteQueueAccessFile * | _file |
The QueueAccessFile to be written to. |
Encode triples to a binary file.
This class allows the user to encode a list of triples to a binary file. The template parameter is the class of triples begin decoded.