Public Member Functions

blpapi::EventHandler Class Reference

#include <blpapi_session.h>

List of all members.

Public Member Functions

virtual ~EventHandler ()=0
virtual bool processEvent (const Event &event, Session *session)=0

Detailed Description

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.


Constructor & Destructor Documentation

virtual blpapi::EventHandler::~EventHandler (  )  [pure virtual]

Member Function Documentation

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.


The documentation for this class was generated from the following file: