B2BITS FIX Antenna C++ 2.33.0
|
Represents MessageItem interface. More...
#include <B2BITS_MessageItem.h>
Public Types | |
enum | MessageItemName { MESSAGEITEM_FIELDREF , MESSAGEITEM_REPEATINGGROUP , MESSAGEITEM_BLOCKREF } |
Dictionary Item Names. More... | |
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 | |
virtual MessageItemT::Ptr | clone () const =0 |
Make copy of object. | |
std::string const & | condition () const throw () |
Returns condition of MessageItem. | |
std::string const & | getCondition () const throw () |
Returns condition of MessageItem. | |
bool | isRequired () const throw () |
Returns true, if item is required or conditionaly required. | |
MessageItem () | |
Constructor. | |
MessageItem (MessageItem const &msgItem) | |
Copy Constructor. | |
virtual MessageItemName | messageItemName () const throw () =0 |
Returns type of the Message Item. | |
bool | required () const throw () |
Returns true, if item is required or conditionaly required. | |
void | setCondition (std::string const &condition) |
Set condition of MessageItem. | |
void | setRequired (bool required) throw () |
Set true, if item is required or conditionaly required. | |
virtual MessageItemT::Ptr | toMessageItem () |
Converts instance of the Item to MessageItem. | |
virtual MessageItemT::CPtr | toMessageItem () const |
Converts instance of the Item to MessageItem. | |
virtual | ~MessageItem () throw () |
Destructor. | |
Public Member Functions inherited from FixDictionary2::Item | |
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. | |
Item & | operator= (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 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. | |
Represents MessageItem interface.
Dictionary Item Names.
Enumerator | |
---|---|
MESSAGEITEM_FIELDREF | Field ref item name. |
MESSAGEITEM_REPEATINGGROUP | Repeating group item name. |
MESSAGEITEM_BLOCKREF | BlockRef item name. |
FixDictionary2::MessageItem::MessageItem | ( | ) |
Constructor.
FixDictionary2::MessageItem::MessageItem | ( | MessageItem const & | msgItem | ) |
Copy Constructor.
|
virtual |
Destructor.
|
pure virtual |
Make copy of object.
Implements FixDictionary2::Item.
Implemented in FixDictionary2::BlockRef, FixDictionary2::FieldRef, and FixDictionary2::RepeatingGroup.
std::string const & FixDictionary2::MessageItem::condition | ( | ) | const | |||
throw | ( | ) |
Returns condition of MessageItem.
|
inline |
Returns condition of MessageItem.
|
inline |
Returns true, if item is required or conditionaly required.
|
pure virtual |
Returns type of the Message Item.
Implemented in FixDictionary2::BlockRef, FixDictionary2::FieldRef, and FixDictionary2::RepeatingGroup.
bool FixDictionary2::MessageItem::required | ( | ) | const | |||
throw | ( | ) |
Returns true, if item is required or conditionaly required.
void FixDictionary2::MessageItem::setCondition | ( | std::string const & | condition | ) |
Set condition of MessageItem.
void FixDictionary2::MessageItem::setRequired | ( | bool | required | ) | ||
throw | ( | ) |
Set true, if item is required or conditionaly required.
required | value |
|
virtual |
Converts instance of the Item to MessageItem.
Reimplemented from the Item.
Reimplemented from FixDictionary2::Item.
|
virtual |
Converts instance of the Item to MessageItem.
Reimplemented from the Item.
Reimplemented from FixDictionary2::Item.