#include <blpapi_event.h>
An iterator over the Message objects within an Event.
MessageIterator objects are used to process the individual Message objects in an Event received in an EventHandler, from EventQueue::nextEvent() or from Session::nextEvent().
This class is used to iterate over each message in an Event. Changes to the Event invalidate the iterator. The user must ensure that the Event this iterator is created for is not destroyed before the iterator.
See Component blpapi_event
◆ MessageIterator() [1/2]
◆ MessageIterator() [2/2]
Construct a forward iterator to iterate over the message in the specified event
object. The MessageIterator is created in a state where next() must be called to advance it to the first item.
◆ ~MessageIterator()
◆ isValid()
Returns true if this iterator is currently positioned on a valid Message. Returns false otherwise.
◆ message()
Message message |
( |
bool |
createClonable = false | ) |
const |
Returns the Message at the current position of this iterator. If the specified createClonable
flag is set, the internal handle of the message returned is added a reference and the message can outlive the call to next(). If the createClonable
flag is set to false, the use of message outside the scope of the iterator or after the next() call is undefined. The behavior is undefined if isValid() returns false.
◆ next()
◆ operator=()
The documentation for this class was generated from the following file: