Quick Links:

bmqa | bmqpi | bmqt

Public Member Functions

bmqa::Event Class Reference

#include <bmqa_event.h>

List of all members.

Public Member Functions

 Event ()
 Event (const Event &other)
Eventoperator= (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

Detailed Description

A variant type encompassing all types of events

See Component bmqa_event


Constructor & Destructor Documentation

bmqa::Event::Event (  )  [explicit]

Default constructor

bmqa::Event::Event ( const Event other  ) 

Member Function Documentation

Event& bmqa::Event::operator= ( const Event rhs  ) 
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.


The documentation for this class was generated from the following file: