#include <OnixS/CME/MDH/messaging/TagBased/Message.h>
|
| | operator bool () const noexcept |
| FieldSet & | reset () noexcept |
| Field | field (Tag tag) const noexcept |
| FieldSet & | setField (Tag tag, const Field &field) |
| FieldSet & | resetField (Tag tag) |
| Field | operator[] (Tag tag) const noexcept |
| bool | contain (Tag tag) const noexcept |
| Char | getChar (Tag tag) const |
| Int64 | getInt64 (Tag tag) const |
| UInt64 | getUInt64 (Tag tag) const |
| Int32 | getInt32 (Tag tag) const |
| UInt32 | getUInt32 (Tag tag) const |
| Int16 | getInt16 (Tag tag) const |
| UInt16 | getUInt16 (Tag tag) const |
| Int8 | getInt8 (Tag tag) const |
| UInt8 | getUInt8 (Tag tag) const |
| Decimal | getDecimal (Tag tag) const |
| StrRef | getStringRef (Tag tag) const |
| Timestamp | getTimestamp (Tag tag) const |
| MaturityMonthYear | getMaturityMonthYear (Tag tag) const |
| template<typename Enumeration> |
| Enumeration::Enum | getEnumeration (Tag tag) const |
| template<typename BitSet> |
| BitSet | getBitSet (Tag tag) const |
| FieldSet & | set (Tag tag, const Field &field) |
| template<typename BitSet> |
| FieldSet & | set (Tag tag, BitSet value, typename BitSet::Bits *=nullptr) |
| FieldSet & | set (Tag tag, Char value) |
| FieldSet & | set (Tag tag, UInt64 value) |
| FieldSet & | set (Tag tag, Int64 value) |
| FieldSet & | set (Tag tag, UInt32 value) |
| FieldSet & | set (Tag tag, Int32 value) |
| FieldSet & | set (Tag tag, UInt16 value) |
| FieldSet & | set (Tag tag, Int16 value) |
| FieldSet & | set (Tag tag, UInt8 value) |
| FieldSet & | set (Tag tag, Int8 value) |
| FieldSet & | set (Tag tag, const Decimal &value) |
| FieldSet & | set (Tag tag, StrRef value) |
| FieldSet & | set (Tag tag, Timestamp value) |
| FieldSet & | set (Tag tag, const MaturityMonthYear &value) |
| | ~FieldSet ()=default |
Definition at line 52 of file Message.h.
◆ ~FieldSet()
◆ FieldSet()
Initializes the instance over the binary data.
Definition at line 476 of file Message.h.
◆ accessor()
◆ contain()
| bool contain |
( |
Tag | tag | ) |
const |
|
noexcept |
- Returns
- true if the field-set contains the field with the given tag, otherwise - false.
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ field()
- Returns
- Field by its tag.
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 79 of file Message.h.
◆ getBitSet()
template<typename BitSet>
| BitSet getBitSet |
( |
Tag | tag | ) |
const |
|
inline |
- Returns
- the field value as a set.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 310 of file Message.h.
◆ getChar()
- Returns
- field value as an Char value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getDecimal()
- Returns
- the field value as a Decimal number.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getEnumeration()
template<typename Enumeration>
| Enumeration::Enum getEnumeration |
( |
Tag | tag | ) |
const |
|
inline |
- Returns
- the field value as an enumeration.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 295 of file Message.h.
◆ getInt16()
- Returns
- field value as an Int16 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getInt32()
- Returns
- field value as an Int32 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getInt64()
- Returns
- field value as an Int64 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getInt8()
- Returns
- field value as an Int8 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getMaturityMonthYear()
- Returns
- the field value as a MaturityMonthYear.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getStringRef()
- Returns
- reference to a read-only text chain.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getTimestamp()
- Returns
- the field value as a timestamp
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getUInt16()
- Returns
- field value as an UInt16 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getUInt32()
- Returns
- field value as an UInt32 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getUInt64()
- Returns
- field value as an UInt64 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ getUInt8()
- Returns
- field value as an UInt8 value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value does not exist. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ operator bool()
- Returns
- true if the instance refers to a valid repeating group entry, otherwise - false.
Definition at line 55 of file Message.h.
◆ operator[]()
- Returns
- field by its tag.
If the source does not contain any field with the given tag, the returned instance represents a null field.
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 128 of file Message.h.
◆ reset()
Resets all variable-length and optional fields.
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 66 of file Message.h.
◆ resetField()
Resets the field by its tag.
- Exceptions
-
| std::runtime_error | if or the value is not optional or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
Definition at line 109 of file Message.h.
◆ set() [1/15]
template<typename BitSet>
| FieldSet & set |
( |
Tag | tag, |
|
|
BitSet | value, |
|
|
typename BitSet::Bits * | = nullptr ) |
|
inline |
Assigns a given value as a set.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
Definition at line 329 of file Message.h.
◆ set() [2/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
◆ set() [3/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [4/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
Definition at line 319 of file Message.h.
◆ set() [5/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [6/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [7/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [8/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [9/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [10/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [11/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [12/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [13/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [14/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ set() [15/15]
Assigns a given value.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
- Warning
- Does not check whether the instance refers to a valid set of fields. Use operator bool() to check whether the instance is in a valid state.
◆ setAccessor()
◆ setField()
Assigns the field by its tag.
- Exceptions
-
| std::runtime_error | if conversion is impossible or the value is not allowed. |
Definition at line 90 of file Message.h.