RMQ - RabbitMQ C++ Library
rmqt_topologyupdate.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// rmqt_topologyupdate.h
17#ifndef INCLUDED_RMQT_TOPOLOGYUPDATE
18#define INCLUDED_RMQT_TOPOLOGYUPDATE
19
20#include <rmqt_queue.h>
21#include <rmqt_queuebinding.h>
22#include <rmqt_queuedelete.h>
23#include <rmqt_queueunbinding.h>
24
25#include <bdlb_variant.h>
26#include <bsl_memory.h>
27#include <bsl_ostream.h>
28#include <bsl_vector.h>
29
30namespace BloombergLP {
31namespace rmqt {
32
34 public:
36 typedef bdlb::Variant<bsl::shared_ptr<QueueBinding>,
37 bsl::shared_ptr<QueueUnbinding>,
38 bsl::shared_ptr<QueueDelete> >
39 SupportedUpdate;
40 typedef bsl::vector<SupportedUpdate> UpdatesVec;
41
42 UpdatesVec updates;
43
44 friend bsl::ostream& operator<<(bsl::ostream& os,
45 const TopologyUpdate& topology);
46}; // class TopologyUpdate
47
48bsl::ostream& operator<<(bsl::ostream& os, const TopologyUpdate& topology);
49
50} // namespace rmqt
51} // namespace BloombergLP
52#endif
Definition: rmqt_topologyupdate.h:33