libbmq ecc88f70b521c69eeac96cc22d896b0acda2f8bd
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

namespace  BloombergLP
 
namespace  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
}