#include <OnixS/Eurex/MarketData/FieldSet.h>
Encapsulates primary operations over collection of FIX fields like FIX message and repeating group instance are.
Definition at line 66 of file FieldSet.h.
size_t fields |
( |
Fields & |
fields | ) |
const |
Retrieve tags and values of all non-empty fields belonged to the given FieldSet
instance.
- Parameters
-
fields | Object to receive the FieldSet content. |
- Returns
- Number of fields placed to the
fields
vector.
Returns reference to a given field value.
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Returns the field value as a decimal number.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Group getGroup |
( |
Tag |
numberOfInstancesTag | ) |
const |
Returns reference to a repeating group if underlying field defines length of repeating group.
- Parameters
-
numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
- Exceptions
-
std::exception | if no repeating group is associated with given field (tag). |
- Warning
- Returned instance remains valid until field is modified via any of OnixS::FIX::FieldSet::set members.
Returns field value as an OnixS::FIX::Int32 value.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Int64 getInt64 |
( |
Tag |
tag | ) |
const |
Returns field value as an OnixS::FIX::Int64 value.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Group getOptionalGroup |
( |
Tag |
numberOfInstancesTag | ) |
const |
Returns reference to a repeating group if underlying field defines length of repeating group.
- Parameters
-
numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
- Warning
- Returned instance remains valid until field is modified via any of OnixS::FIX::FieldSet::set members.
Returns reference to a read-only text chain.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Returns the field value as timestamp of requested format.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
Returns field value as an OnixS::FIX::UInt32 value.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
UInt64 getUInt64 |
( |
Tag |
tag | ) |
const |
Returns field value as an OnixS::FIX::UInt64 value.
- Exceptions
-
std::exception | if conversion is impossible. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
bool hasFlag |
( |
Tag |
tag | ) |
const |
Returns true if the given flag is present and it equals to "Y", otherwise false.
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use OnixS::FIX::FieldSet::operator bool() to check whether instance is in valid state.
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.
friend class MessageOperator |
|
friend |
The documentation for this class was generated from the following file: