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>
25 namespace rti {
namespace routing {
namespace adapter {
89 return rti::config::LibraryVersion();
100 #include <rti/routing/adapter/detail/AdapterForwarder.hpp>
167 #define RTI_ADAPTER_PLUGIN_CREATE_FUNCTION_DECL(ADAPTER_CLASS) \
168 extern "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) \
179 struct 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(\
202 #endif // RTI_ROUTING_ADAPTER_ADAPTER_HPP_