65#ifdef VLINK_SUPPORT_DDST
70#include <shared_mutex>
103 explicit DdstConf(
const std::string& _topic, int32_t _domain = 0, int32_t _depth = 0,
const std::string& _qos =
"");
112 explicit DdstConf(
const std::string& _topic, int32_t _domain,
const PropertiesMap& _qos_ext);
120 [[nodiscard]]
bool operator==(
const DdstConf& conf)
const noexcept;
128 [[nodiscard]]
bool operator!=(
const DdstConf& conf)
const noexcept;
135 [[nodiscard]]
TransportType get_transport_type()
const override;
147 [[nodiscard]]
static std::vector<std::tuple<std::string, std::string>> get_discovered_topics(int32_t _domain);
158 static bool load_global_qos_file(
const std::string& filepath);
172 static void register_qos(
const std::string& name,
const Qos& qos);
175 static void register_qos_internal(
const std::string& name,
const Qos& qos);
177 static const Qos& find_qos(
const std::string& name);
179 friend class DdstFactory;
180 static std::map<std::string, std::function<
void*()>> type_support_map_;
181 static std::map<std::string, Qos> qos_map_;
182 static std::shared_mutex mtx_;
183 static constexpr const char* kRespSuffix{
"___resp"};
184#ifndef VLINK_ENABLE_C_INTERFACE
195inline DdstConf::DdstConf(
const std::string& _topic, int32_t _domain, int32_t _depth,
const std::string& _qos)
196 : topic(_topic), domain(_domain), depth(_depth), qos(_qos) {}
198inline DdstConf::DdstConf(
const std::string& _topic, int32_t _domain,
const PropertiesMap& _qos_ext)
199 : topic(_topic), domain(_domain), qos_ext(_qos_ext) {}
201inline bool DdstConf::operator==(
const DdstConf& conf)
const noexcept {
202 return topic == conf.topic && domain == conf.domain && depth == conf.depth && qos == conf.qos &&
203 qos_ext == conf.qos_ext;
206inline bool DdstConf::operator!=(
const DdstConf& conf)
const noexcept {
return !(*
this == conf); }
208inline TransportType DdstConf::get_transport_type()
const {
return TransportType::kDdst; }
Abstract transport configuration base class and associated helper macros.
#define VLINK_CONF_IMPL(classname)
Standard boilerplate for concrete Conf subclass declarations.
Definition conf.h:227
#define VLINK_DECLARE_GLOBAL_PROPERTY()
Declares per-transport global state: thread count and property storage.
Definition conf.h:292
#define VLINK_ALLOW_IMPL_TYPE(type)
Declares a static constexpr bitmask of supported ImplType values.
Definition conf.h:268
#define VLINK_EXPORT
Definition macros.h:85
TransportType
Enumeration of all supported transport backends.
Definition types.h:107
Quality of Service (QoS) policy aggregate for VLink publishers and subscribers.
Abstract base class for VLink transport configuration objects.
Definition conf.h:83