B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
FixDictionary2::B2B_SEALED Class Reference

#include <B2BITS_Protocol.h>

+ Inheritance diagram for FixDictionary2::B2B_SEALED:
+ Collaboration diagram for FixDictionary2::B2B_SEALED:

Public Types

typedef std::map< std::string,
MessageT::Ref
MessagesByTypeMap
 
typedef std::map< std::string,
ProtocolT::Ref
ProtocolByNameMap
 
- Public Types inherited from FixDictionary2::Item
enum  ItemName {
  ITEM_FIELD, ITEM_FIELDTYPE, ITEM_FIELDREF, ITEM_REPEATINGGROUP,
  ITEM_BLOCK, ITEM_BLOCKREF, ITEM_VALBLOCK, ITEM_MESSAGE,
  ITEM_PROTOCOL, ITEM_DICTIONARY
}
 Dictionary Item Names. More...
 

Public Member Functions

void addBlock (BlockT::Ptr block)
 
void addField (FieldT::Ptr field)
 
void addFieldType (FieldTypeT::Ptr type)
 
void addFieldTypes (std::list< FieldTypeT::Ref > *types)
 
void addFieldTypes (FieldTypeT::RefArray types, std::size_t size)
 
void addMessage (MessageT::Ptr msg)
 
void addValBlock (ValBlockT::Ptr valBlock)
 
ProtocolT::Ptr clone () const
 Make copy of object. More...
 
ProtocolT::Ptr createProtocol (std::string const &name, std::string const &version, std::string const &title)
 Creates new protocol using name, version and title. More...
 
 Dictionary ()
 Constructor. More...
 
 Dictionary (std::string const &xmlFilePath, bool loadComments=false)
 Constructor. More...
 
BlockT::CPtr getBlock (std::string const &id) const
 Find block in protocol by id. More...
 
std::map< std::string,
BlockT::Ref > const * 
getBlocks () const throw ()
 Returns block's set used in protocol. More...
 
FieldT::CPtr getField (int tag) const
 Find field in protocol by tag. More...
 
FieldT::CPtr getField (std::string const &name) const
 Find field in protocol by name. More...
 
std::size_t getFields (FieldT::CRefArray *fields) const throw ()
 Returns fields registered in protocol. More...
 
FieldTypeT::CPtr getFieldType (std::string const &name) const
 Finds FieldType in protocol by name. More...
 
FieldTypeT::Ptr getFieldType (std::string const &name)
 
std::map< std::string,
FieldTypeT::Ref > const * 
getFieldTypes () const throw ()
 Returns field's types registered in protocol. More...
 
MessageT::CPtr getMessage (std::string const &msgType) const
 Find message in protocol by message type. More...
 
MessagesByTypeMap const * getMessages () const throw ()
 Returns messages registered in protocol. More...
 
ProtocolT::CPtr getProtocol (std::string const &name) const throw ()
 Returns registered protocol using protocol id. More...
 
ProtocolByNameMap const * getProtocols () const throw ()
 Returns all protocols. More...
 
ValBlockT::CPtr getValBlock (std::string const &id) const
 Finds ValBlock in protocol by id. More...
 
std::map< std::string,
ValBlockT::Ref > const * 
getValBocks () const throw ()
 Returns messages registered in protocol. More...
 
std::string const & id () const throw ()
 Returns name of the Protocol, unique identifier. More...
 
virtual ItemName itemName () const B2B_OVERRIDE throw ()
 Returns the ItemName of object. More...
 
virtual ItemName itemName () const B2B_OVERRIDE throw ()
 Returns the ItemName of object. More...
 
void load (std::string const &xmlFilePath, bool loadComments=false)
 Loads protocols from either FIX Dictionary file or FIX protocol customization file. More...
 
void loadFromString (std::string const &xmlString, bool loadComments=false)
 Loads protocols from thestring. More...
 
std::string const & name () const throw ()
 Returns name of the Protocol, unique identifier. More...
 
 Protocol (std::string const &name, std::string const &version, std::string const &title)
 Constructor. More...
 
void registerProtocol (ProtocolT::Ptr protocol)
 Register new protocol in Dictionary. More...
 
void removeField (int tag)
 
void removeMessage (std::string const &msgType)
 Removes given message. More...
 
ProtocolT::Ptr shallowClone (std::string const &name, std::string const &title) const
 Makes shallow copy of object. More...
 
std::string const & title () const throw ()
 Returns name of Protocol. More...
 
virtual ProtocolT::Ptr toProtocol () B2B_OVERRIDE
 Try downcast to Protocol class. More...
 
virtual ProtocolT::CPtr toProtocol () const B2B_OVERRIDE
 Try downcast to Protocol class. More...
 
void updateBlock (BlockT::Ptr block)
 
void updateField (FieldT::Ptr field)
 
void updateFieldType (FieldTypeT::Ptr type)
 
void updateMessage (MessageT::Ptr msg)
 Updates given message. More...
 
