Represents a parsed incoming FIX message.
More...
#include <incoming_fix_message.h>
|
| bool | has_tag (uint32_t tag) const |
| | Checks whether a FIX tag exists and is valid. More...
|
| |
| bool | has_repeating_group_tag (uint32_t tag) const |
| | Checks whether a repeating group tag exists. More...
|
| |
| std::string | to_string () const |
| | Serialises the FIX message into a human-readable string. More...
|
| |
| template<typename T > |
| T | get_tag_value_as (uint32_t tag, std::size_t decimal_points=0) const |
| | Retrieves a FIX tag value converted to the requested type. More...
|
| |
| template<typename T > |
| T | get_repeating_group_tag_value_as (uint32_t tag, std::size_t index, std::size_t decimal_points=0) const |
| | Retrieves a repeating group tag value converted to the requested type. More...
|
| |
Represents a parsed incoming FIX message.
Always call has_tag() or has_repeating_group_tag() before accessing values.
Repeating groups are handled separately via IncomingFixRepeatingGroups and accessed through dedicated APIs.
◆ get_repeating_group_tag_value_as()
template<typename T >
| T llfix::IncomingFixMessage::get_repeating_group_tag_value_as |
( |
uint32_t |
tag, |
|
|
std::size_t |
index, |
|
|
std::size_t |
decimal_points = 0 |
|
) |
| const |
|
inline |
Retrieves a repeating group tag value converted to the requested type.
- Template Parameters
-
- Parameters
-
| tag | FIX tag number. |
| index | Repeating group index (0-based). |
| decimal_points | Number of decimal places (required for floating-point and FixedPoint). |
- Returns
- Tag value converted to type T.
- Note
- Supported types:
- std::string_view
- std::string
- char
- bool
- integral types
- floating-point types
- FixedPoint
◆ get_tag_value_as()
template<typename T >
| T llfix::IncomingFixMessage::get_tag_value_as |
( |
uint32_t |
tag, |
|
|
std::size_t |
decimal_points = 0 |
|
) |
| const |
|
inline |
Retrieves a FIX tag value converted to the requested type.
- Template Parameters
-
- Parameters
-
| tag | FIX tag number. |
| decimal_points | Number of decimal points (required for floating-point and FixedPoint types). |
- Returns
- Tag value converted to type T.
- Note
- Supported types:
- std::string_view
- std::string
- char
- bool
- integral types
- floating-point types
- FixedPoint
◆ has_repeating_group_tag()
| bool llfix::IncomingFixMessage::has_repeating_group_tag |
( |
uint32_t |
tag | ) |
const |
|
inline |
Checks whether a repeating group tag exists.
- Parameters
-
| tag | FIX tag number belonging to a repeating group. |
- Returns
- true if the tag exists in the repeating group storage, false otherwise.
◆ has_tag()
| bool llfix::IncomingFixMessage::has_tag |
( |
uint32_t |
tag | ) |
const |
|
inline |
Checks whether a FIX tag exists and is valid.
- Parameters
-
- Returns
- true if the tag exists, false otherwise.
◆ to_string()
| std::string llfix::IncomingFixMessage::to_string |
( |
| ) |
const |
|
inline |
Serialises the FIX message into a human-readable string.
The output is formatted as:
- Header fields first (8, 9, 35, 34, 49, 52, 56)
- Body fields (excluding header and trailer)
- Repeating group fields
- Trailer field (10)
Fields are separated by the '|' character instead of SOH.
- Returns
- A string representation of the FIX message
The documentation for this class was generated from the following file: