A component which defines events related operations. More...
Namespaces | |
namespace | blpapi |
A component which defines events related operations.
blpapi::Event | an event resulting from a subscription or request. |
blpapi::EventQueue | A construct to handle replies synchronously. |
blpapi::MessageIterator | An iterator over the Messages within an Event. |
Event
. One or more Event
s are generated as a result of a subscription or a request. Events contain Message objects which can be accessed using a MessageIterator
. This file also defines a EventQueue
for handling replies synchronously. EventQueue
is used with a generateToken
request. For any established session session
pass an EventQueue
object tokenEventQueue
when calling generateToken
. All Events in responses to generateToken
request will be returned in tokenEventQueue
. //...
EventQueue tokenEventQueue;
session->generateToken(CorrelationId(), &tokenEventQueue);
event
and parse over messages using iter
Event event = tokenEventQueue.nextEvent(); if (event.eventType() == Event::TOKEN_STATUS) { MessageIterator iter(event); while (iter.next()) { Message msg = iter.message(); //...