11#ifndef RTI_ROUTING_ADAPTER_ADAPTER_HPP_
12#define RTI_ROUTING_ADAPTER_ADAPTER_HPP_
16#include "routingservice/routingservice_infrastructure.h"
17#include <rti/config/Version.hpp>
18#include <rti/routing/adapter/StreamReaderListener.hpp>
19#include <rti/routing/adapter/Connection.hpp>
25namespace rti {
namespace routing {
namespace adapter {
60 StreamReaderListener *input_stream_discovery_listener,
61 StreamReaderListener *output_stream_discovery_listener,
89 return rti::config::LibraryVersion();
100#include <rti/routing/adapter/detail/AdapterForwarder.hpp>
167#define RTI_ADAPTER_PLUGIN_CREATE_FUNCTION_DECL(ADAPTER_CLASS) \
168extern "C" RTI_USER_DLL_EXPORT struct RTI_RoutingServiceAdapterPluginExt * \
169 ADAPTER_CLASS ## _create_adapter_plugin(\
170 const struct RTI_RoutingServiceProperties *, \
171 RTI_RoutingServiceEnvironment *); \
178#define RTI_ADAPTER_PLUGIN_CREATE_FUNCTION_DEF(ADAPTER_CLASS) \
179struct RTI_RoutingServiceAdapterPluginExt * ADAPTER_CLASS ## _create_adapter_plugin( \
180 const struct RTI_RoutingServiceProperties * native_properties, \
181 RTI_RoutingServiceEnvironment *environment) \
183 PropertySet properties; \
184 rti::routing::PropertyAdapter::add_properties_from_native(\
186 native_properties); \
188 return rti::routing::adapter::detail::AdapterForwarder::create_plugin(new ADAPTER_CLASS(properties)); \
189 } catch (const std::exception& ex) {\
190 RTI_RoutingServiceEnvironment_set_error(\
The top-level plug-in class.
Definition: AdapterPlugin.hpp:34
virtual rti::config::LibraryVersion get_version() const
Definition: AdapterPlugin.hpp:87
virtual ~AdapterPlugin()
Virtual destructor.
Definition: AdapterPlugin.hpp:95
virtual Connection * create_connection(StreamReaderListener *input_stream_discovery_listener, StreamReaderListener *output_stream_discovery_listener, const PropertySet &properties)=0
Creates a Connection.
virtual void delete_connection(Connection *connection)=0
Deletes a Connection.
A Connection provides access to a data domain (such as a DDS domain or a JMS network provider).
Definition: Connection.hpp:35
std::map< std::string, std::string > PropertySet
The definition of a pluggable entity’s configuration properties.
Definition: PropertySet.hpp:60