B2BITS FIX Antenna HFT
1.0.16
|
FIX Repeating Group interface. More...
#include <B2BITS_FIXGroup.h>
Public Member Functions | |
FIXGroup () | |
Default constructor. More... | |
virtual const std::string * | get (int tag, int index) const =0 |
Returns field value by tag number and entry's index. More... | |
virtual bool | get (int tag, FIXFieldValue *value, int index) const =0 |
Retrieves field value by tag number and entry's index and stores it into instance of FIXFieldValue class. More... | |
virtual bool | getAsBoolean (int tag, int index) const =0 |
Returns value as boolean. More... | |
virtual char | getAsChar (int tag, int index) const =0 |
Returns value as char. More... | |
virtual Engine::UTCDateOnly | getAsDateOnly (int tag, int index) const =0 |
Returns value as UTCDateOnly. More... | |
virtual Decimal | getAsDecimal (int tag, int index) const =0 |
Returns value as Decimal. More... | |
virtual double | getAsDouble (int tag, int index) const =0 |
Returns value as double. More... | |
virtual int | getAsInt (int tag, int index) const =0 |
Returns value as int. More... | |
virtual System::i32 | getAsInt32 (int tag, int index) const =0 |
Returns value as Int32. More... | |
virtual System::i64 | getAsInt64 (int tag, int index) const =0 |
Returns value as Int64. More... | |
virtual Engine::LocalMktDate | getAsLocalMktDate (int tag, int index) const =0 |
Returns value as LocalMktDate. More... | |
virtual Engine::MonthYear | getAsMonthYear (int tag, int index) const =0 |
Returns value as MonthYear. More... | |
virtual ByteArray | getAsRaw (int tag, int index) const =0 |
Returns value as byte array. More... | |
virtual AsciiString | getAsString (int tag, int index) const =0 |
Returns value as AsciiString. More... | |
virtual Engine::UTCTimeOnly | getAsTimeOnly (int tag, int index) const =0 |
Returns value as UTCTimeOnly. More... | |
virtual Engine::UTCTimestamp | getAsTimestamp (int tag, int index) const =0 |
Returns value as UTCTimestamp. More... | |
virtual unsigned int | getAsUInt (int tag, int index) const =0 |
Returns value as unsigned int. More... | |
virtual System::u32 | getAsUInt32 (int tag, int index) const =0 |
Returns value as UInt32. More... | |
virtual System::u64 | getAsUInt64 (int tag, int index) const =0 |
Returns value as UInt64. More... | |
virtual TagValue * | getEntry (int index)=0 throw () |
Returns group entry by index. More... | |
virtual TagValue const * | getEntry (int index) const =0 throw () |
Returns group entry by index. More... | |
virtual FixFieldsContainer * | getFields () const =0 |
Returns list of the message fields and their values. More... | |
virtual FIXGroup * | getGroup (int tag, int index)=0 |
Returns nested repeating group. More... | |
virtual FIXGroup const * | getGroup (int tag, int index) const =0 |
Returns nested repeating group. More... | |
virtual bool | hasFlag (int tag, int index) const =0 |
Returns true if value exists and contains boolean true value otherwise false. More... | |
bool | hasValue (int tag, int index) const |
Returns true if value value is defined; false otherwise. More... | |
virtual bool | isEmpty (int tag, int index) const =0 |
Returns true if value of the field is empty; false otherwise. More... | |
virtual bool | isEqual (int tag, int index, TagValue const *rv, int rvTag) const =0 |
Returns true if values are equal or both values not exist. More... | |
virtual bool | isSupported (int tag) const =0 throw () |
Verifies is field acceptable inside this group. More... | |
virtual int | leadingField () const =0 throw () |
Returns the leading field tag of the repeating group. More... | |
virtual bool | remove (int tag, int index)=0 |
Removes field, defined by input tag, from the given entry. More... | |
virtual bool | set (int tag, const FIXFieldValue &value, int index)=0 |
Assignes value to the field, defined by tag and entry index. More... | |
virtual bool | set (int tag, const std::string &value, int index)=0 |
Assignes value to the field, defined by tag and entry index. More... | |
virtual bool | set (int tag, Engine::MonthYear value, int index)=0 |
Assignes value to the field, defined by tag and entry index. More... | |
virtual bool | set (int tag, Engine::LocalMktDate value, int index)=0 |
virtual bool | set (int tag, Engine::UTCDateOnly value, int index)=0 |
virtual bool | set (int tag, Engine::UTCTimeOnly value, int index)=0 |
virtual bool | set (int tag, Engine::UTCTimestamp value, int index)=0 |
virtual bool | set (int tag, System::i32 value, int index)=0 |
virtual bool | set (int tag, System::u32 value, int index)=0 |
virtual bool | set (int tag, System::i64 value, int index)=0 |
virtual bool | set (int tag, System::u64 value, int index)=0 |
virtual bool | set (int tag, double value, int index)=0 |
virtual bool | set (int tag, Decimal value, int index)=0 |
virtual bool | set (int tag, AsciiString value, int index)=0 |
virtual bool | set (int tag, ByteArray value, int index)=0 |
virtual bool | set (int tag, char value, int index)=0 |
virtual bool | set (int tag, bool value, int index)=0 |
bool | set (int tag, char const *value, int index) |
virtual int | size () const =0 throw () |
Returns the number of entries in this repeating group. More... | |
virtual void | write (int tag, std::ostream &out, int index) const =0 |
Writes value to the stream. More... | |
Static Public Member Functions | |
static void | release (FIXGroup *pGroup) |
Releases resources used by the given group instance. More... | |
static void | release (FIXGroup const *pGroup) |
Releases resources used by the given group instance. More... | |
Protected Member Functions | |
virtual | ~FIXGroup () |
Destructor. More... | |
FIX Repeating Group interface.
Engine::FIXGroup::FIXGroup | ( | ) |
Default constructor.
|
protectedvirtual |
Destructor.
|
pure virtual |
Returns field value by tag number and entry's index.
index | group's entry index (starts at 0). |
tag | FIX field tag to get data from. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
pure virtual |
Retrieves field value by tag number and entry's index and stores it into instance of FIXFieldValue class.
index | group's entry index (starts at 0). | |
tag | FIX field tag to get data from. | |
[out] | value | pointer to the FIXFieldValue object to store data. Cannot be NULL. |
Utils::Exception | if tag not defined by FIX protocol for the group or entry index is invalid. |
|
pure virtual |
Returns value as boolean.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as char.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as UTCDateOnly.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as Decimal.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as double.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as int.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as Int32.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as Int64.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as LocalMktDate.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as MonthYear.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as byte array.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as AsciiString.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as UTCTimeOnly.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as UTCTimestamp.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as unsigned int.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as UInt32.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns value as UInt64.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |
|
pure virtual |
Returns group entry by index.
|
pure virtual |
Returns group entry by index.
|
pure virtual |
Returns list of the message fields and their values.
[out] | list | list of the message fields and values |
|
pure virtual |
Returns nested repeating group.
index | group's entry index (starts at 0). |
tag | Tag number of the leading field value. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
pure virtual |
Returns nested repeating group.
index | group's entry index (starts at 0). |
tag | Tag number of the leading field value. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
pure virtual |
Returns true if value exists and contains boolean true value otherwise false.
tag | FIX field tag to get data from. |
index | group's entry index (starts at 0). |
bool Engine::FIXGroup::hasValue | ( | int | tag, |
int | index | ||
) | const |
Returns true if value value is defined; false otherwise.
|
pure virtual |
Returns true if value of the field is empty; false otherwise.
|
pure virtual |
Returns true if values are equal or both values not exist.
tag | FIX field tag to get first value from. |
index | group's entry index of first value (starts at 0). |
rv | TagValue to get second value from. |
rvTag | FIX field tag of second value |
|
pure virtual |
Verifies is field acceptable inside this group.
tag | Tag number of the field to verify. |
|
pure virtual |
Returns the leading field tag of the repeating group.
|
static |
Releases resources used by the given group instance.
pGroup | Pointer to FIXGroup |
|
static |
Releases resources used by the given group instance.
pGroup | Pointer to FIXGroup |
|
pure virtual |
Removes field, defined by input tag, from the given entry.
index | group's entry index (starts at 0). |
tag | Tag of field to remove. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
pure virtual |
Assignes value to the field, defined by tag and entry index.
index | group's entry index (starts at 0). |
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if tag not defined by FIX protocol for the group or entry index is invalid. |
|
pure virtual |
Assignes value to the field, defined by tag and entry index.
index | group's entry index (starts at 0). |
tag | FIX field tag to set data to. |
value | New value for field. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
pure virtual |
Assignes value to the field, defined by tag and entry index.
index | group's entry index (starts at 0). |
tag | Tag number of field to set data. |
value | New value for field. |
Utils::Exception | if tag not defined for the group or entry index is invalid. |
|
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 |
|
pure virtual |
Returns the number of entries in this repeating group.
|
pure virtual |
Writes value to the stream.
tag | FIX field tag to get data from. |
out | stream to write value to. |
index | group's entry index (starts at 0). |
Utils::Exception | if tag value is not defined. |