61 unsigned char * buffer,
size_t bufferSize,
size_t * rootBlockLength)
const;
74 unsigned char* buffer,
size_t bufferSize,
size_t* rootBlockLength)
const;
141 const unsigned char * buffer,
size_t bufferSize,
size_t * numberOfDecodedBytes =
ONIXS_FIXENGINE_NULLPTR)
const;
179 bool tryDecode(
int templateId,
int version,
size_t rootBlockLength,
181 size_t * numberOfDecodedBytes)
const;
221 const std::string & sbeTemplateXml);
#define ONIXS_FIXENGINE_API_DECL(typeKind, typeName)
#define ONIXS_FIXENGINE_API
#define ONIXS_FIXENGINE_NULLPTR
Identifies the FIX messages dictionary.
Encapsulates operations over a FIX Message.
static Dictionary generateFixDictionary(ProtocolVersion::Enum baseVersion, const std::string &sbeTemplateXml)
Generates the FIX dictionary XML.
unsigned schemaVersion() const
The maximum known version of the SBE schema.
Decoder(const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
Creates a SBE to FIX Decoder for the FIX dictionary-independent mode.
unsigned schemaId() const
The schema identifier.
static Dictionary generateFixDictionary(const std::string &sbeTemplateXml)
Generates the FIX dictionary XML.
Decoder(const std::string &xmlTemplates, const OnixS::FIX::Dictionary &fixDictionary, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
Creates a SBE to FIX Decoder.
const OnixS::FIX::Message & decode(int templateId, int version, size_t rootBlockLength, const unsigned char *buffer, size_t bufferSize, size_t *numberOfDecodedBytes=ONIXS_FIXENGINE_NULLPTR) const
Decodes the given SBE stream chunk into the corresponding FIX Message.
void maximumNumberOfRepeatingGroupEntries(int value)
Manage the maximum number of repeating groups, allowed for decoded messages.
bool tryDecode(int templateId, int version, size_t rootBlockLength, const unsigned char *buffer, size_t offset, size_t count, OnixS::FIX::Message *message, size_t *numberOfDecodedBytes) const
Tries to decode the given SBE stream buffer into the corresponding FIX Message.
Decoder(ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
Creates a SBE to FIX Decoder for the FIX dictionary-independent mode.
const OnixS::FIX::Message & decode(const unsigned char *buffer, size_t bufferSize, size_t *numberOfDecodedBytes=ONIXS_FIXENGINE_NULLPTR, int *templateId=ONIXS_FIXENGINE_NULLPTR, int *version=ONIXS_FIXENGINE_NULLPTR) const
Decodes the given SBE stream chunk into the corresponding FIX Message using the message header.
int maximumNumberOfRepeatingGroupEntries() const
The maximum number of repeating groups, allowed for decoded messages.
OnixS::FIX::Dictionary fixDictionary() const
The FIX dictionary used by the decoder instance.
std::string schemaHeaderType() const
The name of the encoding type of the message header, which is the same for all messages in a schema.
std::string schemaSemanticVersion() const
The semantic version of the SBE schema.
~Decoder()
The destructor.
Encoder(const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
Creates a FIX to SBE Encoder.
~Encoder(void)
Destructor.
unsigned schemaVersion() const
The maximum known version of the SBE schema.
unsigned schemaId() const
The schema identifier.
size_t encode(const OnixS::FIX::Message &fixMessage, int templateID, int version, unsigned char *buffer, size_t bufferSize, size_t *rootBlockLength) const
Encodes the given FIX message into a SBE stream.
std::string schemaHeaderType() const
The name of the encoding type of the message header, which is the same for all messages in a schema.
std::string schemaSemanticVersion() const
The semantic version of the SBE schema.
size_t encodeWithHeader(const OnixS::FIX::Message &fixMessage, int templateID, int version, unsigned char *buffer, size_t bufferSize, size_t *rootBlockLength) const
Encodes the given FIX message into a SBE stream and prepends the message header.
The library that contains user-defined SBE coders.