17#ifndef INCLUDED_BMQA_QUEUEID
18#define INCLUDED_BMQA_QUEUEID
37#include <bsl_iosfwd.h>
38#include <bsl_memory.h>
39#include <bsl_string.h>
40#include <bslma_allocator.h>
41#include <bslma_usesbslmaallocator.h>
42#include <bslmf_nestedtraitdeclaration.h>
43#include <bsls_types.h>
67 bsl::shared_ptr<bmqimp::Queue> d_impl_sp;
71 BSLMF_NESTED_TRAIT_DECLARATION(
QueueId, bslma::UsesBslmaAllocator)
78 explicit
QueueId(bslma::Allocator* allocator = 0);
88 bslma::Allocator* allocator = 0);
93 explicit
QueueId(bsls::Types::Int64 numeric,
94 bslma::Allocator* allocator = 0);
99 explicit
QueueId(
void* pointer, bslma::Allocator* allocator = 0);
106 explicit
QueueId(const bsl::shared_ptr<
void>& sharedPtr,
107 bslma::Allocator* allocator = 0);
126 const bmqt::Uri&
uri() const;
145 print(bsl::ostream& stream,
int level = 0,
int spacesPerLevel = 4) const;
152bsl::ostream& operator<<(bsl::ostream& stream, const
QueueId& rhs);
178inline bsl::ostream& bmqa::operator<<(bsl::ostream& stream,
181 return rhs.
print(stream, 0, -1);
178inline bsl::ostream& bmqa::operator<<(bsl::ostream& stream, {
…}
187 return rhs.d_impl_sp.get() == lhs.d_impl_sp.get();
193 return rhs.d_impl_sp.get() != lhs.d_impl_sp.get();
198 return rhs.d_impl_sp.get() < lhs.d_impl_sp.get();
Provide a value-semantic type usable as an efficient identifier.
Provide a value-semantic type for options related to a queue.
Provide value-semantic type and utilities for a BlazingMQ queue URI.
Value-semantic efficient identifier for a queue.
Definition bmqa_queueid.h:59
const bmqt::QueueOptions & options() const
Return the options used when opening this queue.
bsls::Types::Uint64 flags() const
Return the flags used when opening this queue.
const bmqt::CorrelationId & correlationId() const
friend bool operator<(const QueueId &lhs, const QueueId &rhs)
friend bool operator==(const QueueId &lhs, const QueueId &rhs)
friend bool operator!=(const QueueId &lhs, const QueueId &rhs)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
const bmqt::Uri & uri() const
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
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
bool operator<(const QueueId &lhs, const QueueId &rhs)
Definition bmqa_queueid.h:196
Definition bmqa_abstractsession.h:42