|
Quick Links: |
#include <bmqa_configurequeuestatus.h>
Public Member Functions | |
| BSLMF_NESTED_TRAIT_DECLARATION(ConfigureQueueStatus, bslma::UsesBslmaAllocator) explicit ConfigureQueueStatus(bslma | ConfigureQueueStatus (const bmqa::ConfigureQueueStatus &other, bslma::Allocator *allocator=0) |
| ConfigureQueueStatus (const QueueId &queueId, bmqt::ConfigureQueueResult::Enum result, const bsl::string &errorDescription, bslma::Allocator *allocator=0) | |
| ConfigureQueueStatus & | operator= (const ConfigureQueueStatus &rhs) |
| operator bool () const | |
| const QueueId & | queueId () const |
| bmqt::ConfigureQueueResult::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 a configure queue operation with the message queue broker.
See Component bmqa_configurequeuestatus
| BSLMF_NESTED_TRAIT_DECLARATION (ConfigureQueueStatus, bslma::UsesBslmaAllocator) explicit ConfigureQueueStatus(bslma bmqa::ConfigureQueueStatus::ConfigureQueueStatus | ( | const bmqa::ConfigureQueueStatus & | other, | |
| bslma::Allocator * | allocator = 0 | |||
| ) |
< Default constructor, use the optionally specified allocator. Create a new bmqa::ConfigureQueueStatus using the optionally specified allocator.
| bmqa::ConfigureQueueStatus::ConfigureQueueStatus | ( | const QueueId & | queueId, | |
| bmqt::ConfigureQueueResult::Enum | result, | |||
| const bsl::string & | errorDescription, | |||
| bslma::Allocator * | allocator = 0 | |||
| ) |
Create a new bmqa::ConfigureQueueStatus object having the specified queueId, result, and errorDescription, using the optionally specified allocator to supply memory.
| ConfigureQueueStatus& bmqa::ConfigureQueueStatus::operator= | ( | const ConfigureQueueStatus & | rhs | ) |
Assign to this ConfigureQueueStatus the same values as the one from the specified rhs.
| bmqa::ConfigureQueueStatus::operator bool | ( | ) | const |
Return true if this result indicates success, and false otherwise.
| const QueueId& bmqa::ConfigureQueueStatus::queueId | ( | ) | const |
Return the queueId associated to this operation result, if any.
| bmqt::ConfigureQueueResult::Enum bmqa::ConfigureQueueStatus::result | ( | ) | const |
Return the result code that indicates success or the cause of a failure.
| const bsl::string& bmqa::ConfigureQueueStatus::errorDescription | ( | ) | const |
Return a printable description of the error, if result indicates failure. Return an empty string otherwise.
| bsl::ostream& bmqa::ConfigureQueueStatus::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