53 Encoder(
const std::string & xmlTemplates,
const std::string & fixDictionaryId,
bool encodeEachMessageIndependently);
61 Encoder(
const std::string & xmlTemplates,
bool encodeEachMessageIndependently);
81 Encoder(
ProtocolVersion::Enum baseVersion,
const std::string & xmlTemplates,
const std::string & genericFixDictionaryId,
bool encodeEachMessageIndependently);
171 const std::string & xmlTemplates,
const std::string & genericFixDictionaryId,
274 const std::string & fixDictionaryId, std::string * fixDictionaryXml);
283 const std::string & fastTemplateXml,
const std::string & fixDictionaryId,
284 std::string * fixDictionaryXml);
#define ONIXS_FIXENGINE_API_DECL(typeKind, typeName)
#define ONIXS_FIXENGINE_API
Identifies the FIX messages dictionary.
bool tryDecode(const unsigned char *buffer, size_t offset, size_t count, OnixS::FIX::Message *message, size_t *numberOfDecodedBytes)
const OnixS::FIX::Message & decode(const unsigned char *buffer, size_t bufferSize)
Decoder(const std::string &xmlTemplates, const OnixS::FIX::Dictionary &fixDictionary, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder.
void maximumNumberOfRepeatingGroupEntries(int value)
Manages the maximum number of repeating groups, allowed for decoded messages.
const OnixS::FIX::Message & decode(const std::vector< char > &chunk)
Decodes the given FAST stream chunk into the corresponding FIX Message.
static void generateFixDictionary(const std::string &fastTemplateXml, const std::string &fixDictionaryId, std::string *fixDictionaryXml)
Generates the FIX dictionary XML.
const OnixS::FIX::Message & decode(const char *buffer, size_t bufferSize)
Decodes the given FAST stream chunk into the corresponding FIX Message.
Decoder(const std::string &xmlTemplates, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder for the FIX dictionary-independent mode.
Decoder(ProtocolVersion::Enum baseVersionForGeneratedDictionary, 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.
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.
int maximumNumberOfRepeatingGroupEntries() const
The maximum number of repeating groups, allowed for decoded messages.
static void generateFixDictionary(ProtocolVersion::Enum baseVersion, const std::string &fastTemplateXml, const std::string &fixDictionaryId, std::string *fixDictionaryXml)
Generates the FIX dictionary XML.
static bool tryDecodeUnsignedInteger(const unsigned char *buffer, size_t bufferSize, unsigned int *value, size_t *fieldLength)
OnixS::FIX::Dictionary fixDictionary() const
The FIX dictionary used by the decoder instance.
Decoder(ProtocolVersion::Enum baseVersionForGeneratedDictionary, const std::string &xmlTemplates, bool decodeEachMessageIndependently, InputDataTraits::Enum inputDataTraits)
Creates a FAST to FIX Decoder for the FIX dictionary-independent mode.
void reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefi...
bool tryDecode(const char *buffer, size_t offset, size_t count, OnixS::FIX::Message *message, size_t *numberOfDecodedBytes)
Tries to decode the given FAST stream buffer into the corresponding FIX Message.
const OnixS::FIX::Message & decode(const OnixS::Sockets::Bytes &chunk)
~Decoder()
The destructor.
~Encoder(void)
The destructor.
size_t encode(const OnixS::FIX::Message &fixMessage, int templateID, char *buffer, size_t bufferSize)
Encodes the given FIX message into a FAST stream.
size_t encode(const OnixS::FIX::Message &fixMessage, char *buffer, size_t bufferSize)
Encodes the given FIX message into a FAST stream using the default template ID.
Encoder(ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, bool encodeEachMessageIndependently)
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
Encoder(const std::string &xmlTemplates, ProtocolVersion::Enum fixVersion, bool encodeEachMessageIndependently)
Creates a FIX to FAST Encoder.
size_t encode(const OnixS::FIX::Message &fixMessage, unsigned char *buffer, size_t bufferSize)
Encoder(ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, const std::string &genericFixDictionaryId, bool encodeEachMessageIndependently)
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
Encoder(const std::string &xmlTemplates, bool encodeEachMessageIndependently)
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
size_t encode(const OnixS::FIX::Message &fixMessage, int templateID, unsigned char *buffer, size_t bufferSize)
OnixS::FIX::Dictionary fixDictionary() const
The FIX dictionary used by the encoder instance.
void reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefi...
Encoder(const std::string &xmlTemplates, const std::string &fixDictionaryId, bool encodeEachMessageIndependently)
Creates a FIX to FAST Encoder.
Encapsulates operations over a FIX Message.
std::vector< Byte > Bytes
Sequence of bytes.