#include <OnixS/FIXEngine/FIX/ISbeDecodeListener.h>
|
virtual | ~IDecodeListener () ONIXS_FIXENGINE_DEFAULT |
|
|
These events belong to the entire message.
Each one from the group occurs a single time per a message.
|
virtual void | onBeginMessage (unsigned templateId, const char *messageType, size_t messageTypeLength)=0 |
|
virtual void | onEndMessage ()=0 |
|
|
These events denotes that particular fields were decoded.
Events occurs once per a field.
|
virtual void | onValue (int tag, char value)=0 |
|
virtual void | onValue (int tag, short value)=0 |
|
virtual void | onValue (int tag, unsigned short value)=0 |
|
virtual void | onValue (int tag, int value)=0 |
|
virtual void | onValue (int tag, unsigned value)=0 |
|
virtual void | onValue (int tag, long long value)=0 |
|
virtual void | onValue (int tag, unsigned long long value)=0 |
|
virtual void | onValue (int tag, long long mantissa, int exponent)=0 |
|
virtual void | onValue (int tag, const char *value, size_t valueLength)=0 |
|
virtual void | onValue (int tag, float value)=0 |
|
virtual void | onValue (int tag, double value)=0 |
|
|
These callbacks embraces the sequence decoding.
Each callback called once per a sequence unless the sequence is empty.
|
virtual void | onBeginSequence (int tag, size_t itemCount)=0 |
|
virtual void | onEndSequence ()=0 |
|
|
These callbacks embraces the sequence entry decoding.
Each callback called once per a sequence entry.
|
virtual void | onBeginSequenceEntry (size_t index)=0 |
|
virtual void | onEndSequenceEntry ()=0 |
|
This interface declares set of methods called by the EventBasedDecoder during the decoding process.
Definition at line 33 of file ISbeDecodeListener.h.
- Note
- The FIX Engine does NOT manage the lifetime of this listener.
virtual void onBeginMessage |
( |
unsigned |
templateId, |
|
|
const char * |
messageType, |
|
|
size_t |
messageTypeLength |
|
) |
| |
|
pure virtual |
Called when a new SBE-encoded message started to decode.
- Parameters
-
templateId | The SBE template identifier of the message. |
messageType | The FIX type of the message. |
messageTypeLength | The length of the messageType string. Doe not include the terminating zero. |
virtual void onBeginSequence |
( |
int |
tag, |
|
|
size_t |
itemCount |
|
) |
| |
|
pure virtual |
Called just before first entry of the sequence decoding.
- Parameters
-
tag | The Tag of the sequence |
itemCount | The number of entries in the sequence. |
virtual void onBeginSequenceEntry |
( |
size_t |
index | ) |
|
|
pure virtual |
Called just before the sequence entry decoding.
- Parameters
-
index | The index of the entry. |
virtual void onEndMessage |
( |
| ) |
|
|
pure virtual |
Called when the decoder finishes the current message decoding.
- Note
- It is possible to reset the caller decoder during this callback.
virtual void onEndSequence |
( |
| ) |
|
|
pure virtual |
Called immediately after the last sequence entry decoded.
virtual void onEndSequenceEntry |
( |
| ) |
|
|
pure virtual |
Called after the entry was decoded.
virtual void onValue |
( |
int |
tag, |
|
|
char |
value |
|
) |
| |
|
pure virtual |
Called when a single-char field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
short |
value |
|
) |
| |
|
pure virtual |
Called when a signed 16-bit integer or signed 8-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
unsigned short |
value |
|
) |
| |
|
pure virtual |
Called when an unsigned 16-bit integer or unsigned 8-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
Called when a signed 32-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
unsigned |
value |
|
) |
| |
|
pure virtual |
Called when an unsigned 32-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
long long |
value |
|
) |
| |
|
pure virtual |
Called when a signed 64-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
unsigned long long |
value |
|
) |
| |
|
pure virtual |
Called when an unsigned 64-bit integer field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
long long |
mantissa, |
|
|
int |
exponent |
|
) |
| |
|
pure virtual |
Called when a decimal field decoded.
- Parameters
-
tag | The FIX tag of the field. |
mantissa | The mantissa of the decoded decimal value. |
exponent | The exponent of the decoded decimal value (in range of -64..63). |
virtual void onValue |
( |
int |
tag, |
|
|
const char * |
value, |
|
|
size_t |
valueLength |
|
) |
| |
|
pure virtual |
Called when a string (ASCII or Unicode) or byteVector decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The pointer to start of decoded data. |
valueLength | The length of decoded data (does not include the terminating zero for <string> fields). |
virtual void onValue |
( |
int |
tag, |
|
|
float |
value |
|
) |
| |
|
pure virtual |
Called when a float field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
virtual void onValue |
( |
int |
tag, |
|
|
double |
value |
|
) |
| |
|
pure virtual |
Called when a long float (double) field decoded.
- Parameters
-
tag | The FIX tag of the field. |
value | The decoded value. |
The documentation for this class was generated from the following file: