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

#include <SessionLogReader.h>

+ Inheritance diagram for SessionLogReader:
+ Collaboration diagram for SessionLogReader:

Public Member Functions

SessionLogRwBase::IndexFile::Offset getCurrentIndexOffset () const
 
bool getCurrentSessionRecord (SessionRecord &sessionRecord)
 
bool moveNextMessage ()
 
void reset ()
 
 SessionLogReader (std::string const &baseName, SessionLogRwBase::LogType logType)
 
- 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
 

Static Public Member Functions

static SessionLogRwBase::LogFormat getLogFormat (const std::string &filePath, SessionLogRwBase::LogType logTypeToUse=SessionLogRwBase::FileIn)
 

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

SessionLogReader::SessionLogReader ( std::string const &  baseName,
SessionLogRwBase::LogType  logType 
)

Member Function Documentation

SessionLogRwBase::IndexFile::Offset SessionLogReader::getCurrentIndexOffset ( ) const
bool SessionLogReader::getCurrentSessionRecord ( SessionRecord sessionRecord)
static SessionLogRwBase::LogFormat SessionLogReader::getLogFormat ( const std::string &  filePath,
SessionLogRwBase::LogType  logTypeToUse = SessionLogRwBase::FileIn 
)
static
bool SessionLogReader::moveNextMessage ( )
void SessionLogReader::reset ( )