10#ifndef RTI_CDS_CLOUD_DISCOVERY_SERVICE_HPP_
11#define RTI_CDS_CLOUD_DISCOVERY_SERVICE_HPP_
13#include <dds/core/Reference.hpp>
14#include <rti/config/Logger.hpp>
16#include <rti/cds/Logger.hpp>
17#include <rti/cds/ServiceProperty.hpp>
18#include <rti/cds/detail/CloudDiscoveryServiceImpl.hpp>
20#include "routingservice/routingservice_service.h"
21#include "clouddiscoveryservice/clouddiscoveryservice_log.h"
23namespace rti {
namespace cds {
101class Service :
public dds::core::Reference<CloudDiscoveryServiceImpl> {
103 typedef dds::core::Reference<CloudDiscoveryServiceImpl> Base;
104 OMG_DDS_REF_TYPE_NOTYPENAME(
106 dds::core::Reference,
107 CloudDiscoveryServiceImpl);
117 : Base(new CloudDiscoveryServiceImpl(property))
119 this->delegate()->remember_reference(this->delegate());
122 Service(
const RTI_CDS_Property& property)
123 : Base(new CloudDiscoveryServiceImpl(property))
125 this->delegate()->remember_reference(this->delegate());
128 explicit Service(Base::DELEGATE_REF_T reference) : Base(reference)
130 if (this->delegate()) {
131 this->delegate()->remember_reference(this->delegate());
143 this->delegate()->start();
153 this->delegate()->stop();
163 return this->delegate()->is_started();
178 const std::string rtps_psk_secret_passphrase)
180 return this->delegate()->update_rtps_psk_secret_passphrase(
181 rtps_psk_secret_passphrase);
190 rti::cds::Logger::instance().
warn(
191 "Calling 'rti::cds::Service::finalize_globals()' is no "
192 "longer necessary and the function will be removed in future "
void warn(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:114
Configuration properties for a RTI Cloud Discovery Service object.
Definition: ServiceProperty.hpp:277
The RTI Cloud Discovery Service.
Definition: Service.hpp:101
void start()
Starts RTI Cloud Discovery Service.
Definition: Service.hpp:141
void stop()
Stops RTI Cloud Discovery Service.
Definition: Service.hpp:151
bool update_rtps_psk_secret_passphrase(const std::string rtps_psk_secret_passphrase)
Sets the dds.sec.crypto.rtps_psk_secret_passphrase property for the RTI Cloud Discovery Service insta...
Definition: Service.hpp:177
bool is_started()
Returns true if the RTI Cloud Discovery Service is started.
Definition: Service.hpp:161
static void finalize_globals()
Definition: Service.hpp:188
Service(const ServiceProperty &property)
Creates a RTI Cloud Discovery Service instance.
Definition: Service.hpp:116
Definition: CloudDiscoveryServiceImpl.hpp:20