RMQ - RabbitMQ C++ Library
src
rmq
rmqt
rmqt_exchangetype.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_EXCHANGETYPE
17
#define INCLUDED_RMQT_EXCHANGETYPE
18
#include <bsl_string.h>
19
20
namespace
BloombergLP {
21
namespace
rmqt {
22
26
27
class
ExchangeType
{
28
public
:
30
explicit
ExchangeType
(
const
bsl::string&);
31
const
bsl::string& type()
const
;
32
static
ExchangeType
DIRECT;
33
static
ExchangeType
FANOUT;
34
static
ExchangeType
TOPIC;
35
static
ExchangeType
HEADERS;
36
37
private
:
38
const
bsl::string d_type;
39
};
40
41
bool
operator==(
const
ExchangeType
& lhs,
const
ExchangeType
& rhs);
42
bool
operator!=(
const
ExchangeType
& lhs,
const
ExchangeType
& rhs);
43
44
}
// namespace rmqt
45
}
// namespace BloombergLP
46
47
#endif
BloombergLP::rmqt::ExchangeType
AMQP Exchange types.
Definition:
rmqt_exchangetype.h:27
BloombergLP::rmqt::ExchangeType::ExchangeType
ExchangeType(const bsl::string &)
When using plugin-based exchange types.
Definition:
rmqt_exchangetype.cpp:20
Generated by
1.9.2