RTI Routing Service  Version 6.0.0
 All Data Structures Files Functions Typedefs Enumerations Enumerator Groups Pages
Utils.hpp
1 /*
2  * $Id$
3  *
4  * (c) Copyright, Real-Time Innovations, 2016-.
5  * All rights reserved.
6  * No duplications, whole or partial, manual or electronic, may be made
7  * without express written permission. Any such copies, or
8  * revisions thereof, must display this notice unaltered.
9  * This code contains trade secrets of Real-Time Innovations, Inc.
10  */
11 
12 #ifndef HPP_SERVICE_MONITORING_UTILS_HPP_
13 #define HPP_SERVICE_MONITORING_UTILS_HPP_
14 
15 #include "osapi/osapi_host.h"
16 #include "osapi/osapi_process.h"
17 #include "cdr/cdr_md5.h"
18 #include "routingservice/routingservice_monitoring.h"
19 
20 #include <rti/core/Guid.hpp>
21 #include <rti/service/ResourceIdentifier.hpp>
22 
23 namespace rti { namespace service { namespace monitoring {
24 
25 inline
26 void compute_object_id(
27  rti::core::Guid& out_guid,
28  const rti::core::Guid& application_id,
29  const rti::service::ResourceIdentifier& resource_id)
30 {
31  RTI_RoutingServiceMonitoringSupport_compute_resource_guid(
32  &out_guid.native(),
33  &application_id.native(),
34  &resource_id.native());
35 }
36 
37 inline
38 void compute_application_guid(
39  rti::core::Guid &out_guid,
40  const std::string& application_name)
41 {
42  RTI_RoutingServiceMonitoringSupport_compute_application_guid(
43  &out_guid.native(),
44  application_name.c_str());
45 }
46 
47 } } } // rti::service::monitoring
48 
49 #endif /* HPP_SERVICE_MONITORING_UTILS_HPP_ */

RTI Routing Service Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc