Inner Contents | |
Repeating Groups | |
The OnixS::CME::iLink3::Messaging::SbeMessage represents a Simple Binary Encoding (SBE) message. The details about SBE can be found at the iLink 3 - Simple Binary Encoding page.
The Handler exposes the OnixS::CME::iLink3::Messaging::MessageHolder class to encapsulate services related to handling SBE messages. It is a template class, which creates an underlying buffer to store an SBE message.
The template parameter SbeMessageType
serves to indicate how the underlying buffer will be interpreted and what type of SBE message it will store.
The OnixS::CME::iLink3::Messaging::MessageHolder class contains the OnixS::CME::iLink3::Messaging::SimpleOpenFramingHeader and a strongly typed SBE message over the underlying data buffer.
To access to the strongly typed SBE message, use the OnixS::CME::iLink3::Messaging::MessageHolder::message method or OnixS::CME::iLink3::Messaging::MessageHolder::operator->().
The Handler exposes strongly typed SBE message wrappers (e.g.: OnixS::CME::iLink3::Messaging::NewOrderSingle514
), which provide interfaces to manipulate SBE message fields. These wrappers are used in strongly typed inbound callbacks of the OnixS::CME::iLink3::SessionListener class (e.g.: OnixS::CME::iLink3::SessionListener::onExecutionReportNew(const Messaging::ExecutionReportNew522 &, Session *)).
To create an SBE message object, use the OnixS::CME::iLink3::Messaging::MessageHolder constructor. It creates the underlying buffer and the strongly typed message wrapper around it.
For example:
The following example demonstrates how SBE messages can be created.
null
values, required field values are undefined. This behavior could be changed using the OnixS::CME::iLink3::Messaging::FieldsNoInitPolicy template argument.For example: