VECTOR_BLF_UNCOMPRESSEDFILE(3)
π β¨ Vector::BLF::UncompressedFile β¨π
Okay bestie, this page is from the Library Functions Manual β yes, that's the manual name, folded in right near the top like a little name tag π«Ά. It's all about Vector::BLF::UncompressedFile, and no cap, it's the input/output memory stream class. Let's get into it.
πΈ NAME πΈ
Vector::BLF::UncompressedFile
π¦ SYNOPSIS π¦
#include <UncompressedFile.h>
Inherits Vector::BLF::AbstractFile.
π Public Member Functions π
std::streamsize gcount () const overridevoid read (char *s, std::streamsize n) overridestd::streampos tellg () overridevoid seekg (std::streamoff off, const std::ios_base::seekdir way=std::ios_base::cur) overridevoid write (const char *s, std::streamsize n) overridestd::streampos tellp () overridebool good () const overridebool eof () const overridevirtual void abort ()virtual void write (const std::shared_ptr< LogContainer > &logContainer)virtual void nextLogContainer ()virtual std::streamsize fileSize () constvirtual void setFileSize (std::streamsize fileSize)virtual void setBufferSize (std::streamsize bufferSize)virtual void dropOldData ()virtual uint32_t defaultLogContainerSize () constvirtual void setDefaultLogContainerSize (uint32_t defaultLogContainerSize)
π§ Public Member Functions inherited from Vector::BLF::AbstractFile
AbstractFile (const AbstractFile &)=defaultAbstractFile & operator= (const AbstractFile &)=defaultAbstractFile (AbstractFile &&)=defaultAbstractFile & operator= (AbstractFile &&)=defaultvirtual void skipp (std::streamsize s) final
π Public Attributes π
std::condition_variable tellgChangedstd::condition_variable tellpChanged
π Detailed Description π
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. Periodt π
π₯ Member Function Documentation π₯
π void Vector::BLF::UncompressedFile::abort () [virtual] π
Stop further operations. Return from waiting reads.
π uint32_t Vector::BLF::UncompressedFile::defaultLogContainerSize () const [virtual] π
Get default log container size.
Returns: default log container size
π¦ void Vector::BLF::UncompressedFile::dropOldData () [virtual] π¦
drop old log container, if tellg/tellp are beyond it
πΈ bool Vector::BLF::UncompressedFile::eof () const [override], [virtual] πΈ
Check whether eofbit is set.
Returns: true if eofbit is set
Implements Vector::BLF::AbstractFile.
β std::streamsize Vector::BLF::UncompressedFile::fileSize () const [virtual] β
Return current file size resp. end-of-file position.
Returns: file size
π std::streamsize Vector::BLF::UncompressedFile::gcount () const [override], [virtual] π
Get characters returned by last read operation.
Returns: Number of characters
Implements Vector::BLF::AbstractFile.
π«Ά bool Vector::BLF::UncompressedFile::good () const [override], [virtual] π«Ά
Check whether state of stream is good.
Returns: true if no error flags are set
Implements Vector::BLF::AbstractFile.
π§ void Vector::BLF::UncompressedFile::nextLogContainer () [virtual] π§
Close the current logContainer.
π₯ void Vector::BLF::UncompressedFile::read (char * s, std::streamsize n) [override], [virtual] π₯
Read block of data.
This operation blocks until the data is available.
Parameters:
sβ Pointer to datanβ Requested size of data
Implements Vector::BLF::AbstractFile.
π¦ void Vector::BLF::UncompressedFile::seekg (std::streamoff off, const std::ios_base::seekdir way = std::ios_base::cur) [override], [virtual] π¦
Set position in input sequence.
Parameters:
offβ Offsetwayβ Direction
Implements Vector::BLF::AbstractFile.
π void Vector::BLF::UncompressedFile::setBufferSize (std::streamsize bufferSize) [virtual] π
Sets the maximum file size. Write operations block, if the size is reached.
Parameters:
bufferSizeβ maximum file size
π void Vector::BLF::UncompressedFile::setDefaultLogContainerSize (uint32_t defaultLogContainerSize) [virtual] π
Set default log container size.
Parameters:
defaultLogContainerSizeβ default log container size
π void Vector::BLF::UncompressedFile::setFileSize (std::streamsize fileSize) [virtual] π
Set file size resp. end-of-file position.
Parameters:
fileSizeβ file size
π std::streampos Vector::BLF::UncompressedFile::tellg () [override], [virtual] π
Get position in input sequence.
Returns: Read position
Implements Vector::BLF::AbstractFile.
β¨ std::streampos Vector::BLF::UncompressedFile::tellp () [override], [virtual] β¨
Get position in output sequence.
Returns: Write position
Implements Vector::BLF::AbstractFile.
π void Vector::BLF::UncompressedFile::write (const char * s, std::streamsize n) [override], [virtual] π
Write block of data.
Parameters:
sβ Pointer to datanβ Size of data
Implements Vector::BLF::AbstractFile.
π¦ void Vector::BLF::UncompressedFile::write (const std::shared_ptr< LogContainer > & logContainer) [virtual] π¦
write LogContainer
Parameters:
logContainerβ log container
π Member Data Documentation π
π 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)
π Author π
Generated automatically by Doxygen for Vector BLF from the source code.
Okay that's the whole page, bestie! Source/version: Vector BLF. Date: there's no date in the footer on this page, so I'm not gonna invent one π. Mwah π
π¦ where this page comes from
- arch rolling: vector-blf 2.4.2-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms