68#ifdef VLINK_SUPPORT_INTRA
91 std::string type{
"queue"};
101 explicit IntraConf(
const std::string& _address,
const std::string& _event =
"",
int _pipeline = 0,
102 const std::string& _type =
"queue");
110 [[nodiscard]]
bool operator==(
const IntraConf& conf)
const noexcept;
118 [[nodiscard]]
bool operator!=(
const IntraConf& conf)
const noexcept;
125 [[nodiscard]]
TransportType get_transport_type()
const override;
127#ifndef VLINK_ENABLE_C_INTERFACE
138inline IntraConf::IntraConf(
const std::string& _address,
const std::string& _event,
int _pipeline,
139 const std::string& _type)
140 : address(_address), event(_event), pipeline(_pipeline), type(_type) {}
142inline bool IntraConf::operator==(
const IntraConf& conf)
const noexcept {
143 return address == conf.address &&
event == conf.event && pipeline == conf.pipeline && type == conf.type;
146inline bool IntraConf::operator!=(
const IntraConf& conf)
const noexcept {
return !(*
this == conf); }
148inline TransportType IntraConf::get_transport_type()
const {
return TransportType::kIntra; }
Abstract transport configuration base class and associated helper macros.
#define VLINK_CONF_IMPL(classname)
Standard boilerplate for concrete Conf subclass declarations.
定义 conf.h:227
#define VLINK_DECLARE_GLOBAL_PROPERTY()
Declares per-transport global state: thread count and property storage.
定义 conf.h:292
#define VLINK_ALLOW_IMPL_TYPE(type)
Declares a static constexpr bitmask of supported ImplType values.
定义 conf.h:268
#define VLINK_EXPORT
定义 macros.h:85
TransportType
Enumeration of all supported transport backends.
定义 types.h:107
Abstract base class for VLink transport configuration objects.
定义 conf.h:83