OnixS C++ FIX Engine  4.8.0
API Documentation
IDecodeListener Class Referenceabstract

#include <OnixS/FIXEngine/FIX/ISbeDecodeListener.h>

Public Member Functions

virtual ~IDecodeListener () ONIXS_FIXENGINE_DEFAULT
 
Entire message events

These events belongs to to entire message.

Each each from the group occurs single time per message.

virtual void onBeginMessage (unsigned messageTemplateId)=0
 
virtual void onEndMessage ()=0
 
Data field events

These events denotes that particular fields were decoded.

Events occurs once per 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
 
Sequence events

These callbacks embraces sequence decoding.

Each callback called once per sequence unless the sequence is empty.

virtual void onBeginSequence (int tag, size_t itemCount)=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
 

Detailed Description

This interface declares set of methods called by EventBasedDecoder during decoding process.

Definition at line 33 of file ISbeDecodeListener.h.

Constructor & Destructor Documentation

virtual ~IDecodeListener ( )
virtual
Note
FIX Engine does NOT manage the lifetime of this listener.

Member Function Documentation

virtual void onBeginMessage ( unsigned  messageTemplateId)
pure virtual

Called when a new SBE-encoded message started to decode.

Parameters
messageTemplateIdTemplate identifier of the message.
virtual void onBeginSequence ( int  tag,
size_t  itemCount 
)
pure virtual

Called just before first entry of the sequence decoding.

Parameters
tagTag of the sequence
itemCountNumber of entries in the sequence.
virtual void onBeginSequenceEntry ( size_t  index)
pure virtual

Called just before sequence entry decoding.

Parameters
indexIndex of the entry.
virtual void onEndMessage ( )
pure virtual

Called when decoder finishes current message decoding.

Note
It is possible to reset 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 single-char field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
short  value 
)
pure virtual

Called when signed 16-bit integer or signed 8-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
unsigned short  value 
)
pure virtual

Called when unsigned 16-bit integer or unsigned 8-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
int  value 
)
pure virtual

Called when signed 32-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
unsigned  value 
)
pure virtual

Called when unsigned 32-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
long long  value 
)
pure virtual

Called when signed 64-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
unsigned long long  value 
)
pure virtual

Called when unsigned 64-bit integer field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
long long  mantissa,
int  exponent 
)
pure virtual

Called when decimal field decoded.

Parameters
tagFIX tag of the field.
mantissaMantissa of the decoded decimal value.
exponentExponent 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
tagFIX tag of the field.
valuePointer to start of decoded data.
valueLengthLength of decoded data (does not include terminating zero for <string> fields).
virtual void onValue ( int  tag,
float  value 
)
pure virtual

Called when float field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.
virtual void onValue ( int  tag,
double  value 
)
pure virtual

Called when long float (double) field decoded.

Parameters
tagFIX tag of the field.
valueDecoded value.

The documentation for this class was generated from the following file: