20#if !defined(__ONIXS_EVENTBASEDDECODER_H__)
21#define __ONIXS_EVENTBASEDDECODER_H__
96 const std::string & genericFixDictionaryId,
bool decodeEachMessageIndependently,
#define ONIXS_FIXENGINE_API_DECL(typeKind, typeName)
#define ONIXS_FIXENGINE_API
Identifies the FIX messages dictionary.
bool decodeSingleMessage(const OnixS::Sockets::Bytes &chunk, IDecodeListener *listener, size_t *usedSize)
EventBasedDecoder(ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, const std::string &genericFixDictionaryId, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder for the FIX dictionary-independent mode.
bool decode(const unsigned char *buffer, size_t bufferSize, IDecodeListener *listener, size_t *usedSize)
bool decodeSingleMessage(const unsigned char *buffer, size_t bufferSize, IDecodeListener *listener, size_t *usedSize)
EventBasedDecoder(ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder for the FIX dictionary-independent mode.
bool decode(const char *buffer, size_t bufferSize, IDecodeListener *listener, size_t *usedSize)
Decodes the given FAST stream chunk.
InputDataTraits::Enum inputDataTraits() const
Input data traits of the decoder.
static bool tryDecodeUnsignedInteger(const char *buffer, size_t bufferSize, unsigned int *value, size_t *fieldLength)
Decodes the FAST-encoded unsigned integer.
EventBasedDecoder(const std::string &xmlTemplates, ProtocolVersion::Enum fixVersion, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST Decoder.
static bool tryDecodeUnsignedInteger(const unsigned char *buffer, size_t bufferSize, unsigned int *value, size_t *fieldLength)
~EventBasedDecoder(void)
The destructor.
OnixS::FIX::Dictionary fixDictionary() const
The FIX dictionary used by the decoder instance.
bool decode(const std::vector< char > &chunk, IDecodeListener *listener, size_t *usedSize)
Decodes the given FAST stream chunk.
void reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefi...
EventBasedDecoder(const std::string &xmlTemplates, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder for the FIX dictionary-independent mode.
bool decodeSingleMessage(const char *buffer, size_t bufferSize, IDecodeListener *listener, size_t *usedSize)
Decodes the first message from the given FAST stream chunk.
bool decodeSingleMessage(const std::vector< char > &chunk, IDecodeListener *listener, size_t *usedSize)
Decodes the first message from the given FAST stream chunk.
bool decode(const OnixS::Sockets::Bytes &chunk, IDecodeListener *listener, size_t *usedSize)
EventBasedDecoder(const std::string &xmlTemplates, const OnixS::FIX::Dictionary &fixDictionary, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST Decoder.
The decode session's listener.
Encapsulates operations over a FIX Message.
std::vector< Byte > Bytes
Sequence of bytes.