B2BITS FIX Antenna HFT
1.0.16
|
#include <LogMsgFile.h>
Classes | |
class | Data |
Public Types | |
typedef IndexFile_Header | Header |
typedef IndexFile_MagicNumber | MagicNumber |
typedef IndexFile_Offset | Offset |
typedef IndexFile_Reserved | Reserved |
typedef IndexFile_Version | Version |
Public Member Functions | |
void | close () |
void | flush () |
Offset | getFileSize () const |
void | getLastMsgData (Data &data) |
Offset | getSize () const |
bool | hasNext () |
IndexFileT (FileT &file, bool chunkAlloc, bool readonly=false) | |
void | load (Offset offset, Data &data) |
bool | next (Offset &offset) |
bool | next (Data &data) |
bool | prev (Offset &offset) |
bool | prev (Data &data) |
void | read (Data &data) |
void | save (Offset offset, const Data &data) |
void | seekTo (Offset offset) |
void | sync () |
Offset | tell () const |
void | toBegin () |
void | toEnd () |
Offset | write (const Data &data, bool flush=false) |
Static Public Member Functions | |
static MagicNumber | generateMagicNumber (Header &header) |
static bool | isValid (Header &header) |
Protected Attributes | |
FastFileT< FileT > | file_ |
Header | header_ |
const bool | readonly_ |
typedef IndexFile_Header Engine::IndexFileT< FileT >::Header |
typedef IndexFile_MagicNumber Engine::IndexFileT< FileT >::MagicNumber |
typedef IndexFile_Offset Engine::IndexFileT< FileT >::Offset |
typedef IndexFile_Reserved Engine::IndexFileT< FileT >::Reserved |
typedef IndexFile_Version Engine::IndexFileT< FileT >::Version |
Engine::IndexFileT< FileT >::IndexFileT | ( | FileT & | file, |
bool | chunkAlloc, | ||
bool | readonly = false |
||
) |
References Engine::IndexFileT< FileT >::file_, Engine::IndexFileT< FileT >::generateMagicNumber(), Engine::IndexFileT< FileT >::getFileSize(), Engine::IndexFileT< FileT >::header_, Engine::v3::INDEX_FILE_VERSION, Engine::IndexFileT< FileT >::Data::isValid(), Engine::IndexFileT< FileT >::isValid(), Engine::IndexFile_Header::magicNumber, Engine::IndexFileT< FileT >::read(), Engine::IndexFileT< FileT >::readonly_, Engine::IndexFileT< FileT >::Data::SIZE, Engine::IndexFileT< FileT >::tell(), and Engine::IndexFile_Header::version.
void Engine::IndexFileT< FileT >::close | ( | ) |
void Engine::IndexFileT< FileT >::flush | ( | ) |
|
static |
References Engine::IndexFile_Header::version.
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
Engine::IndexFileT< FileT >::Offset Engine::IndexFileT< FileT >::getFileSize | ( | ) | const |
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
void Engine::IndexFileT< FileT >::getLastMsgData | ( | Data & | data | ) |
Engine::IndexFileT< FileT >::Offset Engine::IndexFileT< FileT >::getSize | ( | ) | const |
bool Engine::IndexFileT< FileT >::hasNext | ( | ) |
|
static |
References Engine::IndexFile_Header::magicNumber.
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
void Engine::IndexFileT< FileT >::load | ( | Offset | offset, |
Data & | data | ||
) |
bool Engine::IndexFileT< FileT >::next | ( | Offset & | offset | ) |
bool Engine::IndexFileT< FileT >::next | ( | Data & | data | ) |
References Engine::IndexFileT< FileT >::Data::isValid().
bool Engine::IndexFileT< FileT >::prev | ( | Offset & | offset | ) |
bool Engine::IndexFileT< FileT >::prev | ( | Data & | data | ) |
void Engine::IndexFileT< FileT >::read | ( | Data & | data | ) |
void Engine::IndexFileT< FileT >::save | ( | Offset | offset, |
const Data & | data | ||
) |
void Engine::IndexFileT< FileT >::seekTo | ( | Offset | offset | ) |
void Engine::IndexFileT< FileT >::sync | ( | ) |
Engine::IndexFileT< FileT >::Offset Engine::IndexFileT< FileT >::tell | ( | ) | const |
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
void Engine::IndexFileT< FileT >::toBegin | ( | ) |
void Engine::IndexFileT< FileT >::toEnd | ( | ) |
Engine::IndexFileT< FileT >::Offset Engine::IndexFileT< FileT >::write | ( | const Data & | data, |
bool | flush = false |
||
) |
|
protected |
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
|
protected |
Referenced by Engine::IndexFileT< FileT >::IndexFileT().
|
protected |
Referenced by Engine::IndexFileT< FileT >::IndexFileT().