#include <OnixS/FIXEngine/FIX/FieldValueRef.h>
Public Member Functions | |
| FieldValueRef () | |
| FieldValueRef (const FieldValueRef &other) | |
| bool | valid () const |
| operator std::string () const | |
| bool | operator== (const FieldValueRef &) const |
| bool | operator!= (const FieldValueRef &) const |
| bool | operator== (const StringRef &) const |
| bool | operator!= (const StringRef &) const |
| bool | toNumber (Int32 &) const |
| bool | toNumber (UInt32 &) const |
| bool | toNumber (Int64 &) const |
| bool | toNumber (UInt64 &) const |
| bool | toNumber (Double &) const |
| bool | toNumber (Decimal &) const |
| bool | toTimestamp (Timestamp &, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
| bool | toTimeSpan (TimeSpan &, TimeSpanFormat::Enum=TimeSpanFormat::HHMMSSMsec) const |
| bool | toStringRef (StringRef &) const |
| StringRef | toStringRef () const |
| bool | toChar (char &) const |
| bool | toGroup (Group &) const |
| void | toString (std::string &) const |
| std::string | toString () const |
| FieldValueRef & | operator= (const FieldValueRef &) |
| void | swap (FieldValueRef &other) |
Friends | |
| class | MessageOperator |
Implements a concept of a read-only reference to a FIX field value.
Definition at line 32 of file FieldValueRef.h.
| FieldValueRef | ( | ) |
The uninitialized value.
| FieldValueRef | ( | const FieldValueRef & | other | ) |
The shallow copy from another one.
|
inline |
Return the string presentation of the value being referenced.
Definition at line 237 of file FieldValueRef.h.
| bool operator!= | ( | const FieldValueRef & | ) | const |
Compares with another instance for inequality.
| bool operator!= | ( | const StringRef & | ) | const |
Compares the string presentation for equality with the given text reference.
| FieldValueRef & operator= | ( | const FieldValueRef & | ) |
Updates an instance to refer to another field value.
| bool operator== | ( | const FieldValueRef & | ) | const |
Compares with another instance for equality.
| bool operator== | ( | const StringRef & | ) | const |
Compares the string presentation for equality with given text reference.
| void swap | ( | FieldValueRef & | other | ) |
Swaps two references.
| bool toChar | ( | char & | ) | const |
If the value represent a one-char text, copies it into the given variable.
| bool toGroup | ( | Group & | ) | const |
If a repeating group is associated with the field, allows to get an instance of it.
| bool toNumber | ( | Decimal & | ) | const |
Converts the field value into the floating point value.
| bool toNumber | ( | Double & | ) | const |
Converts the field value into the floating point value.
| bool toNumber | ( | Int32 & | ) | const |
Converts the field value into the whole number.
| bool toNumber | ( | Int64 & | ) | const |
Converts the field value into the whole number.
| bool toNumber | ( | UInt32 & | ) | const |
Converts the field value into the whole number.
| bool toNumber | ( | UInt64 & | ) | const |
Converts the field value into the whole number.
|
inline |
Return the string presentation of the field value.
Definition at line 249 of file FieldValueRef.h.
| void toString | ( | std::string & | ) | const |
Appends a copy of a text presentation to the std::string.
|
inline |
If the value represents a text, returns a reference to it.
Definition at line 226 of file FieldValueRef.h.
| bool toStringRef | ( | StringRef & | ) | const |
If the value represents a text, returns a reference to it.
| bool toTimeSpan | ( | TimeSpan & | , |
| TimeSpanFormat::Enum | = TimeSpanFormat::HHMMSSMsec ) const |
Converts the field value into the timespan
| bool toTimestamp | ( | Timestamp & | , |
| TimestampFormat::Enum | = TimestampFormat::YYYYMMDDHHMMSSNsec ) const |
Converts the field value into the timestamp of the requested format.
| bool valid | ( | ) | const |
Indicated whether the instance refers to a valid value.
|
friend |
Definition at line 215 of file FieldValueRef.h.