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

Represents FieldType interface. More...

#include <B2BITS_FieldType.h>

+ Inheritance diagram for FixDictionary2::FieldType:
+ Collaboration diagram for FixDictionary2::FieldType:

Public Member Functions

std::string const & baseTypeName () const throw ()
 Returns base type name.
 
FieldTypeT::Ptr clone () const
 Make copy of object.
 
std::string const & description () const throw ()
 Returns description of the type.
 
 FieldType (FieldType const &fieldType)
 Copy Constructor.
 
 FieldType (std::string const &name, std::string const &baseTypeName)
 Constructor.
 
std::string const & getBaseTypeName () const throw ()
 Returns base type name.
 
std::string const & getDescription () const throw ()
 Returns description of the type.
 
std::string const & getName () const throw ()
 Returns name of FieldType.
 
std::string const & getValueType () const throw ()
 If type is collection of values, specifies type of the base value.
 
bool isMulti () const throw ()
 Specifies either type is collection of values.
 
virtual ItemName itemName () const throw ()
 Returns the ItemName of object.
 
std::string const & name () const throw ()
 Returns name of FieldType.
 
void setDescription (std::string const &value)
 Assigns description of the type.
 
void setValueType (std::string const &value)
 If type is collection of values, specifies type of the base value.
 
virtual FieldTypetoFieldType ()
 Try downcast to FieldType class.
 
virtual FieldType const * toFieldType () const
 Try downcast to FieldType class.
 
std::string const & valueType () const throw ()
 If type is collection of values, specifies type of the base value.
 
- 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 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.
 

Protected Member Functions

virtual ~FieldType () 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.
 

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

Constructor & Destructor Documentation

◆ FieldType() [1/2]

FixDictionary2::FieldType::FieldType ( FieldType const & fieldType)

Copy Constructor.

◆ FieldType() [2/2]

FixDictionary2::FieldType::FieldType ( std::string const & name,
std::string const & baseTypeName )

Constructor.

Parameters
nameType name
baseTypeNameBase type name

◆ ~FieldType()

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

Destructor.

Member Function Documentation

◆ baseTypeName()

std::string const & FixDictionary2::FieldType::baseTypeName ( ) const
throw ( )

Returns base type name.

Returns
base type name

◆ clone()

FieldTypeT::Ptr FixDictionary2::FieldType::clone ( ) const
inlinevirtual

Make copy of object.

Implements FixDictionary2::Item.

◆ description()

std::string const & FixDictionary2::FieldType::description ( ) const
throw ( )
inline

Returns description of the type.

◆ getBaseTypeName()

std::string const & FixDictionary2::FieldType::getBaseTypeName ( ) const
throw ( )
inline

Returns base type name.

Returns
base type name

◆ getDescription()

std::string const & FixDictionary2::FieldType::getDescription ( ) const
throw ( )

Returns description of the type.

◆ getName()

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

Returns name of FieldType.

Returns
name of FieldType

◆ getValueType()

std::string const & FixDictionary2::FieldType::getValueType ( ) const
throw ( )
inline

If type is collection of values, specifies type of the base value.

Returns
type of the base value

◆ isMulti()

bool FixDictionary2::FieldType::isMulti ( ) const
throw ( )

Specifies either type is collection of values.

Returns
true if type is collection; false oterwise.

◆ itemName()

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

Returns the ItemName of object.

Returns
ItemName of Object

Implements FixDictionary2::Item.

◆ name()

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

Returns name of FieldType.

Returns
name of FieldType

◆ setDescription()

void FixDictionary2::FieldType::setDescription ( std::string const & value)

Assigns description of the type.

◆ setValueType()

void FixDictionary2::FieldType::setValueType ( std::string const & value)

If type is collection of values, specifies type of the base value.

◆ toFieldType() [1/2]

virtual FieldType * FixDictionary2::FieldType::toFieldType ( )
virtual

Try downcast to FieldType class.

Returns
downcast to FieldType class

Reimplemented from FixDictionary2::Item.

◆ toFieldType() [2/2]

virtual FieldType const * FixDictionary2::FieldType::toFieldType ( ) const
virtual

Try downcast to FieldType class.

Returns
downcast to FieldType class

Reimplemented from FixDictionary2::Item.

◆ valueType()

std::string const & FixDictionary2::FieldType::valueType ( ) const
throw ( )

If type is collection of values, specifies type of the base value.

Returns
type of the base value