OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
SBE Customization

Inner Contents

 SBE custom coders ownership
 SBE custom decoders
 SBE custom encoders
 Control of SBE Coding Process

Detailed Description

The SBE coders (OnixS::FIX::SBE::Encoder, OnixS::FIX::SBE::Decoder and OnixS::FIX::SBE::EventBasedDecoder) provide two alternative ways to customize their functionality.

  • It is possible to use user-defined components to encode or decode FIX message content using non-standard formats and approaches.
  • Handling of particular fields can be customized via number of specific parameters.

The customization is accomplished via user-provided object that implements OnixS::FIX::SBE::ISbeCustomCoderLibrary interface (see SBE Custom coders library).

SBE Custom coders library

The custom coders library is an object that implements OnixS::FIX::SBE::ISbeCustomCoderLibrary interface. Pointer to this object should be provided to the constructor of the SBE encoder (or decoder) which functionality must have to be customized.

The custom coders library solves following tasks:

  • Provide custom encoders and decoders for the fields that use non-standard raw data formats or specific rules of conversion to/from FIX message;
  • Manage lifecycles of the custom encoders and decoders;
  • Control encoding and decoding modes without creating of custom encoders or decoders.

Pointer to the library object that was passed to the SBE coder constructor must remain valid till destruction of the SBE coder itself. The SBE coder never deletes the library and it is responsibility of user code. Also, it is possible to attach the single library to a several SBE coders.

See also

SBE custom coders ownership

SBE custom decoders

SBE custom encoders

Control of SBE Coding Process