RMQ - RabbitMQ C++ Library
rmqt_queuedelete.h
1// Copyright 2020-2023 Bloomberg Finance L.P.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef INCLUDED_RMQT_QUEUEDELETE
17#define INCLUDED_RMQT_QUEUEDELETE
18
19#include <bsl_ostream.h>
20#include <bsl_string.h>
21
22namespace BloombergLP {
23namespace rmqt {
24
28
30 public:
31 QueueDelete(const bsl::string& queueName,
32 bool ifUnused,
33 bool ifEmpty,
34 bool noWait)
35 : d_name(queueName)
36 , d_ifUnused(ifUnused)
37 , d_ifEmpty(ifEmpty)
38 , d_noWait(noWait)
39 {
40 }
41
42 const bsl::string& name() const { return d_name; }
43 bool ifUnused() const { return d_ifUnused; }
44 bool ifEmpty() const { return d_ifEmpty; }
45 bool noWait() const { return d_noWait; }
46
47 friend bsl::ostream& operator<<(bsl::ostream& os,
48 const QueueDelete& queueDelete);
49
50 private:
51 bsl::string d_name;
52 bool d_ifUnused;
53 bool d_ifEmpty;
54 bool d_noWait;
55};
56
57bsl::ostream& operator<<(bsl::ostream& os, const QueueDelete& queueDelete);
58
59} // namespace rmqt
60} // namespace BloombergLP
61#endif
An AMQP queue delete.
Definition: rmqt_queuedelete.h:29