Provide a mechanism to iterate over the messages of a MessageEvent.
More...
Detailed Description
- Outline
-
-
- Purpose:
- Provide a mechanism to iterate over the messages of a MessageEvent.
-
- Classes:
-
-
- Description:
bmqa::MessageIterator
is an iterator-like mechanism providing read-only sequential access to messages contained into a MessageEvent.
-
- Usage:
- Typical usage of this iterator should follow the following pattern:
while (messageIterator.nextMessage()) {
const Message& message = messageIterator.message();
}