#include <OnixS/CME/DropCopy/Messaging.h>
Encapsulates primary operations over collection of FIX fields like FIX message and repeating group instance are.
Definition at line 232 of file Messaging.h.
bool contain |
( |
Tag |
tag | ) |
const |
Checks the presence of a field This method should be used if the actual field value is NOT of interest - otherwise field lookup operation will be done twice.
Provides access to field value using field tag.
- Returns
- Reference to a value associated with field identified by tag. If there's no value associated with a field, returned reference refers to nothing.
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
char getChar |
( |
Tag |
tag | ) |
const |
Returns field value as a char value.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns the field value as a decimal number.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns reference to a repeating group if underlying field defines length of repeating group.
- Parameters
-
tag | represent tag number of the field that defines number of instances in this repeating group (the NoXXX field). |
- Exceptions
-
std::exception | if no repeating group is associated with given field including field absence. |
Returns field value as an Int32 value.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns field value as an Int64 value.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Group getOptionalGroup |
( |
Tag |
tag, |
|
|
bool |
strict = true |
|
) |
| const |
Returns reference to a repeating group if underlying field defines length of repeating group. If field is absent returns instance referencing to nothing. If field is undefined for this message throws exception (if strict parameter is true) or returns instance referencing to nothing (if strict parameter is false).
- Parameters
-
tag | represent tag number of the field that defines number of instances in this repeating group (the NoXXX field). |
strict | set to true (default) if field undefined for this message shall throw exception or to false if shall return empty group instance. |
- Exceptions
-
std::exception | if given field is undefined (and strict parameter is true) or doesn't suppose to represent repeating group. |
Returns reference to a read-only text chain.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns the field value as timestamp of requested format.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns field value as an UInt32 value.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
Returns field value as an UInt64 value.
- Exceptions
-
std::exception | if field is absent or associated value can't be converted to target type. |
- Warning
- Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use casting to bool operator to check whether instance refers to a valid set of fields.
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 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: