11 #ifndef RTI_ROUTING_DETAIL_UPDATABLE_ENTITY_FORWARDER_HPP_
12 #define RTI_ROUTING_DETAIL_UPDATABLE_ENTITY_FORWARDER_HPP_
14 #include <rti/core/Exception.hpp>
15 #include <rti/routing/UpdatableEntity.hpp>
16 #include <rti/routing/ServiceProperty.hpp>
17 #include <rti/routing/detail/ForwarderUtils.hpp>
19 namespace rti {
namespace routing {
namespace detail {
22 class UpdatableEntityForwarder {
26 UpdatableEntity *updatable_entity,
27 const struct RTI_RoutingServiceProperties *native_properties,
28 RTI_RoutingServiceEnvironment *environment)
34 rti::routing::PropertyAdapter::add_properties_from_native(
37 updatable_entity->update(properties);
38 }
catch (
const std::exception& ex) {
39 RTI_RoutingServiceEnvironment_set_error(
44 RTI_RoutingServiceEnvironment_set_error(
46 "unexpected exception");
55 #endif // RTI_ROUTING_DETAIL_UPDATABLE_ENTITY_FORWARDER_HPP_