| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
DomainParticipant.hpp
1// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
19
20#ifndef FASTDDS_STATISTICS_DDS_DOMAIN__DOMAINPARTICIPANT_HPP
21#define FASTDDS_STATISTICS_DDS_DOMAIN__DOMAINPARTICIPANT_HPP
22
23#include <string>
24
25#include <fastdds/dds/builtin/topic/ParticipantBuiltinTopicData.hpp>
26#include <fastdds/dds/builtin/topic/PublicationBuiltinTopicData.hpp>
27#include <fastdds/dds/builtin/topic/SubscriptionBuiltinTopicData.hpp>
28#include <fastdds/dds/core/ReturnCode.hpp>
29#include <fastdds/dds/domain/DomainParticipant.hpp>
30#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
31#include <fastdds/fastdds_dll.hpp>
32
33 namespace eprosima {
34 namespace fastdds {
35 namespace statistics {
36
37 class MonitorServiceStatusData;
38
39 namespace dds {
40
46 class DomainParticipant : public eprosima::fastdds::dds::DomainParticipant
47{
48 DomainParticipant() = delete;
49
50 public:
51
63 FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t enable_statistics_datawriter(
64 const std::string& topic_name,
65 const eprosima::fastdds::dds::DataWriterQos& dwqos);
66
78 FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t enable_statistics_datawriter_with_profile(
79 const std::string& profile_name,
80 const std::string& topic_name);
81
90 FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t disable_statistics_datawriter(
91 const std::string& topic_name);
92
99 FASTDDS_EXPORTED_API static DomainParticipant* narrow(
100 eprosima::fastdds::dds::DomainParticipant* domain_participant);
101
108 FASTDDS_EXPORTED_API static const DomainParticipant* narrow(
109 const eprosima::fastdds::dds::DomainParticipant* domain_participant);
110
120 FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t enable_monitor_service();
121
132 FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t disable_monitor_service();
133
143 FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(
144 fastdds::dds::ParticipantBuiltinTopicData& data,
145 const statistics::MonitorServiceStatusData& msg);
146
156 FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(
157 fastdds::dds::PublicationBuiltinTopicData& data,
158 const statistics::MonitorServiceStatusData& msg);
159
169 FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(
170 fastdds::dds::SubscriptionBuiltinTopicData& data,
171 const statistics::MonitorServiceStatusData& msg);
172
173};
174
175} // namespace dds
176} // namespace statistics
177} // namespace fastdds
178} // namespace eprosima
179
180#endif // FASTDDS_STATISTICS_DDS_DOMAIN__DOMAINPARTICIPANT_HPP
eprosima::fastdds::dds::DataWriterQos
Class DataWriterQos, containing all the possible Qos that can be set for a determined DataWriter.
Definition DataWriterQos.hpp:44
eprosima::fastdds::dds::DomainParticipant
Class DomainParticipant used to group Publishers and Subscribers into a single working unit.
Definition DomainParticipant.hpp:86
eprosima::fastdds::dds::DomainParticipant::DomainParticipant
friend class ::dds::domain::DomainParticipant
Definition DomainParticipant.hpp:1281
eprosima::fastdds::statistics::dds::DomainParticipant::enable_statistics_datawriter_with_profile
FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t enable_statistics_datawriter_with_profile(const std::string &profile_name, const std::string &topic_name)
This operation enables a Statistics DataWriter from a given profile.
eprosima::fastdds::statistics::dds::DomainParticipant::fill_discovery_data_from_cdr_message
FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(fastdds::dds::PublicationBuiltinTopicData &data, const statistics::MonitorServiceStatusData &msg)
fills in the PublicationBuiltinTopicData from a MonitorService Message
eprosima::fastdds::statistics::dds::DomainParticipant::disable_statistics_datawriter
FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t disable_statistics_datawriter(const std::string &topic_name)
This operation disables a Statistics DataWriter.
eprosima::fastdds::statistics::dds::DomainParticipant::fill_discovery_data_from_cdr_message
FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(fastdds::dds::SubscriptionBuiltinTopicData &data, const statistics::MonitorServiceStatusData &msg)
fills in the SubscriptionBuiltinTopicData from a MonitorService Message
eprosima::fastdds::statistics::dds::DomainParticipant::disable_monitor_service
FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t disable_monitor_service()
Disables the monitor service in this DomainParticipant.
eprosima::fastdds::statistics::dds::DomainParticipant::enable_statistics_datawriter
FASTDDS_EXPORTED_API fastdds::dds::ReturnCode_t enable_statistics_datawriter(const std::string &topic_name, const eprosima::fastdds::dds::DataWriterQos &dwqos)
This operation enables a Statistics DataWriter.
eprosima::fastdds::statistics::dds::DomainParticipant::narrow
static FASTDDS_EXPORTED_API const DomainParticipant * narrow(const eprosima::fastdds::dds::DomainParticipant *domain_participant)
This operation narrows the DDS DomainParticipant to the Statistics DomainParticipant.
eprosima::fastdds::statistics::dds::DomainParticipant::narrow
static FASTDDS_EXPORTED_API DomainParticipant * narrow(eprosima::fastdds::dds::DomainParticipant *domain_participant)
This operation narrows the DDS DomainParticipant to the Statistics DomainParticipant.
eprosima::fastdds::statistics::dds::DomainParticipant::enable_monitor_service
FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t enable_monitor_service()
Enables the monitor service in the DomainParticipant.
eprosima::fastdds::statistics::dds::DomainParticipant::fill_discovery_data_from_cdr_message
FASTDDS_EXPORTED_API eprosima::fastdds::dds::ReturnCode_t fill_discovery_data_from_cdr_message(fastdds::dds::ParticipantBuiltinTopicData &data, const statistics::MonitorServiceStatusData &msg)
fills in the ParticipantBuiltinTopicData from a MonitorService Message
dds
Definition DomainParticipant.hpp:46
eprosima::fastdds::dds::ParticipantBuiltinTopicData
rtps::ParticipantBuiltinTopicData ParticipantBuiltinTopicData
Definition ParticipantBuiltinTopicData.hpp:29
eprosima::fastdds::dds::SubscriptionBuiltinTopicData
rtps::SubscriptionBuiltinTopicData SubscriptionBuiltinTopicData
Definition SubscriptionBuiltinTopicData.hpp:28
eprosima::fastdds::dds::ReturnCode_t
int32_t ReturnCode_t
Definition DDSReturnCode.hpp:59
eprosima::fastdds::dds::PublicationBuiltinTopicData
rtps::PublicationBuiltinTopicData PublicationBuiltinTopicData
Definition PublicationBuiltinTopicData.hpp:28
eprosima::fastdds::statistics
Definition DomainParticipant.hpp:35
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::statistics::MonitorServiceStatusData
Definition monitorservice_types.idl:126