|
DUECA/DUSIME
|
Collection of data per stream. More...
#include <FileHandler.hxx>
Public Member Functions | |
| StreamSetInfo () | |
| Default constructor. | |
| StreamSetInfo (FileStreamWrite::pointer writer) | |
| Half constructor. | |
| StreamSetInfo (FileStreamRead::pointer reader) | |
| Half constructor. | |
| void | setReader (FileStreamRead::pointer reader) |
| Set the reader, perform actions if possible. | |
| void | setWriter (FileHandler *handler, unsigned sid, size_t bufsize, fstream &file) |
| Set the writer, perform actions for reader if present. | |
| void | blockWritten (pos_type offset) |
| First existing block information; reader and writer are initialised with buffer size, and a reader will be informed about this block's offset. | |
| void | checkBlock (pos_type offset, const ControlBlockRead &info, std::fstream &file) |
| Last existing block information; writer is given buffer data. | |
Public Attributes | |
| FileStreamWrite::pointer | writer |
| Writer. | |
| FileStreamRead::pointer | reader |
| Reader. | |
| pos_type | lastblock_location |
| Location of last (partial) buffer. | |
| pos_type | firstblock_location |
| Location of the first buffer. | |
| size_t | block_size |
| Buffer size. | |
Collection of data per stream.