libbmq
a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
|
#include <bmqa_openqueuestatus.h>
Public Types | |
typedef bsls::UnspecifiedBool< OpenQueueStatus >::BoolType | BoolType |
Public Member Functions | |
OpenQueueStatus (bslma::Allocator *allocator=0) | |
Default constructor, use the optionally specified allocator . More... | |
OpenQueueStatus (const bmqa::OpenQueueStatus &other, bslma::Allocator *allocator=0) | |
OpenQueueStatus (const QueueId &queueId, bmqt::OpenQueueResult::Enum result, const bsl::string &errorDescription, bslma::Allocator *allocator=0) | |
OpenQueueStatus & | operator= (const OpenQueueStatus &rhs) |
Assignment operator from the specified rhs . More... | |
operator BoolType () const | |
Return true if this result indicates success, and false otherwise. More... | |
const QueueId & | queueId () const |
Return the queueId associated to this operation result, if any. More... | |
bmqt::OpenQueueResult::Enum | result () const |
const bsl::string & | errorDescription () const |
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
A value-semantic type for an open queue operation with the message queue broker.
typedef bsls::UnspecifiedBool<OpenQueueStatus>::BoolType BloombergLP::bmqa::OpenQueueStatus::BoolType |
Use of an UnspecifiedBool
to prevent implicit conversions to integral values, and comparisons between different classes which have boolean operators.
|
inlineexplicit |
|
inline |
Create a new bmqa::OpenQueueStatus
using the optionally specified allocator
.
|
inline |
Create a new bmqa::OpenQueueStatus
object having the specified queueId
, result
, and errorDescription
, using the optionally specified allocator
to supply memory.
|
inline |
References errorDescription(), queueId(), and result().
|
inline |
References BloombergLP::bmqt::OpenQueueResult::e_SUCCESS.
|
inline |
Referenced by operator=(), and BloombergLP::bmqa::operator==().
|
inline |
Return the result code that indicates success or the cause of a failure.
Referenced by operator=(), and BloombergLP::bmqa::operator==().
|
inline |
Return a printable description of the error, if result
indicates failure. Return an empty string otherwise.
Referenced by operator=(), and BloombergLP::bmqa::operator==().
bsl::ostream& BloombergLP::bmqa::OpenQueueStatus::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<<().