Encapsulates primary operations over collection of FIX fields like FIX message and repeating group instance are. More...
Public Member Functions | |
operator bool () const | |
Indicates whether instance refers to a valid set of fields. More... | |
FieldValueRef | get (Tag tag) const |
Returns reference to a given field value. More... | |
Int32 | getInt32 (Tag tag) const |
Returns field value as an OnixS::FIX::Int32 value. More... | |
UInt32 | getUInt32 (Tag tag) const |
Returns field value as an OnixS::FIX::UInt32 value. More... | |
Int64 | getInt64 (Tag tag) const |
Returns field value as an OnixS::FIX::Int64 value. More... | |
UInt64 | getUInt64 (Tag tag) const |
Returns field value as an OnixS::FIX::UInt64 value. More... | |
Decimal | getDecimal (Tag tag) const |
Returns the field value as a decimal number. More... | |
StringRef | getStringRef (Tag tag) const |
Returns reference to a read-only text chain. More... | |
Timestamp | getTimestamp (Tag tag, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
Returns the field value as timestamp of requested format. More... | |
Group | getGroup (Tag numberOfInstancesTag) const |
Returns reference to a repeating group if underlying field defines length of repeating group. More... | |
Group | getOptionalGroup (Tag numberOfInstancesTag) const |
Returns reference to a repeating group if underlying field defines length of repeating group. More... | |
bool | hasFlag (Tag tag) const |
Returns true if the given flag is present and it equals to "Y", otherwise false. More... | |
template<typename Enumeration > | |
Enumeration::Enum | getIntEnumFieldValue (Tag tag) const |
template<typename Enumeration > | |
Enumeration::Enum | getCharEnumFieldValue (Tag tag) const |
Protected Member Functions | |
FieldSet (const Message *, void *) | |
FieldSet (const FieldSet &) | |
FieldSet & | operator= (const FieldSet &) |
Protected Attributes | |
void * | impl_ |
const Message * | container_ |
Friends | |
class | Message |
class | GroupInstance |
class | MessageOperator |
Encapsulates primary operations over collection of FIX fields like FIX message and repeating group instance are.
FieldValueRef get | ( | Tag | tag | ) | const |
Returns reference to a given field value.
Decimal getDecimal | ( | Tag | tag | ) | const |
Returns the field value as a decimal number.
std::exception | if conversion is impossible. |
Group getGroup | ( | Tag | numberOfInstancesTag | ) | const |
Returns reference to a repeating group if underlying field defines length of repeating group.
numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
std::exception | if no repeating group is associated with given field (tag). |
Int32 getInt32 | ( | Tag | tag | ) | const |
Returns field value as an OnixS::FIX::Int32 value.
std::exception | if conversion is impossible. |
Int64 getInt64 | ( | Tag | tag | ) | const |
Returns field value as an OnixS::FIX::Int64 value.
std::exception | if conversion is impossible. |
Group getOptionalGroup | ( | Tag | numberOfInstancesTag | ) | const |
Returns reference to a repeating group if underlying field defines length of repeating group.
numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
StringRef getStringRef | ( | Tag | tag | ) | const |
Returns reference to a read-only text chain.
std::exception | if conversion is impossible. |
Timestamp getTimestamp | ( | Tag | tag, |
TimestampFormat::Enum | = TimestampFormat::YYYYMMDDHHMMSSNsec |
||
) | const |
Returns the field value as timestamp of requested format.
std::exception | if conversion is impossible. |
UInt32 getUInt32 | ( | Tag | tag | ) | const |
Returns field value as an OnixS::FIX::UInt32 value.
std::exception | if conversion is impossible. |
UInt64 getUInt64 | ( | Tag | tag | ) | const |
Returns field value as an OnixS::FIX::UInt64 value.
std::exception | if conversion is impossible. |
bool hasFlag | ( | Tag | tag | ) | const |
Returns true if the given flag is present and it equals to "Y", otherwise false.
operator bool | ( | ) | const |
Indicates whether instance refers to a valid set of fields.
If given instance doesn't refer to a valid fields set, none of other members must be used.