#include <OnixS/FIXEngine/FIX/IDecodeListener.h>
Public Member Functions | |
virtual | ~IDecodeListener () ONIXS_FIXENGINE_DEFAULT |
Entire message events | |
These events belongs to the entire message. Events occur single time per message. | |
virtual void | onBeginMessage (unsigned templateId, const char *messageType, size_t messageTypeLength)=0 |
virtual void | onEndMessage ()=0 |
Data field events | |
These events denotes that particular fields were decoded. Events occurs once per a field. | |
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 |
Sequence events | |
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, int lengthFieldTag)=0 |
virtual void | onEndSequence ()=0 |
Sequence entry events | |
These callbacks embraces sequence entry decoding. Each callback called once per 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 IDecodeListener.h.
|
virtual |
|
pure virtual |
|
pure virtual |
Called just before first entry of the sequence decoding.
tag | The Tag of the sequence |
itemCount | The number of entries in the sequence. |
lengthFieldTag | The Tag of the <length> field. |
|
pure virtual |
Called just before the sequence entry decoding.
index | The index of the entry. |
|
pure virtual |
Called when the decoder finishes the current message decoding.
|
pure virtual |
Called immediately after the last sequence entry decoded.
|
pure virtual |
Called after the entry was decoded.
|
pure virtual |
Called when a signed 32-bit integer field decoded.
tag | The FIX tag of the field. |
value | the decoded value. |
|
pure virtual |
Called when an unsigned 32-bit integer field decoded.
tag | The FIX tag of the field. |
value | the decoded value. |
|
pure virtual |
Called when a signed 64-bit integer field decoded.
tag | The FIX tag of the field. |
value | the decoded value. |
|
pure virtual |
Called when an unsigned 64-bit integer field decoded.
tag | The FIX tag of the field. |
value | the decoded value. |
|
pure virtual |
Called when a decimal field decoded.
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). |
|
pure virtual |
Called when a string (ASCII or Unicode) or byteVector decoded.
tag | The FIX tag of the field. |
value | The pointer to start of decoded data. |
valueLength | The length of the decoded data (does not include the terminating zero for <string> fields). |