OnixS C++ FIX Engine  4.9.0
API Documentation
Encoder Class Reference

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

Public Member Functions

 Encoder (const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
 
 ~Encoder (void)
 
size_t encode (const OnixS::FIX::Message &fixMessage, int templateID, int version, unsigned char *buffer, size_t bufferSize, size_t *rootBlockLength) const
 
size_t encodeWithHeader (const OnixS::FIX::Message &fixMessage, int templateID, int version, unsigned char *buffer, size_t bufferSize, size_t *rootBlockLength) const
 
unsigned schemaVersion () const
 
unsigned schemaId () const
 
std::string schemaSemanticVersion () const
 
std::string schemaHeaderType () const
 

Detailed Description

Definition at line 38 of file SBE.h.

Constructor & Destructor Documentation

Encoder ( const std::string &  xmlTemplates,
ISbeCustomCoderLibrary customCoders = ONIXS_FIXENGINE_NULLPTR 
)

Creates a FIX to SBE Encoder.

Parameters
xmlTemplatesXML-based SBE templates.
customCodersCustom coders library.
~Encoder ( void  )

Destructor.

Member Function Documentation

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.

Parameters
[in]fixMessageSource FIX message to be encoded.
[in]templateIDSBE Template Identifier which uniquely describes the encoding/decoding rules.
[in]versionof the template.
[in]bufferSupplied buffer that will contain the SBE stream chunk.
[in]bufferSizeSize of the supplied buffer.
[out]rootBlockLengthSize of root block, used for the encoded message.
Returns
the size of the entire encoded SBE message.
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 prepending it with message header.

Parameters
[in]fixMessageSource FIX message to be encoded.
[in]templateIDSBE Template Identifier which uniquely describes the encoding/decoding rules.
[in]versionof the template.
[in]bufferSupplied buffer that will contain the SBE stream chunk.
[in]bufferSizeSize of the supplied buffer.
[out]rootBlockLengthSize of root block, used for the encoded message.
Returns
the size of the entire encoded SBE message.
std::string schemaHeaderType ( ) const

Name of the encoding type of the message header, which is the same for all messages in a schema.

unsigned schemaId ( ) const

Schema identifier.

std::string schemaSemanticVersion ( ) const

Semantic version of the SBE schema.

unsigned schemaVersion ( ) const

Maximum known version of the SBE schema.


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