BLPAPI C++  3.21.0
EventHandler Class Referenceabstract

#include <blpapi_session.h>

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.

See Component blpapi_session

Constructor & Destructor Documentation

◆ ~EventHandler()

~EventHandler ( )
pure virtual

Member Function Documentation

◆ processEvent()

virtual bool processEvent ( const Event event,
Session session 
)
pure virtual

An implementation of processEvent should process the specified event which originates from the specified session. The return value is ignored.

If the application wishes to further process the messages in the event after returning from the processEvent() call, the application 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: