Vector BLF
|
#include <UncompressedFile.h>
Public Attributes | |
std::condition_variable | tellgChanged |
std::condition_variable | tellpChanged |
UncompressedFile (Input/output memory stream)
This class is like a virtual file buffer. It only sees the fragments that are contained in m_data and addresses by the underlying uncompressed LogContainers. Read is done at position m_tellg and write position is at m_tellp. Write or seek operations exceeding the end of the file, will automatically create new logContainers. An explicit dropOldData drops logContainers that have already been processed.
This class is thread-safe.
|
virtual |
Stop further operations. Return from waiting reads.
|
virtual |
Get default log container size.
|
virtual |
drop old log container, if tellg/tellp are beyond it
|
overridevirtual |
|
virtual |
Return current file size resp. end-of-file position.
|
overridevirtual |
Get characters returned by last read operation.
Implements Vector::BLF::AbstractFile.
|
overridevirtual |
Check whether state of stream is good.
Implements Vector::BLF::AbstractFile.
|
virtual |
Close the current logContainer.
Read block of data.
This operation blocks until the data is available.
[out] | s | Pointer to data |
[in] | n | Requested size of data |
Implements Vector::BLF::AbstractFile.
|
overridevirtual |
Set position in input sequence.
[in] | off | Offset |
[in] | way | Direction |
Implements Vector::BLF::AbstractFile.
|
virtual |
Sets the maximum file size. Write operations block, if the size is reached.
[in] | bufferSize | maximum file size |
|
virtual |
Set default log container size.
[in] | defaultLogContainerSize | default log container size |
|
virtual |
Set file size resp. end-of-file position.
[in] | fileSize | file size |
|
overridevirtual |
|
overridevirtual |
Write block of data.
[in] | s | Pointer to data |
[in] | n | Size of data |
Implements Vector::BLF::AbstractFile.
|
virtual |
write LogContainer
[in] | logContainer | log container |
std::condition_variable Vector::BLF::UncompressedFile::tellgChanged |
tellg was changed (after read or seekg)
std::condition_variable Vector::BLF::UncompressedFile::tellpChanged |
tellp was changed (after write or seekp)