libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
bmqa_messageiterator.h File Reference

Provide a mechanism to iterate over the messages of a bmqa::MessageEvent. More...

#include <bmqa_message.h>
#include <ball_log.h>

Go to the source code of this file.

Classes

class  BloombergLP::bmqa::MessageIterator
 

Namespaces

 BloombergLP
 
 BloombergLP::bmqa
 

Detailed Description

bmqa::MessageIterator is an iterator-like mechanism providing read-only sequential access to messages contained into a bmqa::MessageEvent.

Usage

Typical usage of this iterator should follow the following pattern:

while (messageIterator.nextMessage()) {
const Message& message = messageIterator.message();
// Do something with message
}