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

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

Public Member Functions

 Encoder (const std::string &xmlTemplates)
 ~Encoder (void)
size_t encode (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 39 of file SBE.h.

Constructor & Destructor Documentation

Encoder ( const std::string &  xmlTemplates)

Creates a FIX to SBE Encoder.

xmlTemplatesXML-based SBE templates.
~Encoder ( void  )


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.

[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.
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: