B2BITS FIX Antenna C++ 2.33.0
|
Represents tag-value structure. More...
#include <B2BITS_TagValue.h>
Public Types | |
typedef FieldValueT< TagValue const > const | ConstFieldValue |
typedef FieldValueT< TagValue > | FieldValue |
Public Member Functions | |
virtual void | apply (FixFieldsFunctor &f) const =0 |
Apply the given functor to every field. | |
virtual void | copyTo (TagValue *dest, int destTag, int srcTag) const =0 |
Copies field value to another instance of the TagValue. | |
virtual TagValueEx const * | extendTV () const throw () =0 |
Returns extended interface of TagValue. | |
virtual TagValueEx * | extendTV () throw () =0 |
Returns extended interface of TagValue. | |
virtual const std::string * | get (int tag) const =0 |
Retrieves field value by tag number. | |
virtual bool | get (int tag, FIXFieldValue *value) const =0 |
Retrieves field value by tag number and stores it into instance of FIXFieldValue class. | |
virtual bool | get (int tag, std::string *value) const =0 |
Returns true if field is not empty, false otherwise. | |
bool | getAsBool (int tag) const |
Returns field value. | |
virtual bool | getAsBoolean (int tag) const =0 |
Returns field value. | |
virtual char | getAsChar (int tag) const =0 |
Returns field value. | |
virtual UTCDateOnly | getAsDateOnly (int tag) const =0 |
Returns field value. | |
virtual Decimal | getAsDecimal (int tag) const =0 |
Returns field value. | |
virtual double | getAsDouble (int tag) const =0 |
Returns field value. | |
FIXGroup & | getAsGroup (int tag) |
FIXGroup const & | getAsGroup (int tag) const |
virtual int | getAsInt (int tag) const =0 |
Returns field value. | |
virtual System::i32 | getAsInt32 (int tag) const =0 |
Returns field value. | |
virtual System::i64 | getAsInt64 (int tag) const =0 |
Returns field value. | |
virtual LocalMktDate | getAsLocalMktDate (int tag) const =0 |
Returns field value. | |
virtual MonthYear | getAsMonthYear (int tag) const =0 |
Returns field value. | |
virtual MultipleChar | getAsMultipleChar (int tag) const =0 |
Returns field value. | |
virtual MultipleString | getAsMultipleString (int tag) const =0 |
Returns field value. | |
virtual ByteArray | getAsRaw (int tag) const =0 |
Returns field value. | |
virtual AsciiString | getAsString (int tag) const =0 |
Returns field value. | |
virtual UTCTimeOnly | getAsTimeOnly (int tag) const =0 |
Returns field value. | |
virtual UTCTimestamp | getAsTimestamp (int tag) const =0 |
Returns field value. | |
virtual unsigned int | getAsUInt (int tag) const =0 |
Returns field value. | |
virtual System::u32 | getAsUInt32 (int tag) const =0 |
Returns field value. | |
virtual System::u64 | getAsUInt64 (int tag) const =0 |
Returns field value. | |
FieldValue | getField (int tag) |
Returns value of the field specified by tag. | |
ConstFieldValue | getField (int tag) const |
Returns value of the field specified by tag. | |
virtual FixFieldsContainer * | getFields () const =0 |
Returns list of the message fields and their values. | |
virtual FIXGroup const * | getGroup (int tag) const =0 |
Returns pointer to the repeating group instance for a given leading field tag number. | |
virtual FIXGroup * | getGroup (int tag)=0 |
Returns pointer to the repeating group instance for a given leading field tag number. | |
virtual bool | hasFlag (int tag) const =0 |
Checks boolean field. | |
bool | hasValue (int tag) const |
Returns true if value is defined; false otherwise. | |
virtual bool | isEmpty (int tag) const =0 |
Returns true if value of the field is empty; false otherwise. | |
virtual bool | isEqual (int tag, TagValue const *rv, int rvTag) const =0 |
Compares values of the fields. | |
virtual bool | isSupported (int tag) const throw () =0 |
Verifies is field acceptable in the message. | |
virtual void | release () const =0 |
Releases FIX message instance. | |
virtual void | release ()=0 |
Releases FIX message instance. | |
virtual void | remove (const std::set< int > &tags)=0 |
Removes passed tags from message. | |
virtual bool | remove (int tag)=0 |
Empties field value by tag number. | |
virtual void | reserve (int tag, PreparedFieldIndex index, std::size_t size)=0 |
Reserves memory to store prepared field value. | |
virtual bool | set (int tag, AsciiString value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, bool value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, ByteArray value)=0 |
Updates field value by tag number. | |
bool | set (int tag, char const *value) |
Updates field value by tag number. | |
virtual bool | set (int tag, char value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, const FIXFieldValue &value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, const MultipleChar &value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, const MultipleString &value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, const std::string &value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, Decimal value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, double value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, LocalMktDate value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, MonthYear value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, System::i32 value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, System::i64 value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, System::u32 value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, System::u64 value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, UTCDateOnly value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, UTCTimeOnly value)=0 |
Updates field value by tag number. | |
virtual bool | set (int tag, UTCTimestamp value)=0 |
Updates field value by tag number. | |
TagValue () | |
Constructor. | |
virtual void | visitTree (FixFieldsVisitor &visitor) const =0 |
virtual void | write (int tag, std::ostream &stream) const =0 |
Writes field value to the stream. | |
Static Public Member Functions | |
static void | release (TagValue const *obj) |
Releases assigned resources. | |
Protected Member Functions | |
virtual | ~TagValue () |
Destructor. | |
Friends | |
template<typename > | |
class | FieldValueT |
Represents tag-value structure.
Base class for FIX message and for repeating group entry
typedef FieldValueT< TagValue const > const Engine::TagValue::ConstFieldValue |
typedef FieldValueT< TagValue > Engine::TagValue::FieldValue |
Engine::TagValue::TagValue | ( | ) |
Constructor.
|
protectedvirtual |
Destructor.
|
pure virtual |
Apply the given functor to every field.
|
pure virtual |
Copies field value to another instance of the TagValue.
Utils::Exception | if source field is not defined by FIX specification. |
Utils::Exception | if destination field is not defined by FIX specification. |
Utils::Exception | if source field is value is not defined. |
|
pure virtual |
Returns extended interface of TagValue.
|
pure virtual |
Returns extended interface of TagValue.
|
pure virtual |
Retrieves field value by tag number.
tag | FIX field tag to get data from. |
Utils::Exception | if requested field is not defined by FIX protocol for this message type. |
|
pure virtual |
Retrieves field value by tag number and stores it into instance of FIXFieldValue class.
[out] | value | pointer to the FIXFieldValue object to store data. Cannot be NULL. |
tag | Tag number of field requested field value. |
Utils::Exception | if requested field is not defined by FIX protocol for this message type. |
|
pure virtual |
Returns true if field is not empty, false otherwise.
[in] | tag | Tag of the field. |
[out] | value | Value of the field. |
|
inline |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
FIXGroup & Engine::TagValue::getAsGroup | ( | int | tag | ) |
FIXGroup const & Engine::TagValue::getAsGroup | ( | int | tag | ) | const |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
pure virtual |
Returns field value.
[in] | tag | Tag of the field. |
|
inline |
Returns value of the field specified by tag.
|
inline |
Returns value of the field specified by tag.
|
pure virtual |
Returns list of the message fields and their values.
[out] | list | List of the message fields and values. |
|
pure virtual |
Returns pointer to the repeating group instance for a given leading field tag number.
The FIXGroup instance's memory is managed by FIX Engine. FIXGroup instance is guaranteed to exist within it's parent FIXMessage's lifetime or until trimming to zero length in case if zero-sized groups are forbidden (AllowZeroNumInGroup is false).
tag | Tag number of the leading field value. |
Utils::Exception | if requested group not defined this message type. |
Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().
|
pure virtual |
Returns pointer to the repeating group instance for a given leading field tag number.
The FIXGroup instance's memory is managed by FIX Engine. FIXGroup instance is guaranteed to exist within it's
parent FIXMessage's lifetime or until trimming to zero length in case if zero-sized groups are forbidden (AllowZeroNumInGroup is false).
tag | Tag number of the leading field value. |
Utils::Exception | if requested group not defined this message type. |
|
pure virtual |
Checks boolean field.
tag | Tag number of the field to verify. |
bool Engine::TagValue::hasValue | ( | int | tag | ) | const |
Returns true if value is defined; false otherwise.
Utils::Exception | is given field is not defined for this entry. |
|
pure virtual |
Returns true if value of the field is empty; false otherwise.
Utils::Exception | is given field is not defined for this entry. |
Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().
|
pure virtual |
Compares values of the fields.
|
pure virtual |
Verifies is field acceptable in the message.
tag | Tag number of the field to verify. |
|
pure virtual |
Releases FIX message instance.
Implemented in Engine::FIXMessage.
|
pure virtual |
Releases FIX message instance.
Implemented in Engine::FIXMessage.
|
static |
Releases assigned resources.
|
pure virtual |
Removes passed tags from message.
tags | Set of field tags to remove. |
Utils::Exception | if one of the requested fields isn't defined this message type. |
|
pure virtual |
Empties field value by tag number.
The returned value indicates previous value existence, i.e if previous value wasn't empty, remove returns true, otherwise false.
tag | Tag of field to remove. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Reserves memory to store prepared field value.
[in] | tag | Tag of the field. |
[in] | index | User defined index of the prepared field. |
[in] | size | Size of the field value to reserve. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
inline |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field is not defined by FIX protocol for this message type. message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field is not defined for this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup(), Engine::TZTimeHelper::setTagDateOnly(), Engine::TZTimeHelper::setTagTZTimeOnly(), Engine::TZTimeHelper::setTagTZTimestamp(), Engine::TZTimeHelper::setTagUTCTimeOnly(), and Engine::TZTimeHelper::setTagUTCTimestamp().
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
Updates field value by tag number.
The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if requested field not defined this message type. |
|
pure virtual |
|
pure virtual |
Writes field value to the stream.
[in] | tag | Tag of the field. |
[out] | stream | Output stream to write field value to. |
|
friend |