B2BITS FIX Antenna HFT
1.0.17
|
#include <SessionLogRwBase.h>
Classes | |
struct | LogFormat |
struct | SessionRecord |
Public Types | |
typedef IndexData::GlobalMsgID | GlobalMsgID |
typedef Engine::IndexFile::Data | IndexData |
typedef Engine::IndexFile | IndexFile |
typedef struct SessionLogRwBase::LogFormat | LogFormat |
enum | LogRecordEOL { Windows = 0, Unix = 1, None = 2 } |
enum | LogType { FileIn, FileOut } |
![]() | |
enum | FileAccess { Read, Write } |
Public Member Functions | |
Engine::IndexFile::Offset | getIndexFileSize () const |
Engine::IndexFile::Offset | getLogFileSize () const |
SessionLogRwBase & | operator= (const SessionLogRwBase &)=delete |
bool | seekTo (Engine::IndexFile::Offset offset) |
SessionLogRwBase (const SessionLogRwBase &)=delete | |
void | toEnd () |
virtual | ~SessionLogRwBase ()=default |
Protected Member Functions | |
SessionLogRwBase (std::string const &baseName, LogType logType, FileAccess fileAccess, LogFormat logFormat) | |
![]() | |
FileStreamInitor (std::string const &indexFileName, std::string const &logFileName, const FileAccess fileAccess) | |
Static Protected Member Functions | |
static std::string | buildIndexFileName (std::string const &baseName, SessionLogRwBase::LogType logType) |
static std::string | buildLogFileName (std::string const &baseName, SessionLogRwBase::LogType logType) |
Protected Attributes | |
IndexData | currentIndexData_ |
IndexFile | indexFile_ |
Engine::FastFile | logFile_ |
LogFormat | m_logFormat |
![]() | |
std::unique_ptr< System::FileEx > | m_indexFileStream |
std::unique_ptr< System::FileEx > | m_logFileStream |
Static Protected Attributes | |
static const int | c_iLogFileTimestampSize = 24 |
typedef struct SessionLogRwBase::LogFormat SessionLogRwBase::LogFormat |
|
delete |
|
virtualdefault |
|
protected |
|
inlinestaticprotected |
References FileIn, Engine::FileStorageMgr_IndxInExt, and Engine::FileStorageMgr_IndxOutExt.
|
inlinestaticprotected |
References FileIn, Engine::FileStorageMgr_InExt, and Engine::FileStorageMgr_OutExt.
Engine::IndexFile::Offset SessionLogRwBase::getIndexFileSize | ( | ) | const |
Engine::IndexFile::Offset SessionLogRwBase::getLogFileSize | ( | ) | const |
|
delete |
bool SessionLogRwBase::seekTo | ( | Engine::IndexFile::Offset | offset | ) |
void SessionLogRwBase::toEnd | ( | ) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |