Definition at line 40 of file SbeEventBasedDecoder.h.
◆ EventBasedDecoder()
Creates the SBE to FIX Decoder.
- Parameters
-
xmlTemplates | XML-based SBE templates. |
customCoders | The custom coders library. |
◆ ~EventBasedDecoder()
◆ decodeSingleMessage()
bool decodeSingleMessage |
( |
int | version, |
|
|
int | templateId, |
|
|
size_t | rootBlockLength, |
|
|
const unsigned char * | buffer, |
|
|
size_t | offset, |
|
|
size_t | count, |
|
|
IDecodeListener * | listener, |
|
|
size_t * | numberOfDecodedBytes ) const |
Tries to decode the given FAST stream buffer into the corresponding FIX Message.
- Parameters
-
[in] | templateId | The identifier of the SBE template, used to decode the input data. |
[in] | version | The version of the SBE schema, used to decode the input data. |
[in] | rootBlockLength | The length of the root block. This value should be extracted from the message preamble, or from other source. |
[in] | buffer | The FAST stream chunk to be decoded. |
[in] | offset | The index in the buffer at which decoding begins. |
[in] | count | The number of bytes to analyze during the decoding. |
[in] | listener | The listener which receives decoding events. |
[out] | numberOfDecodedBytes | The number of bytes that contained the encoded FIX Message. |
- Warning
- The message should point to an existing object. This object is not owned by the Decoder and should be managed by the user.
- Exceptions
-
An | exception if the decoding error is detected. |
- Returns
- 'true' if the given bytes could be decoded into a FIX message, otherwise - 'false'.
◆ schemaHeaderType()
std::string schemaHeaderType |
( |
| ) |
const |
The name of the encoding type of the message header, which is the same for all messages in a schema.
◆ schemaId()
unsigned schemaId |
( |
| ) |
const |
◆ schemaSemanticVersion()
std::string schemaSemanticVersion |
( |
| ) |
const |
The semantic version of the SBE schema.
◆ schemaVersion()
unsigned schemaVersion |
( |
| ) |
const |
The maximum known version of the SBE schema.