B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
FixDictionary2::Item Class Referenceabstract

Represents Base interface for Dictionary element. More...

#include <B2BITS_Item.h>

+ Inheritance diagram for FixDictionary2::Item:
+ Collaboration diagram for FixDictionary2::Item:

Public Types

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

virtual ItemT::Ptr clone () const =0
 Make copy of object.
 
ItemName getItemName () const throw ()
 Returns the ItemName of object.
 
 Item ()
 Default constructor.
 
 Item (Item const &obj)
 Copy constructor.
 
virtual ItemName itemName () const throw () =0
 Returns the ItemName of object.
 
Itemoperator= (Item const &obj)
 Assign operator.
 
virtual BlockT::Ptr toBlock ()
 Try downcast to Block class.
 
virtual BlockT::CPtr toBlock () const
 Try downcast to Block class.
 
virtual BlockRefT::Ptr toBlockRef ()
 Try downcast to BlockRef class.
 
virtual BlockRefT::CPtr toBlockRef () const
 Try downcast to BlockRef class.
 
virtual FieldT::Ptr toField ()
 Try downcast to Field class.
 
virtual FieldT::CPtr toField () const
 Try downcast to Field class.
 
virtual FieldRefT::Ptr toFieldRef ()
 Try downcast to FieldRef class.
 
virtual FieldRefT::CPtr toFieldRef () const
 Try downcast to FieldRef class.
 
virtual FieldTypeT::Ptr toFieldType ()
 Try downcast to FieldType class.
 
virtual FieldTypeT::CPtr toFieldType () const
 Try downcast to FieldType class.
 
virtual MessageT::Ptr toMessage ()
 Try downcast to Message class.
 
virtual MessageT::CPtr toMessage () const
 Try downcast to Message class.
 
virtual MessageItemT::Ptr toMessageItem ()
 Try downcast to MessageItem class.
 
virtual MessageItemT::CPtr toMessageItem () const
 Try downcast to MessageItem class.
 
virtual ProtocolT::Ptr toProtocol ()
 Try downcast to Protocol class.
 
virtual ProtocolT::CPtr toProtocol () const
 Try downcast to Protocol class.
 
virtual RepeatingGroupT::Ptr toRepeatingGroup ()
 Try downcast to RepeatingGroup class.
 
virtual RepeatingGroupT::CPtr toRepeatingGroup () const
 Try downcast to RepeatingGroup class.
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter.
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter.
 
 ReferenceCounter () throw ()
 Constructor.
 
virtual long release () const throw ()
 Decrements reference counter.
 

Additional Inherited Members

- Protected Member Functions inherited from Utils::ReferenceCounter
long decrement () const throw ()
 Decrements counter and returns new counter value.
 
long increment () const throw ()
 Increments counter and returns new counter value.
 
virtual ~ReferenceCounter ()
 Destructor.
 

Detailed Description

Represents Base interface for Dictionary element.

Member Enumeration Documentation

◆ ItemName

Dictionary Item Names.

Enumerator
ITEM_FIELD 

Field item name.

ITEM_FIELDTYPE 

Field type item name.

ITEM_FIELDREF 

Field ref item name.

ITEM_REPEATINGGROUP 

Repeating group item name.

ITEM_BLOCK 

Block item name.

ITEM_BLOCKREF 

BlockRef item name.

ITEM_VALBLOCK 

Values block.

ITEM_MESSAGE 

Message item name.

ITEM_PROTOCOL 

Protocol item name.

ITEM_DICTIONARY 

Dictionary item name.

Constructor & Destructor Documentation

◆ Item() [1/2]

FixDictionary2::Item::Item ( )

Default constructor.

◆ Item() [2/2]

FixDictionary2::Item::Item ( Item const & obj)

Copy constructor.

Member Function Documentation

◆ clone()

virtual ItemT::Ptr FixDictionary2::Item::clone ( ) const
pure virtual

◆ getItemName()

ItemName FixDictionary2::Item::getItemName ( ) const
throw ( )
inline

Returns the ItemName of object.

Returns
ItemName of Object

◆ itemName()

virtual ItemName FixDictionary2::Item::itemName ( ) const
throw ( )
pure virtual

◆ operator=()

Item & FixDictionary2::Item::operator= ( Item const & obj)

Assign operator.

◆ toBlock() [1/2]

virtual BlockT::Ptr FixDictionary2::Item::toBlock ( )
virtual

Try downcast to Block class.

Returns
downcast to Block class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Block.

◆ toBlock() [2/2]

virtual BlockT::CPtr FixDictionary2::Item::toBlock ( ) const
virtual

Try downcast to Block class.

Returns
downcast to Block class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Block.

◆ toBlockRef() [1/2]

virtual BlockRefT::Ptr FixDictionary2::Item::toBlockRef ( )
virtual

Try downcast to BlockRef class.

Returns
downcast to BlockRef class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::BlockRef.

◆ toBlockRef() [2/2]

virtual BlockRefT::CPtr FixDictionary2::Item::toBlockRef ( ) const
virtual

Try downcast to BlockRef class.

Returns
downcast to BlockRef class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::BlockRef.

◆ toField() [1/2]

virtual FieldT::Ptr FixDictionary2::Item::toField ( )
virtual

Try downcast to Field class.

Returns
downcast to Field class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Field.

◆ toField() [2/2]

virtual FieldT::CPtr FixDictionary2::Item::toField ( ) const
virtual

Try downcast to Field class.

Returns
downcast to Field class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Field.

◆ toFieldRef() [1/2]

virtual FieldRefT::Ptr FixDictionary2::Item::toFieldRef ( )
virtual

Try downcast to FieldRef class.

Returns
downcast to FieldRef class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::FieldRef.

◆ toFieldRef() [2/2]

virtual FieldRefT::CPtr FixDictionary2::Item::toFieldRef ( ) const
virtual

Try downcast to FieldRef class.

Returns
downcast to FieldRef class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::FieldRef.

◆ toFieldType() [1/2]

virtual FieldTypeT::Ptr FixDictionary2::Item::toFieldType ( )
virtual

Try downcast to FieldType class.

Returns
downcast to FieldType class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::FieldType.

◆ toFieldType() [2/2]

virtual FieldTypeT::CPtr FixDictionary2::Item::toFieldType ( ) const
virtual

Try downcast to FieldType class.

Returns
downcast to FieldType class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::FieldType.

◆ toMessage() [1/2]

virtual MessageT::Ptr FixDictionary2::Item::toMessage ( )
virtual

Try downcast to Message class.

Returns
downcast to Message class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Message.

◆ toMessage() [2/2]

virtual MessageT::CPtr FixDictionary2::Item::toMessage ( ) const
virtual

Try downcast to Message class.

Returns
downcast to Message class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Message.

◆ toMessageItem() [1/2]

virtual MessageItemT::Ptr FixDictionary2::Item::toMessageItem ( )
virtual

Try downcast to MessageItem class.

Returns
downcast to MessageItem class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::MessageItem.

◆ toMessageItem() [2/2]

virtual MessageItemT::CPtr FixDictionary2::Item::toMessageItem ( ) const
virtual

Try downcast to MessageItem class.

Returns
downcast to MessageItem class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::MessageItem.

◆ toProtocol() [1/2]

virtual ProtocolT::Ptr FixDictionary2::Item::toProtocol ( )
virtual

Try downcast to Protocol class.

Returns
downcast to Protocol class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Protocol.

◆ toProtocol() [2/2]

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

Try downcast to Protocol class.

Returns
downcast to Protocol class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::Protocol.

◆ toRepeatingGroup() [1/2]

virtual RepeatingGroupT::Ptr FixDictionary2::Item::toRepeatingGroup ( )
virtual

Try downcast to RepeatingGroup class.

Returns
downcast to RepeatingGroup class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::RepeatingGroup.

◆ toRepeatingGroup() [2/2]

virtual RepeatingGroupT::CPtr FixDictionary2::Item::toRepeatingGroup ( ) const
virtual

Try downcast to RepeatingGroup class.

Returns
downcast to RepeatingGroup class
Exceptions
Utils::Exceptionif the conversion fails

Reimplemented in FixDictionary2::RepeatingGroup.