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

Represents Block interface. More...

#include <B2BITS_Block.h>

+ Inheritance diagram for FixDictionary2::Block:
+ Collaboration diagram for FixDictionary2::Block:

Public Member Functions

 Block (Block const &block)
 Copy Constructor.
 
 Block (std::string const &id, std::string const &name)
 Constructor.
 
BlockT::Ptr clone () const
 Make copy of object.
 
std::string const & getId () const
 Returns id of Block.
 
std::string const & getName () const throw ()
 Returns name of Block.
 
std::string const & id () const
 Returns id of Block.
 
virtual ItemName itemName () const throw ()
 Returns the ItemName of object.
 
std::string const & name () const throw ()
 Returns name of Block.
 
void name (std::string const &value)
 Assigns block name.
 
void setName (std::string const &name)
 Assigns block name.
 
virtual BlockT::Ptr toBlock ()
 Try downcast to class.
 
virtual BlockT::CPtr toBlock () const
 Try downcast to Block class.
 
- 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 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.
 
- 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 ~Block () 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 Block interface.

Constructor & Destructor Documentation

◆ Block() [1/2]

FixDictionary2::Block::Block ( Block const & block)

Copy Constructor.

◆ Block() [2/2]

FixDictionary2::Block::Block ( std::string const & id,
std::string const & name )

Constructor.

Parameters
idof block
nameof block

◆ ~Block()

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

Destructor.

Member Function Documentation

◆ clone()

BlockT::Ptr FixDictionary2::Block::clone ( ) const
inlinevirtual

Make copy of object.

Implements FixDictionary2::Item.

◆ getId()

std::string const & FixDictionary2::Block::getId ( ) const
inline

Returns id of Block.

Returns
id of Block

◆ getName()

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

Returns name of Block.

Returns
name of Block

◆ id()

std::string const & FixDictionary2::Block::id ( ) const

Returns id of Block.

Returns
id of Block

◆ itemName()

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

Returns the ItemName of object.

Returns
ItemName of Object

Implements FixDictionary2::Item.

◆ name() [1/2]

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

Returns name of Block.

Returns
name of Block

◆ name() [2/2]

void FixDictionary2::Block::name ( std::string const & value)
inline

Assigns block name.

◆ setName()

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

Assigns block name.

◆ toBlock() [1/2]

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

Try downcast to class.

Returns
downcast to class

Reimplemented from FixDictionary2::Item.

◆ toBlock() [2/2]

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

Try downcast to Block class.

Returns
downcast to Block class

Reimplemented from FixDictionary2::Item.