void updateValBlock (ValBlockT::Ptr valBlock)
 
std::string const & version () const throw ()
 Returns base type of Protocol. More...
 
- Public Member Functions inherited from FixDictionary2::Item
virtual BlockT::Ptr toBlock ()
 Try downcast to Block class. More...
 
virtual BlockT::CPtr toBlock () const
 Try downcast to Block class. More...
 
virtual BlockRefT::Ptr toBlockRef ()
 Try downcast to BlockRef class. More...
 
virtual BlockRefT::CPtr toBlockRef () const
 Try downcast to BlockRef class. More...
 
virtual FieldT::Ptr toField ()
 Try downcast to Field class. More...
 
virtual FieldT::CPtr toField () const
 Try downcast to Field class. More...
 
virtual FieldRefT::Ptr toFieldRef ()
 Try downcast to FieldRef class. More...
 
virtual FieldRefT::CPtr toFieldRef () const
 Try downcast to FieldRef class. More...
 
virtual FieldTypeT::Ptr toFieldType ()
 Try downcast to FieldType class. More...
 
virtual FieldTypeT::CPtr toFieldType () const
 Try downcast to FieldType class. More...
 
virtual MessageT::Ptr toMessage ()
 Try downcast to Message class. More...
 
virtual MessageT::CPtr toMessage () const
 Try downcast to Message class. More...
 
virtual MessageItemT::Ptr toMessageItem ()
 Try downcast to MessageItem class. More...
 
virtual MessageItemT::CPtr toMessageItem () const
 Try downcast to MessageItem class. More...
 
virtual RepeatingGroupT::Ptr toRepeatingGroup ()
 Try downcast to RepeatingGroup class. More...
 
virtual RepeatingGroupT::CPtr toRepeatingGroup () const
 Try downcast to RepeatingGroup class. More...
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter. More...
 
long decrement () const throw ()
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter. More...
 
 ReferenceCounter () throw ()
 Constructor. More...
 
virtual long release () const throw ()
 Decrements reference counter. More...
 

Protected Member Functions

 ~Dictionary () throw ()
 Destructor. More...
 
virtual ~Protocol () throw ()
 Destructor. More...
 
- Protected Member Functions inherited from Utils::ReferenceCounter
virtual ~ReferenceCounter ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from Utils::ReferenceCounter
volatile System::u32 m_nRef
 The counter. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

FixDictionary2::B2B_SEALED::~Dictionary ( )
throw (
)
protected

Destructor.

virtual FixDictionary2::B2B_SEALED::~Protocol ( )
throw (
)
protectedvirtual

Destructor.

Member Function Documentation

void FixDictionary2::B2B_SEALED::addBlock ( BlockT::Ptr  block)
void FixDictionary2::B2B_SEALED::addField ( FieldT::Ptr  field)
void FixDictionary2::B2B_SEALED::addFieldType ( FieldTypeT::Ptr  type)
void FixDictionary2::B2B_SEALED::addFieldTypes ( std::list< FieldTypeT::Ref > *  types)
void FixDictionary2::B2B_SEALED::addFieldTypes ( FieldTypeT::RefArray  types,
std::size_t  size 
)
void FixDictionary2::B2B_SEALED::addMessage ( MessageT::Ptr  msg)
void FixDictionary2::B2B_SEALED::addValBlock ( ValBlockT::Ptr  valBlock)
ProtocolT::Ptr FixDictionary2::B2B_SEALED::clone ( ) const
virtual

Make copy of object.

Implements FixDictionary2::Item.

ProtocolT::Ptr FixDictionary2::B2B_SEALED::createProtocol ( std::string const &  name,
std::string const &  version,
std::string const &  title 
)

Creates new protocol using name, version and title.

Returns
pointer to new created protocol.
FixDictionary2::B2B_SEALED::Dictionary ( )

Constructor.

FixDictionary2::B2B_SEALED::Dictionary ( std::string const &  xmlFilePath,
bool  loadComments = false 
)
explicit

Constructor.

BlockT::CPtr FixDictionary2::B2B_SEALED::getBlock ( std::string const &  id) const

Find block in protocol by id.

Parameters
idof block to find
Returns
found block
std::map<std::string, BlockT::Ref> const* FixDictionary2::B2B_SEALED::getBlocks ( ) const
throw (
)

Returns block's set used in protocol.

Returns
block's set used in protocol
FieldT::CPtr FixDictionary2::B2B_SEALED::getField ( int  tag) const

Find field in protocol by tag.

Parameters
tagof field to find
Returns
found tag
FieldT::CPtr FixDictionary2::B2B_SEALED::getField ( std::string const &  name) const

Find field in protocol by name.

Parameters
nameName of the field
Returns
found tag
std::size_t FixDictionary2::B2B_SEALED::getFields ( FieldT::CRefArray fields) const
throw (
)

Returns fields registered in protocol.

Returns
fields registered in protocol
FieldTypeT::CPtr FixDictionary2::B2B_SEALED::getFieldType ( std::string const &  name) const

Finds FieldType in protocol by name.

Parameters
nameof FieldType to find
Returns
found FieldType
FieldTypeT::Ptr FixDictionary2::B2B_SEALED::getFieldType ( std::string const &  name)
std::map<std::string, FieldTypeT::Ref> const* FixDictionary2::B2B_SEALED::getFieldTypes ( ) const
throw (
)

Returns field's types registered in protocol.

Returns
field's types registered in protocol
MessageT::CPtr FixDictionary2::B2B_SEALED::getMessage ( std::string const &  msgType) const

Find message in protocol by message type.

Parameters
typeof message to find
Returns
found message
MessagesByTypeMap const* FixDictionary2::B2B_SEALED::getMessages ( ) const
throw (
)

Returns messages registered in protocol.

Returns
messages registered in protocol
ProtocolT::CPtr FixDictionary2::B2B_SEALED::getProtocol ( std::string const &  name) const
throw (
)

Returns registered protocol using protocol id.

If protocol by given name is unavailable, method returns null.

ProtocolByNameMap const* FixDictionary2::B2B_SEALED::getProtocols ( ) const
throw (
)

Returns all protocols.

ValBlockT::CPtr FixDictionary2::B2B_SEALED::getValBlock ( std::string const &  id) const

Finds ValBlock in protocol by id.

Parameters
idof the ValBlock to find
Returns
found ValBlock
std::map<std::string, ValBlockT::Ref> const* FixDictionary2::B2B_SEALED::getValBocks ( ) const
throw (
)

Returns messages registered in protocol.

Returns
messages registered in protocol
std::string const& FixDictionary2::B2B_SEALED::id ( ) const
throw (
)
inline

Returns name of the Protocol, unique identifier.

Note
"name" is "id" in the FIX XML
Returns
name of the Protocol
virtual ItemName FixDictionary2::B2B_SEALED::itemName ( ) const
throw (
)
virtual

Returns the ItemName of object.

Returns
ItemName of Object

Implements FixDictionary2::Item.

virtual ItemName FixDictionary2::B2B_SEALED::itemName ( ) const
throw (
)
virtual

Returns the ItemName of object.

Returns
ItemName of Object

Implements FixDictionary2::Item.

void FixDictionary2::B2B_SEALED::load ( std::string const &  xmlFilePath,
bool  loadComments = false 
)

Loads protocols from either FIX Dictionary file or FIX protocol customization file.

void FixDictionary2::B2B_SEALED::loadFromString ( std::string const &  xmlString,
bool  loadComments = false 
)

Loads protocols from thestring.

std::string const& FixDictionary2::B2B_SEALED::name ( ) const
throw (
)

Returns name of the Protocol, unique identifier.

Note
"name" is "id" in the FIX XML
Returns
name of the Protocol
FixDictionary2::B2B_SEALED::Protocol ( std::string const &  name,
std::string const &  version,
std::string const &  title 
)

Constructor.

void FixDictionary2::B2B_SEALED::registerProtocol ( ProtocolT::Ptr  protocol)

Register new protocol in Dictionary.

Parameters
protocolProtocol for registering
Exceptions
UtilsExceptionif protocol with given id is already registered
void FixDictionary2::B2B_SEALED::removeField ( int  tag)
void FixDictionary2::B2B_SEALED::removeMessage ( std::string const &  msgType)

Removes given message.

Warning
Please note, this change may affect all descendant protocols
ProtocolT::Ptr FixDictionary2::B2B_SEALED::shallowClone ( std::string const &  name,
std::string const &  title 
) const

Makes shallow copy of object.

std::string const& FixDictionary2::B2B_SEALED::title ( ) const
throw (
)

Returns name of Protocol.

Returns
name of Protocol
virtual ProtocolT::Ptr FixDictionary2::B2B_SEALED::toProtocol ( )
virtual

Try downcast to Protocol class.

Returns
downcast to Protocol class

Reimplemented from FixDictionary2::Item.

virtual ProtocolT::CPtr FixDictionary2::B2B_SEALED::toProtocol ( ) const
virtual

Try downcast to Protocol class.

Returns
downcast to Protocol class

Reimplemented from FixDictionary2::Item.

void FixDictionary2::B2B_SEALED::updateBlock ( BlockT::Ptr  block)
void FixDictionary2::B2B_SEALED::updateField ( FieldT::Ptr  field)
void FixDictionary2::B2B_SEALED::updateFieldType ( FieldTypeT::Ptr  type)
void FixDictionary2::B2B_SEALED::updateMessage ( MessageT::Ptr  msg)

Updates given message.

Warning
Please note, this change may affect all descendant protocols
void FixDictionary2::B2B_SEALED::updateValBlock ( ValBlockT::Ptr  valBlock)
std::string const& FixDictionary2::B2B_SEALED::version ( ) const
throw (
)

Returns base type of Protocol.

Returns
base type of Protocol