#include <blpapi_session.h>
Public Member Functions | |
virtual | ~EventHandler ()=0 |
virtual bool | processEvent (const Event &event, Session *session)=0 |
Defines the callback supplied by the application to process Events.
Applications which use event driven programming supply instances of their own subclass of this class to the Session to receive callbacks when an Event is available.
virtual blpapi::EventHandler::~EventHandler | ( | ) | [pure virtual] |
virtual bool blpapi::EventHandler::processEvent | ( | const Event & | event, | |
Session * | session | |||
) | [pure virtual] |
An implementation of processEvent should process the specified event
which originates from the specified session
and return true to indicate events should continue to be delivered or false to terminate dispatching of events.
If the application wishes to process the event further after returning from the processEvents() call it must make a copy of the Event to ensure the underlying data is not freed.