B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
FixDictionary2::Message Class Reference

Represents Message interface. More...

#include <B2BITS_Message.h>

+ Inheritance diagram for FixDictionary2::Message:
+ Collaboration diagram for FixDictionary2::Message:

Public Member Functions

MessageT::Ptr clone () const
 Make copy of object.
 
std::string const & getName () const throw ()
 Returns name of Message.
 
std::string const & getType () const throw ()
 Returns type of Message.
 
virtual ItemName itemName () const throw ()
 Returns the ItemName of object.
 
 Message (Message const &message)
 Copy Constructor.
 
 Message (std::string const &type, std::string const &name)
 Constructor.
 
std::string const & name () const throw ()
 Returns name of Message.
 
void setName (std::string const &name)
 Assigns message name.
 
virtual MessageT::Ptr toMessage ()
 Try downcast to Message class.
 
virtual MessageT::CPtr toMessage () const
 Try downcast to Message class.
 
std::string const & type () const throw ()
 Returns type of Message.
 
- 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.
 
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 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.
 
- Public Member Functions inherited from FixDictionary2::MessageItemContainer
void addChild (MessageItemT::Ptr child)
 Insert Message's child element.
 
std::string const & description () const throw ()
 Returns description of the container.
 
std::size_t getChilds (MessageItemT::CRefArray *childs) const throw ()
 Return storage (not extracted) of message's elements (interpret as tree of fields and groups)
 
std::size_t getChilds (MessageItemT::RefArray *childs) throw ()
 Return storage (not extracted) of message's elements (interpret as tree of fields and groups)
 
std::string const & getDescription () const throw ()
 Returns description of the container.
 
 MessageItemContainer ()
 Constructor.
 
 MessageItemContainer (MessageItemContainer const &message)
 Copy Constructor.
 
void replaceChild (std::size_t idx, MessageItemT::Ptr child)
 Replaces stored child with given.
 
void setDescription (std::string const &value)
 Assigns description of the container.
 

Protected Member Functions

virtual ~Message () throw ()
 Destructor.
 
- 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.
 
- Protected Member Functions inherited from FixDictionary2::MessageItemContainer
virtual ~MessageItemContainer () throw ()
 Destructor.
 

Additional Inherited Members

- 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...
 

Detailed Description

Represents Message interface.

Constructor & Destructor Documentation

◆ Message() [1/2]

FixDictionary2::Message::Message ( Message const & message)

Copy Constructor.

◆ Message() [2/2]

FixDictionary2::Message::Message ( std::string const & type,
std::string const & name )

Constructor.

Parameters
typeof message
nameof message

◆ ~Message()

virtual FixDictionary2::Message::~Message ( )
throw ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ clone()

MessageT::Ptr FixDictionary2::Message::clone ( ) const
inlinevirtual

Make copy of object.

Implements FixDictionary2::Item.

◆ getName()

std::string const & FixDictionary2::Message::getName ( ) const
throw ( )
inline

Returns name of Message.

Returns
name of Message

◆ getType()

std::string const & FixDictionary2::Message::getType ( ) const
throw ( )
inline

Returns type of Message.

Returns
type of Message

◆ itemName()

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

Returns the ItemName of object.

Returns
ItemName of Object

Implements FixDictionary2::Item.

◆ name()

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

Returns name of Message.

Returns
name of Message

◆ setName()

void FixDictionary2::Message::setName ( std::string const & name)

Assigns message name.

◆ toMessage() [1/2]

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

Try downcast to Message class.

Returns
downcast to Message class

Reimplemented from FixDictionary2::Item.

◆ toMessage() [2/2]

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

Try downcast to Message class.

Returns
downcast to Message class

Reimplemented from FixDictionary2::Item.

◆ type()

std::string const & FixDictionary2::Message::type ( ) const
throw ( )

Returns type of Message.

Returns
type of Message