|
Vector BLF
|
#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} |
This is similar to std::fstream for BLFs
|
virtual |
close file
|
static |
create object of given type
| type | object type |
|
virtual |
Get default log container size.
|
virtual |
Check whether eofbit is set.
|
virtual |
Check whether state of stream is good.
|
virtual |
is file open?
|
virtual |
open file
| [in] | filename | file name |
| [in] | mode | open mode, either in (read) or out (write) |
|
virtual |
open file
| [in] | filename | file name |
| [in] | mode | open mode, either in (read) or out (write) |
|
virtual |
Read object from file.
Ownership is taken over from the library to the user. The user has to take care to delete the object.
Set default log container size.
| [in] | defaultLogContainerSize | default log container size |
|
virtual |
Write object to file.
Ownership is taken over from the user to the library. The object should not be further accessed any more.
| [in] | ohb | write object |
| int Vector::BLF::File::compressionLevel {1} |
compression level
zlib compression levels:
Vector BLF compression levels:
| std::atomic<uint32_t> Vector::BLF::File::currentObjectCount {} |
Current number of objects read
Unknown115 is not counted.
| uint64_t Vector::BLF::File::currentUncompressedFileSize {} |
Current uncompressed file size
This includes the LogContainer headers, and the uncompressed content.
| FileStatistics Vector::BLF::File::fileStatistics {} |
File statistics from file header. contains total counts/sizes