B2BITS FIX Antenna HFT
1.0.16
|
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 | copyTo (TagValue *dest, int destTag, int srcTag) const =0 |
Copies field value to another instance of the TagValue. More... | |
virtual TagValueEx * | extendTV ()=0 throw () |
Returns extended interface of TagValue. More... | |
virtual TagValueEx const * | extendTV () const =0 throw () |
Returns extended interface of TagValue. More... | |
virtual bool | get (int tag, FIXFieldValue *value) const =0 |
Retrieves field value by tag number. More... | |
virtual bool | getAsBoolean (int tag) const =0 |
Returns field value. More... | |
virtual char | getAsChar (int tag) const =0 |
Returns field value. More... | |
virtual UTCDateOnly | getAsDateOnly (int tag) const =0 |
Returns field value. More... | |
virtual Decimal | getAsDecimal (int tag) const =0 |
Returns field value. More... | |
virtual double | getAsDouble (int tag) const =0 |
Returns field value. More... | |
FIXGroup & | getAsGroup (int tag) |
Returns the repeating group instance found by the leading field tag number. More... | |
FIXGroup const & | getAsGroup (int tag) const |
Returns the repeating group instance found by the leading field tag number. More... | |
virtual int | getAsInt (int tag) const =0 |
Returns field value. More... | |
virtual System::i32 | getAsInt32 (int tag) const =0 |
Returns field value. More... | |
virtual System::i64 | getAsInt64 (int tag) const =0 |
Returns field value. More... | |
virtual LocalMktDate | getAsLocalMktDate (int tag) const =0 |
Returns field value. More... | |
virtual MonthYear | getAsMonthYear (int tag) const =0 |
Returns field value. More... | |
virtual MultipleChar | getAsMultipleChar (int tag) const =0 |
Returns field value. More... | |
virtual MultipleString | getAsMultipleString (int tag) const =0 |
Returns field value. More... | |
virtual ByteArray | getAsRaw (int tag) const =0 |
Returns field value. More... | |
virtual AsciiString | getAsString (int tag) const =0 |
Returns field value. More... | |
virtual UTCTimeOnly | getAsTimeOnly (int tag) const =0 |
Returns field value. More... | |
virtual UTCTimestamp | getAsTimestamp (int tag) const =0 |
Returns field value. More... | |
virtual unsigned int | getAsUInt (int tag) const =0 |
Returns field value. More... | |
virtual System::u32 | getAsUInt32 (int tag) const =0 |
Returns field value. More... | |
virtual System::u64 | getAsUInt64 (int tag) const =0 |
Returns field value. More... | |
ConstFieldValue | getField (int tag) const |
Returns value of the field specified by tag. More... | |
FieldValue | getField (int tag) |
Returns value of the field specified by tag. More... | |
virtual FixFieldsContainer * | getFields () const =0 |
Returns list of the message fields and their values. More... | |
virtual FIXGroup const * | getGroup (int tag) const =0 |
Returns the repeating group instance found by the leading field tag number. More... | |
virtual FIXGroup * | getGroup (int tag)=0 |
Returns the repeating group instance found by the leading field tag number. More... | |
virtual bool | hasFlag (int tag) const =0 |
Checks boolean field. More... | |
bool | hasValue (int tag) const |
Returns true if value is defined; false otherwise. More... | |
virtual bool | isEmpty (int tag) const =0 |
Returns true if value of the field is empty; false otherwise. More... | |
virtual bool | isEqual (int tag, TagValue const *rv, int rvTag) const =0 |
Compares values of the fields. More... | |
virtual bool | isSupported (int tag) const =0 throw () |
Verifies is field acceptable in the message. More... | |
virtual void | release () const =0 |
Releases FIX message instance. More... | |
virtual void | release ()=0 |
Releases FIX message instance. More... | |
virtual bool | remove (int tag)=0 |
Empties field value by tag number. More... | |
virtual void | remove (const std::set< int > &tags)=0 |
Removes passed tags from message. More... | |
virtual void | reserve (int tag, PreparedFieldIndex index, std::size_t size)=0 |
Reserves memory to store prepared field value. More... | |
virtual bool | set (int tag, MonthYear value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, LocalMktDate value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, UTCDateOnly value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, UTCTimeOnly value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, UTCTimestamp value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, System::i32 value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, System::u32 value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, System::i64 value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, System::u64 value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, double value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, Decimal value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, AsciiString value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, ByteArray value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, char value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, bool value)=0 |
Updates field value by tag number. More... | |
bool | set (int tag, char const *value) |
Updates field value by tag number. More... | |
virtual bool | set (int tag, const MultipleString &value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, const MultipleChar &value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, const FIXFieldValue &value)=0 |
Updates field value by tag number. More... | |
virtual bool | set (int tag, const std::string &value)=0 |
Updates field value by tag number. More... | |
TagValue () | |
Constructor. More... | |
virtual void | write (int tag, std::ostream &stream) const =0 |
Writes field value to the stream. More... | |
Static Public Member Functions | |
static void | release (TagValue const *obj) |
Releases assigned resources. More... | |
Protected Member Functions | |
virtual | ~TagValue () |
Destructor. More... | |
Friends | |
template<typename > | |
class | FieldValueT |
Represents tag-value structure.
Base class for FIX message end 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 |
Copies field value to another instance of the TagValue.
Utils::Exception | if source field value is not defined. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Returns extended interface of TagValue.
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Returns extended interface of TagValue.
Implemented in Parser::LiteFixMessage.
|
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. |
[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. |
Implemented in Parser::LiteFixMessage.
Referenced by fix_algo::copyTagOrClear(), fix_algo::copyTagOrSetDef(), fix_algo::fill_reject(), fix_algo::fill_reject_8(), fix_algo::fill_ucxl_8(), and Parser::LiteFixMessage::isEqual().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
FIXGroup& Engine::TagValue::getAsGroup | ( | int | tag | ) |
Returns the repeating group instance found by the leading field tag number.
tag | The tag number of the leading field value. |
Utils::Exception | if the requested group is not defined for this message type. |
FIXGroup const& Engine::TagValue::getAsGroup | ( | int | tag | ) | const |
Returns the repeating group instance found by the leading field tag number.
tag | The tag number of the leading field value. |
Utils::Exception | if the requested group is not defined for this message type. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
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. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Returns the repeating group instance found by the leading field tag number.
tag | The tag number of the leading field value. |
Utils::Exception | if requested group not defined this message type. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Returns the repeating group instance found by the leading field tag number.
tag | The tag number of the leading field value. |
Utils::Exception | if requested group not defined this message type. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Checks boolean field.
tag | Tag number of the field to verify. |
Implemented in Parser::LiteFixMessage.
bool Engine::TagValue::hasValue | ( | int | tag | ) | const |
Returns true if value is defined; false otherwise.
Referenced by fix_algo::fill_reject_8(), and fix_algo::fill_ucxl_8().
|
pure virtual |
Returns true if value of the field is empty; false otherwise.
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Compares values of the fields.
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Verifies is field acceptable in the message.
tag | Tag number of the field to verify. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Releases FIX message instance.
Implemented in Parser::LiteFixMessage, and Engine::FIXMessage.
|
pure virtual |
Releases FIX message instance.
Implemented in Parser::LiteFixMessage, and Engine::FIXMessage.
|
static |
Releases assigned resources.
|
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. |
Implemented in Parser::LiteFixMessage.
Referenced by fix_algo::copyTagOrClear(), fix_algo::fill_reject_8(), fix_algo::fill_reject_9(), and fix_algo::fill_ucxl_8().
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
Referenced by fix_algo::copyTagOrClear(), fix_algo::copyTagOrSetDef(), fix_algo::fill_reject_8(), fix_algo::fill_reject_9(), fix_algo::fill_ucxl_8(), setPrice(), setScaledPrice(), fix_algo::turnToLiteMessage(), and fix_algo::turnToLiteMessageGlob().
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
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. |
Implemented in Parser::LiteFixMessage.
|
pure virtual |
Writes field value to the stream.
[in] | tag | Tag of the field. |
[out] | stream | Output stream to write field value to. |
Implemented in Parser::LiteFixMessage.
|
friend |