libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
BloombergLP::bmqa::Event Class Reference

A variant type encompassing all types of events.

#include <bmqa_event.h>

Public Member Functions

 Event ()
 Default constructor. More...
 
SessionEvent sessionEvent () const
 
MessageEvent messageEvent () const
 
bool isSessionEvent () const
 Return true if the event is a session event. More...
 
bool isMessageEvent () const
 Return true if the event is a message event. More...
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Constructor & Destructor Documentation

◆ Event()

BloombergLP::bmqa::Event::Event ( )

Member Function Documentation

◆ sessionEvent()

SessionEvent BloombergLP::bmqa::Event::sessionEvent ( ) const

Return the SessionEvent variant. The behavior is undefined unless isSessionEvent returns true.

◆ messageEvent()

MessageEvent BloombergLP::bmqa::Event::messageEvent ( ) const

Return the MessageEvent variant. The behavior is undefined unless isMessageEvent returns true.

◆ isSessionEvent()

bool BloombergLP::bmqa::Event::isSessionEvent ( ) const

◆ isMessageEvent()

bool BloombergLP::bmqa::Event::isMessageEvent ( ) const

◆ print()

bsl::ostream& BloombergLP::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.

Referenced by BloombergLP::bmqa::operator<<().


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