|
Quick Links: |
#include <bmqa_event.h>
Public Member Functions | |
| Event () | |
| Event (const Event &other) | |
| Event & | operator= (const Event &rhs) |
| SessionEvent | sessionEvent () const |
| MessageEvent | messageEvent () const |
| bool | isSessionEvent () const |
| bool | isMessageEvent () const |
| bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
A variant type encompassing all types of events
| bmqa::Event::Event | ( | ) | [explicit] |
Default constructor
| bmqa::Event::Event | ( | const Event & | other | ) |
| SessionEvent bmqa::Event::sessionEvent | ( | ) | const |
Return the SessionEvent variant. The behavior is undefined unless isSessionEvent returns true.
| MessageEvent bmqa::Event::messageEvent | ( | ) | const |
Return the MessageEvent variant. The behavior is undefined unless isMessageEvent returns true.
| bool bmqa::Event::isSessionEvent | ( | ) | const |
Return true if the event is a session event.
| bool bmqa::Event::isMessageEvent | ( | ) | const |
Return true if the event is a message event.
| bsl::ostream& bmqa::Event::print | ( | bsl::ostream & | stream, | |
| int | level = 0, |
|||
| int | spacesPerLevel = 4 | |||
| ) | const |
Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect.
1.7.1