17#ifndef INCLUDED_BMQA_CLOSEQUEUESTATUS
18#define INCLUDED_BMQA_CLOSEQUEUESTATUS
45#include <bsl_iostream.h>
46#include <bsl_string.h>
47#include <bslma_allocator.h>
48#include <bslma_default.h>
49#include <bslma_usesbslmaallocator.h>
50#include <bslmf_nestedtraitdeclaration.h>
51#include <bsls_unspecifiedbool.h>
73 bsl::string d_errorDescription;
94 bslma::Allocator* allocator = 0);
100 bmqt::CloseQueueResult::Enum
result,
102 bslma::Allocator* allocator = 0);
120 bmqt::CloseQueueResult::Enum
result() const;
136 print(bsl::ostream& stream,
int level = 0,
int spacesPerLevel = 4) const;
165: d_queueId(allocator)
166, d_result(bmqt::CloseQueueResult::e_SUCCESS)
167, d_errorDescription(allocator)
173 bslma::Allocator* allocator)
174: d_queueId(other.d_queueId, allocator)
175, d_result(other.d_result)
176, d_errorDescription(other.d_errorDescription)
183 const bsl::string& errorDescription,
184 bslma::Allocator* allocator)
185: d_queueId(queueId, allocator)
187, d_errorDescription(errorDescription)
197 d_result = other.
result();
205 return bsls::UnspecifiedBool<CloseQueueStatus>::makeValue(
221 return d_errorDescription;
230 return rhs.
print(stream, 0, -1);
243 return !(lhs == rhs);
Provide a value-semantic efficient identifier for a queue.
Provide enums for various publicly exposed result code.
Definition bmqa_closequeuestatus.h:62
bsls::UnspecifiedBool< CloseQueueStatus >::BoolType BoolType
Definition bmqa_closequeuestatus.h:84
bmqt::CloseQueueResult::Enum result() const
Definition bmqa_closequeuestatus.h:214
const QueueId & queueId() const
Return the queueId associated to this operation result, if any.
Definition bmqa_closequeuestatus.h:209
CloseQueueStatus(bslma::Allocator *allocator=0)
Default constructor, use the optionally specified allocator.
Definition bmqa_closequeuestatus.h:164
const bsl::string & errorDescription() const
Definition bmqa_closequeuestatus.h:219
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
CloseQueueStatus & operator=(const CloseQueueStatus &rhs)
Definition bmqa_closequeuestatus.h:194
Value-semantic efficient identifier for a queue.
Definition bmqa_queueid.h:59
bool operator!=(const CloseQueueStatus &lhs, const CloseQueueStatus &rhs)
Definition bmqa_closequeuestatus.h:240
bool operator==(const CloseQueueStatus &lhs, const CloseQueueStatus &rhs)
Definition bmqa_closequeuestatus.h:233
bsl::ostream & operator<<(bsl::ostream &stream, const CloseQueueStatus &rhs)
Definition bmqa_closequeuestatus.h:227
Definition bmqa_abstractsession.h:42
Enum
Definition bmqt_resultcode.h:287
@ e_SUCCESS
Definition bmqt_resultcode.h:289