Primary purpose of OnixS::Senaf::MarketData::Handler class is to process market data transmitted by MDP and deliver the results to the user for further analysis and processing.
The Handler processes market data asynchronously and uses concept of events and event listeners to notify client code about a particular occasion like reception of security definition or direct book update.
For a better experience SDK groups events and provides C++ classes with virtual members for each of those groups. Client code may override any or all members of each listener to implement own reaction for a particular event. For each listener Handler exposes special member like OnixS::Senaf::MarketData::Handler::registerReferenceListener which allows to associate an instance of the event listener with a appropriate group of events in bounds of a particular instance of the OnixS::Senaf::MarketData::Handler class.
Associating event listener with an instance of the OnixS::Senaf::MarketData::Handler class is also called subscribing to an event.
Below table describes primary groups of events exposed by the Handler as well as depicts correspondence between events, interfaces for listeners and the OnixS::Senaf::MarketData::Handler members to subscribe to an event: