#include <blpapi_event.h>
Public Types | |
| enum | EventType { ADMIN = BLPAPI_EVENTTYPE_ADMIN, SESSION_STATUS = BLPAPI_EVENTTYPE_SESSION_STATUS, SUBSCRIPTION_STATUS = BLPAPI_EVENTTYPE_SUBSCRIPTION_STATUS, REQUEST_STATUS = BLPAPI_EVENTTYPE_REQUEST_STATUS, RESPONSE = BLPAPI_EVENTTYPE_RESPONSE, PARTIAL_RESPONSE = BLPAPI_EVENTTYPE_PARTIAL_RESPONSE, SUBSCRIPTION_DATA = BLPAPI_EVENTTYPE_SUBSCRIPTION_DATA, SERVICE_STATUS = BLPAPI_EVENTTYPE_SERVICE_STATUS, TIMEOUT = BLPAPI_EVENTTYPE_TIMEOUT, AUTHORIZATION_STATUS = BLPAPI_EVENTTYPE_AUTHORIZATION_STATUS, RESOLUTION_STATUS = BLPAPI_EVENTTYPE_RESOLUTION_STATUS, TOPIC_STATUS = BLPAPI_EVENTTYPE_TOPIC_STATUS, TOKEN_STATUS = BLPAPI_EVENTTYPE_TOKEN_STATUS, REQUEST = BLPAPI_EVENTTYPE_REQUEST, UNKNOWN = -1 } |
Public Member Functions | |
| Event () | |
| Event (blpapi_Event_t *handle) | |
| Event (const Event &original) | |
| ~Event () | |
| Event & | operator= (const Event &rhs) |
| EventType | eventType () const |
| bool | isValid () const |
| blpapi_Event_t * | impl () const |
A single event resulting from a subscription or a request.
Event objects are created by the API and passed to the application either through a registered EventHandler or EventQueue or returned from the Session::nextEvent() method. Event objects contain Message objects which can be accessed using a MessageIterator.
The Event object is a handle to an event. The event is the basic unit of work provided to applications. Each Event object consists of an EventType attribute and zero or more Message objects. The underlying event data including the messages is reference counted - as long as at least one Event object still exists then the underlying data will not be freed.
| blpapi::Event::Event | ( | ) |
| blpapi::Event::Event | ( | blpapi_Event_t * | handle | ) |
| blpapi::Event::Event | ( | const Event & | original | ) |
Copy constructor. This performs a shallow copy, increasing the reference count on the actual data underlying this handle.
| blpapi::Event::~Event | ( | ) |
Assignment operator. This performs a shallow assignment, increasing the reference count on the actual data underlying this handle.
| bool blpapi::Event::isValid | ( | ) | const |
Returns true if this Event is a valid event.
| blpapi_Event_t* blpapi::Event::impl | ( | ) | const |
1.7.1