B2BITS FIX Antenna HFT  1.0.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
SessionLogWriter Class Reference

#include <SessionLogWriter.h>

+ Inheritance diagram for SessionLogWriter:
+ Collaboration diagram for SessionLogWriter:

Public Member Functions

void reset ()
 
 SessionLogWriter (std::string const &baseName, SessionLogRwBase::LogType logType, SessionLogRwBase::LogFormat logFormat)
 
void storeNext (const SessionLogRwBase::SessionRecord &sessionRecord)
 
void write (const SessionLogRwBase::SessionRecord &sessionRecord)
 
- Public Member Functions inherited from SessionLogRwBase
Engine::IndexFile::Offset getIndexFileSize () const
 
Engine::IndexFile::Offset getLogFileSize () const
 
SessionLogRwBaseoperator= (const SessionLogRwBase &)=delete
 
bool seekTo (Engine::IndexFile::Offset offset)
 
 SessionLogRwBase (const SessionLogRwBase &)=delete
 
void toEnd ()
 
virtual ~SessionLogRwBase ()=default
 

Additional Inherited Members

- Public Types inherited from SessionLogRwBase
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 }
 
- Public Types inherited from FileStreamInitor
enum  FileAccess { Read, Write }
 
- Protected Member Functions inherited from SessionLogRwBase
 SessionLogRwBase (std::string const &baseName, LogType logType, FileAccess fileAccess, LogFormat logFormat)
 
- Protected Member Functions inherited from FileStreamInitor
 FileStreamInitor (std::string const &indexFileName, std::string const &logFileName, const FileAccess fileAccess)
 
- Static Protected Member Functions inherited from SessionLogRwBase
static std::string buildIndexFileName (std::string const &baseName, SessionLogRwBase::LogType logType)
 
static std::string buildLogFileName (std::string const &baseName, SessionLogRwBase::LogType logType)
 
- Protected Attributes inherited from SessionLogRwBase
IndexData currentIndexData_
 
IndexFile indexFile_
 
Engine::FastFile logFile_
 
LogFormat m_logFormat
 
- Protected Attributes inherited from FileStreamInitor
std::unique_ptr< System::FileExm_indexFileStream
 
std::unique_ptr< System::FileExm_logFileStream
 
- Static Protected Attributes inherited from SessionLogRwBase
static const int c_iLogFileTimestampSize = 24
 

Constructor & Destructor Documentation

SessionLogWriter::SessionLogWriter ( std::string const &  baseName,
SessionLogRwBase::LogType  logType,
SessionLogRwBase::LogFormat  logFormat 
)

Member Function Documentation

void SessionLogWriter::reset ( )
void SessionLogWriter::storeNext ( const SessionLogRwBase::SessionRecord sessionRecord)
void SessionLogWriter::write ( const SessionLogRwBase::SessionRecord sessionRecord)