Vector::BLF::File(3)
๐ NAME ๐
Vector::BLF::File โ hii bestie, welcome to the Vector::BLF::File(3) page from the Library Functions Manual โจ This one is literally the BLF file object, and it's giving main-character file I/O energy ๐
๐ธ SYNOPSIS ๐ธ
#include <File.h>
๐ Public Member Functions ๐
virtual void open (const char *filename, const std::ios_base::openmode mode=std::ios_base::in)
virtual void open (const std::string &filename, const std::ios_base::openmode mode=std::ios_base::in)
virtual bool is_open () const
virtual bool good () const
virtual bool eof () const
virtual ObjectHeaderBase * read ()
virtual void write (ObjectHeaderBase *ohb)
virtual void close ()
virtual uint32_t defaultLogContainerSize () const
virtual void setDefaultLogContainerSize (uint32_t defaultLogContainerSize)
๐ฆ Static Public Member Functions ๐ฆ
static ObjectHeaderBase * createObject (ObjectType type)
๐ Public Attributes ๐
FileStatistics fileStatistics {}
uint64_t currentUncompressedFileSize {}
std::atomic< uint32_t > currentObjectCount {}
int compressionLevel {1}
bool writeRestorePoints {true}
๐ Detailed Description ๐
Okay so File is literally the BLF version of std::fstream โ same "open, read, write, close" bestie energy, but for BLFs ๐ฆ no cap.
๐ง Member Function Documentation ๐ง
void Vector::BLF::File::close () [virtual]
Closes the file. Bye-bye, file handle ๐๐
ObjectHeaderBase * Vector::BLF::File::createObject (ObjectType type) [static]
Makes you a new object of the given type โญ
Parameters
- type โ object type
Returns
- new object
uint32_t Vector::BLF::File::defaultLogContainerSize () const [virtual]
Gets the default log container size, bestie ๐
Returns
- default log container size
bool Vector::BLF::File::eof () const [virtual]
Checks whether eofbit is set โ aka are we at the end of the file? ๐ญ
Returns
trueif end-of-file reached
bool Vector::BLF::File::good () const [virtual]
Checks whether the stream state is good โ no error flags, no drama โจ
Returns
trueif no error flags set
bool Vector::BLF::File::is_open () const [virtual]
Is the file open? The people wanna know ๐
Returns
trueif file is open
void Vector::BLF::File::open (const char * filename, const std::ios_base::openmode mode = std::ios_base::in) [virtual]
Opens the file using a const char * filename, honey ๐
Parameters
- filename โ file name
- mode โ open mode, either
in(read) orout(write)
void Vector::BLF::File::open (const std::string & filename, const std::ios_base::openmode mode = std::ios_base::in) [virtual]
Same open-file slay, but with a std::string filename this time ๐
Parameters
- filename โ file name
- mode โ open mode, either
in(read) orout(write)
ObjectHeaderBase * Vector::BLF::File::read () [virtual]
Reads an object from the file ๐โจ
Ownership is taken over from the library to the user. The user has to take care to delete the object โ yes, that means you, bestie, gotta clean up ๐งน๐ญ
Todo: Use std::unique_ptr in future versions.
Returns
- read object or
nullptr
void Vector::BLF::File::setDefaultLogContainerSize (uint32_t defaultLogContainerSize) [virtual]
Sets the default log container size โ customize that container, icon behavior ๐
Parameters
- defaultLogContainerSize โ default log container size
void Vector::BLF::File::write (ObjectHeaderBase * ohb) [virtual]
Writes an object to the file ๐๏ธ๐ฅ
Ownership is taken over from the user to the library. The object should not be further accessed any more โ like, let it go, it's the library's problem now ๐
Todo: Use std::unique_ptr in future versions.
Parameters
- ohb โ write object
๐ Member Data Documentation ๐
int Vector::BLF::File::compressionLevel {1}
Compression level ๐๏ธโจ
zlib compression levels:
0:Z_NO_COMPRESSION1:Z_BEST_SPEED9:Z_BEST_COMPRESSION
Vector BLF compression levels:
0: no compression6: default compression10: maximum compression
std::atomic<uint32_t> Vector::BLF::File::currentObjectCount {}
Current number of objects read ๐ข
Unknown115 is not counted. Don't ask, bestie, it's just not ๐
uint64_t Vector::BLF::File::currentUncompressedFileSize {}
Current uncompressed file size ๐
This includes the LogContainer headers, and the uncompressed content. So yeah, the headers are part of the vibe ๐
FileStatistics Vector::BLF::File::fileStatistics {}
File statistics from the file header โ contains total counts/sizes ๐งฎโจ
bool Vector::BLF::File::writeRestorePoints {true}
Write restore points at file close โ and yes, it's true by default โ
๐ธ Author ๐ธ
Generated automatically by Doxygen for Vector BLF from the source code. Yes, the robots wrote this one โ we just gave it the group-chat makeover ๐
Mwah ๐ โ this cutie comes from Vector BLF, page Vector::BLF::File(3). The footer didn't hand us a date, so no fake timestamp here, bestie ๐ ๐ซถ
๐ฆ 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