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

#include <FixProtocols.h>

+ Collaboration diagram for FixProtocols:

Public Types

typedef std::map< std::string,
AppTransProtocolPair
AppTransProtocolMap
 
typedef std::pair< std::string,
std::string > 
AppTransProtocolPair
 
typedef std::map< std::string,
VersionPair
ProtocolMap
 
typedef std::set< std::string > ProtocolSet
 
typedef std::pair
< Engine::ProtocolID,
Engine::FIXVersion
VersionPair
 

Public Member Functions

void createCustomProtocols (Utils::Properties &settings, Utils::Properties &engineSettings)
 
 FixProtocols ()
 
Engine::FIXVersion getBaseProtocol (Engine::ProtocolID id) const
 
Engine::FIXVersion getBaseProtocol (const char *protocolName) const
 
Engine::FIXVersion getFIX50AppVersion (const char *protocolName) const
 
Engine::FIXVersion getFIX50AppVersion (const std::string &protocolName) const
 
::Engine::ProtocolID getPredefinedProtocolID (const std::string &protocolName) const
 
::Engine::ProtocolID getProtocolID (const char *protocolName) const
 
::Engine::ProtocolID getProtocolID (const std::string &protocolName) const
 
::Engine::ProtocolID getProtocolID (const std::string &protocolName, bool enableCustomFIXProtocols) const
 
const char * getProtocolNameById (Engine::ProtocolID id) const
 
const ProtocolSetgetTransportProtocols ()
 
const ProtocolSetgetUserProtocols ()
 
void init ()
 
void initProtocolIdMap ()
 
void insertProtocolId (const std::string &userProtocolName, const std::string &appProtocolName, const std::string &transProtocolName, Engine::ProtocolID id, Engine::FIXVersion fixVersion, bool predefinedProtocol=false)
 
std::string loadProtocolFile (const std::string &file, Utils::Properties &engineSettings)
 
std::string transProtoToAppProto (const std::string &transProto, Engine::FIXVersion ver)
 

Public Attributes

ProtocolMap map_
 
ProtocolMap predefinedMap_
 
std::map< std::string,
std::string > 
protocolFileToProtocolName_
 
std::map< std::string,
std::string > 
transProtoAndVerToApp_
 
ProtocolSet transProtocols_
 
ProtocolSet userProtocols_
 
AppTransProtocolMap userProtoToAppTrans_
 

Member Typedef Documentation

typedef std::pair<std::string, std::string> FixProtocols::AppTransProtocolPair
typedef std::map<std::string, VersionPair> FixProtocols::ProtocolMap
typedef std::set<std::string> FixProtocols::ProtocolSet

Constructor & Destructor Documentation

FixProtocols::FixProtocols ( )
inline

Member Function Documentation

void FixProtocols::createCustomProtocols ( Utils::Properties settings,
Utils::Properties engineSettings 
)
inline
Engine::FIXVersion FixProtocols::getBaseProtocol ( Engine::ProtocolID  id) const
inline

Referenced by getBaseProtocol().

Engine::FIXVersion FixProtocols::getBaseProtocol ( const char *  protocolName) const
inline
Engine::FIXVersion FixProtocols::getFIX50AppVersion ( const char *  protocolName) const
inline

References map_, and Engine::NA.

Engine::FIXVersion FixProtocols::getFIX50AppVersion ( const std::string &  protocolName) const
inline

References map_, and Engine::NA.

::Engine::ProtocolID FixProtocols::getPredefinedProtocolID ( const std::string &  protocolName) const
inline
::Engine::ProtocolID FixProtocols::getProtocolID ( const char *  protocolName) const
inline

References Engine::INVALID_PROTOCOL_ID, and map_.

Referenced by getBaseProtocol(), and getProtocolID().

::Engine::ProtocolID FixProtocols::getProtocolID ( const std::string &  protocolName) const
inline
::Engine::ProtocolID FixProtocols::getProtocolID ( const std::string &  protocolName,
bool  enableCustomFIXProtocols 
) const
inline
const char* FixProtocols::getProtocolNameById ( Engine::ProtocolID  id) const
inline

References map_.

const ProtocolSet& FixProtocols::getTransportProtocols ( )
inline

References transProtocols_.

const ProtocolSet& FixProtocols::getUserProtocols ( )
inline

References userProtocols_.

void FixProtocols::init ( )
inline

References initProtocolIdMap().

void FixProtocols::initProtocolIdMap ( )
inline
void FixProtocols::insertProtocolId ( const std::string &  userProtocolName,
const std::string &  appProtocolName,
const std::string &  transProtocolName,
Engine::ProtocolID  id,
Engine::FIXVersion  fixVersion,
bool  predefinedProtocol = false 
)
inline
std::string FixProtocols::loadProtocolFile ( const std::string &  file,
Utils::Properties engineSettings 
)
inline
std::string FixProtocols::transProtoToAppProto ( const std::string &  transProto,
Engine::FIXVersion  ver 
)
inline

Member Data Documentation

ProtocolMap FixProtocols::map_
ProtocolMap FixProtocols::predefinedMap_
std::map<std::string, std::string> FixProtocols::protocolFileToProtocolName_

Referenced by loadProtocolFile().

std::map<std::string, std::string> FixProtocols::transProtoAndVerToApp_
ProtocolSet FixProtocols::transProtocols_
ProtocolSet FixProtocols::userProtocols_
AppTransProtocolMap FixProtocols::userProtoToAppTrans_

Referenced by insertProtocolId().