B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Parser::CmiBinaryProtocol Class Reference

#include <CmiBinaryProtocol.h>

+ Inheritance diagram for Parser::CmiBinaryProtocol:
+ Collaboration diagram for Parser::CmiBinaryProtocol:

Public Member Functions

bool canSendHeartbeats (bool initiator)
 
 CmiBinaryProtocol ()
 
const char * convertToBinary (LiteFixMessage *ownerMsg, Utils::RawBuffer *rawFixMsg, int *size, bool isIncoming)
 
Engine::FIXMessagecreateHBMessage (Engine::FixSessionUProtocol *sn)
 
int handleHBI (int hbi)
 
void handleSessionParams (Engine::SessionExtraParametersImpl &params)
 
const char * operator() (const Utils::RawBuffer &buffer, const char **msgStart, const char **bufEnd, int *procceedBytes) const
 
int parseSome (LiteFixMessage *ownerMsg, const char *buf, int len, int *offset, bool clearTheMessageBeforeUse, bool isMakeStandalone, Engine::FIXTagVisitor *callback, ParseError &error, bool isIncoming)
 
void refineLogonMessage (Engine::FixSessionUProtocol *sn, Engine::FIXMessage *logonMsg, int outSeqnum)
 
void validateMessage (const char *buf, int len)
 
- Public Member Functions inherited from Parser::BinaryProtocolI
virtual void parse (LiteFixMessage *ownerMsg, const char *buf, int len, bool clearTheMessageBeforeUse, bool isMakeStandalone, Engine::FIXTagVisitor *callback, bool isIncoming)
 
virtual void setMapping (boost::shared_ptr< BinaryFixMappingI > defMapping, boost::shared_ptr< BinaryFixMappingI > userMapping)
 
virtual void setSessionParams (const Engine::SessionExtraParametersImpl &params)
 
virtual void setSessionRole (bool isInitiator)
 

Static Public Member Functions

static const char * handleGarbledMsg (const char *aStartPsn, int aSize)
 
static const char * try_parse (const char **msgStart, const char **bufEnd)
 
static const char * try_parse (const Utils::RawBuffer &buffer, const char **msgStart, const char **bufEnd, int *procceedBytes)
 

Static Public Attributes

static const char CMI_MARKER = 0xCE
 
static const int MIN_MSG_SIZE = 16
 

Additional Inherited Members

- Public Attributes inherited from Parser::BinaryProtocolI
boost::shared_ptr
< BinaryFixMappingI
defMapping_
 
bool isInitiator_
 
boost::shared_ptr
< Engine::SessionExtraParametersImpl
params_
 
boost::shared_ptr
< BinaryFixMappingI
userMapping_
 

Constructor & Destructor Documentation

Parser::CmiBinaryProtocol::CmiBinaryProtocol ( )

Member Function Documentation

bool Parser::CmiBinaryProtocol::canSendHeartbeats ( bool  initiator)
virtual
const char* Parser::CmiBinaryProtocol::convertToBinary ( LiteFixMessage ownerMsg,
Utils::RawBuffer rawFixMsg,
int *  size,
bool  isIncoming 
)
virtual
Engine::FIXMessage* Parser::CmiBinaryProtocol::createHBMessage ( Engine::FixSessionUProtocol *  sn)
virtual
static const char* Parser::CmiBinaryProtocol::handleGarbledMsg ( const char *  aStartPsn,
int  aSize 
)
inlinestatic
int Parser::CmiBinaryProtocol::handleHBI ( int  hbi)
virtual
void Parser::CmiBinaryProtocol::handleSessionParams ( Engine::SessionExtraParametersImpl params)
virtual
const char* Parser::CmiBinaryProtocol::operator() ( const Utils::RawBuffer buffer,
const char **  msgStart,
const char **  bufEnd,
int *  procceedBytes 
) const
inline

References try_parse().

int Parser::CmiBinaryProtocol::parseSome ( LiteFixMessage ownerMsg,
const char *  buf,
int  len,
int *  offset,
bool  clearTheMessageBeforeUse,
bool  isMakeStandalone,
Engine::FIXTagVisitor callback,
ParseError error,
bool  isIncoming 
)
virtual
void Parser::CmiBinaryProtocol::refineLogonMessage ( Engine::FixSessionUProtocol *  sn,
Engine::FIXMessage logonMsg,
int  outSeqnum 
)
virtual
static const char* Parser::CmiBinaryProtocol::try_parse ( const char **  msgStart,
const char **  bufEnd 
)
inlinestatic

Referenced by operator()().

static const char* Parser::CmiBinaryProtocol::try_parse ( const Utils::RawBuffer buffer,
const char **  msgStart,
const char **  bufEnd,
int *  procceedBytes 
)
static
void Parser::CmiBinaryProtocol::validateMessage ( const char *  buf,
int  len 
)
virtual

Member Data Documentation

const char Parser::CmiBinaryProtocol::CMI_MARKER = 0xCE
static
const int Parser::CmiBinaryProtocol::MIN_MSG_SIZE = 16
static