#include <OnixS/FIXEngine/FIX/FieldSet.h>
Classes | |
class | ConstIterator |
Public Member Functions | |
bool | valid () const |
bool | contain (Tag tag) const |
FieldValueRef | get (Tag tag) const |
Char | getChar (Tag tag) const |
Int32 | getInt32 (Tag tag) const |
UInt32 | getUInt32 (Tag tag) const |
Int64 | getInt64 (Tag tag) const |
UInt64 | getUInt64 (Tag tag) const |
Double | getDouble (Tag tag) const |
Decimal | getDecimal (Tag tag) const |
Decimal | getDecimal (Tag tag, Int32 exponent) const |
StringRef | getStringRef (Tag tag) const |
Timestamp | getTimestamp (Tag tag) const |
Timestamp | getTimestamp (Tag tag, TimestampFormat::Enum) const |
TimeSpan | getTimeSpan (Tag tag) const |
Group | getGroup (Tag numberOfInstancesTag) const |
bool | hasFlag (Tag tag) const |
FieldSet & | set (Tag tag, Int32 value) |
FieldSet & | setV (Tag tag, Int32 value) |
FieldSet & | set (Tag tag, UInt32 value) |
FieldSet & | setV (Tag tag, UInt32 value) |
FieldSet & | set (Tag tag, Int64 value) |
FieldSet & | setV (Tag tag, Int64 value) |
FieldSet & | set (Tag tag, UInt64 value) |
FieldSet & | setV (Tag tag, UInt64 value) |
FieldSet & | set (Tag tag, Double value, size_t precision=17) |
FieldSet & | set (Tag tag, Double value, size_t precision, size_t length) |
FieldSet & | setV (Tag tag, Double value, size_t precision=17) |
FieldSet & | setV (Tag tag, Double value, size_t precision, size_t length) |
FieldSet & | set (Tag tag, const Decimal &value) |
FieldSet & | set (Tag tag, const Decimal &value, size_t length) |
FieldSet & | setV (Tag tag, const Decimal &value) |
FieldSet & | setV (Tag tag, const Decimal &value, size_t length) |
FieldSet & | set (Tag tag, char value) |
FieldSet & | set (Tag tag, const std::string &value) |
FieldSet & | set (Tag tag, const char *value) |
FieldSet & | set (Tag tag, const StringRef &value) |
FieldSet & | set (Tag tag, const Timestamp &value, TimestampFormat::Enum valueFormat=TimestampFormat::YYYYMMDDHHMMSSNsec) |
FieldSet & | setV (Tag tag, const Timestamp &value, TimestampFormat::Enum valueFormat=TimestampFormat::YYYYMMDDHHMMSSNsec) |
FieldSet & | set (Tag tag, const TimeSpan &value, TimeSpanFormat::Enum valueFormat=TimeSpanFormat::HHMMSSNsec) |
FieldSet & | setV (Tag tag, const TimeSpan &value, TimeSpanFormat::Enum valueFormat=TimeSpanFormat::HHMMSSNsec) |
Group | setGroup (Tag tag, size_t value) |
FieldSet & | setFlag (Tag tag, bool value) |
FieldSet & | set (Tag tag, const FieldValueRef &value) |
bool | erase (Tag tag) |
size_t | fields (Fields &fields) const |
ConstIterator | begin () const |
ConstIterator | end () const |
Protected Types | |
typedef size_t | AccessPolicies |
Protected Member Functions | |
FieldSet () | |
FieldSet (const Message *, void *, AccessPolicies) | |
FieldSet (const FieldSet &) | |
~FieldSet () ONIXS_FIXENGINE_DEFAULT | |
FieldSet & | operator= (const FieldSet &) |
void | swap (FieldSet &) |
Protected Attributes | |
void * | impl_ |
const Message * | container_ |
AccessPolicies | policies_ |
Friends | |
class | Message |
class | GroupInstance |
class | MessageOperator |
Definition at line 62 of file FieldSet.h.
|
protected |
Definition at line 754 of file FieldSet.h.
|
protected |
|
protected |
|
protected |
ConstIterator begin | ( | ) | const |
Returns the constant iterator to the first field in the FieldSet instance.
|
inline |
Returns 'true' if the field-set contains the field with the given tag, otherwise - 'false'.
Definition at line 790 of file FieldSet.h.
ConstIterator end | ( | ) | const |
Returns the constant iterator to the field after the last one in the FieldSet instance.
bool erase | ( | Tag | tag | ) |
Erases an association of the field with its value.
size_t fields | ( | Fields & | fields | ) | const |
FieldValueRef get | ( | Tag | tag | ) | const |
Returns a reference to the given field value.
Returns a field value as an OnixS::FIX::Char value.
std::exception | if the conversion is impossible. |
Returns the field value as a decimal number.
std::exception | if the conversion is impossible. |
Returns the field value as a decimal number with fixed exponent.
std::exception | if the conversion is impossible. |
Returns the field value as a floating-point number.
std::exception | if the conversion is impossible. |
Returns a reference to a repeating group if the underlying field defines the length of the repeating group.
numberOfInstancesTag | The 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 the given field (tag). |
Returns a field value as an OnixS::FIX::Int32 value.
std::exception | if the conversion is impossible. |
Returns a field value as an OnixS::FIX::Int64 value.
std::exception | if the conversion is impossible. |
Returns reference to a read-only text chain.
std::exception | if the conversion is impossible. |
Returns the field value as a time span.
std::exception | if the conversion is impossible. |
Returns the field value as a timestamp.
std::exception | if the conversion is impossible. |
The method tries to determine the timestamp format in runtime. Therefore, it makes sense to use this method when the timestamp format is unknown. Otherwise, for better performance, the overloaded method with the explicit timestamp format parameter should be used.
Timestamp getTimestamp | ( | Tag | tag, |
TimestampFormat::Enum | |||
) | const |
Returns the field value as a timestamp of the requested format.
std::exception | if the conversion is impossible. |
Returns a field value as an OnixS::FIX::UInt32 value.
std::exception | if the conversion is impossible. |
Returns a field value as an OnixS::FIX::UInt64 value.
std::exception | if the conversion is impossible. |
bool hasFlag | ( | Tag | tag | ) | const |
Returns true if the given flag is present and it equals to "Y", otherwise false.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field, if the string presentation of the value is greater than the length it will be truncated, only digit characters are counted.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
if the string presentation of the value is greater than the length it will be truncated, only digit characters are counted.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
Assigns the given value to the field.
Assigns the given value to the field.
The stored value represents a copy of the input.
Assigns the given value to the field.
The stored value represents a copy of the input.
Assigns the given value to the field.
The stored value represents a copy of the input.
FieldSet& set | ( | Tag | tag, |
const Timestamp & | value, | ||
TimestampFormat::Enum | valueFormat = TimestampFormat::YYYYMMDDHHMMSSNsec |
||
) |
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
FieldSet& set | ( | Tag | tag, |
const TimeSpan & | value, | ||
TimeSpanFormat::Enum | valueFormat = TimeSpanFormat::HHMMSSNsec |
||
) |
Assigns the given value to the field.
Transforms the input value into the text-presentation, so actually stored value is the text-presentation of the input. Further, the stored text-presentation may be directly accessed using the OnixS::FIX::FieldSet::getStringRef() member to avoid additional memory allocations and copying.
FieldSet& set | ( | Tag | tag, |
const FieldValueRef & | value | ||
) |
Assigns the value to a field as a copy of another field value.
Assigns the flag value ("Y" or "N") to the field.
Creates a new repeating group or changes the number of instances in the existing repeating group.
tag | The Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
value | The number of instances in the repeating group. |
std::exception | if the given field doesn't define the number of repeating group instances. |
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
if the string presentation of the value is greater than the length it will be truncated, only digit characters are counted.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
Assigns the given value to the field.
if the string presentation of the value is greater than the length it will be truncated, only digit characters are counted.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
FieldSet& setV | ( | Tag | tag, |
const Timestamp & | value, | ||
TimestampFormat::Enum | valueFormat = TimestampFormat::YYYYMMDDHHMMSSNsec |
||
) |
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
FieldSet& setV | ( | Tag | tag, |
const TimeSpan & | value, | ||
TimeSpanFormat::Enum | valueFormat = TimeSpanFormat::HHMMSSNsec |
||
) |
Assigns the given value to the field.
Saves the value being set as it is without transforming it into the text-presentation. Assigning the field value via OnixS::FIX::FieldSet::setV members saves not only value but it's type as well, therefore no parsing is performed during the subsequent access to the field via get<Type> member.
|
protected |
bool valid | ( | ) | const |
Indicates whether an instance refers to a valid set of fields.
If the given instance doesn't refer to a valid fields set, none of other members must be used.
|
friend |
Definition at line 784 of file FieldSet.h.
|
friend |
Definition at line 783 of file FieldSet.h.
|
friend |
Definition at line 785 of file FieldSet.h.
|
protected |
Definition at line 760 of file FieldSet.h.
|
protected |
Definition at line 757 of file FieldSet.h.
|
protected |
Definition at line 763 of file FieldSet.h.