| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
DomainParticipantFactoryQos.hpp
1// Copyright 2019 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_DDS_DOMAIN_QOS__DOMAINPARTICIPANTFACTORYQOS_HPP
21#define FASTDDS_DDS_DOMAIN_QOS__DOMAINPARTICIPANTFACTORYQOS_HPP
22
23#include <fastdds/dds/core/policy/QosPolicies.hpp>
24#include <fastdds/rtps/attributes/ThreadSettings.hpp>
25#include <fastdds/fastdds_dll.hpp>
26
27 namespace eprosima {
28 namespace fastdds {
29 namespace dds {
30
36 class DomainParticipantFactoryQos
37{
38 public:
39
43 FASTDDS_EXPORTED_API DomainParticipantFactoryQos()
44 {
45 }
46
50 FASTDDS_EXPORTED_API virtual ~DomainParticipantFactoryQos()
51 {
52 }
53
54 bool operator ==(
55 const DomainParticipantFactoryQos& b) const
56 {
57 return (this->shm_watchdog_thread_ == b.shm_watchdog_thread()) &&
58 (this->file_watch_threads_ == b.file_watch_threads()) &&
59 (this->entity_factory_ == b.entity_factory());
60 }
61
66 const EntityFactoryQosPolicy& entity_factory() const
67 {
68 return entity_factory_;
69 }
70
75 EntityFactoryQosPolicy& entity_factory()
76 {
77 return entity_factory_;
78 }
79
84 void entity_factory(
85 const EntityFactoryQosPolicy& entity_factory)
86 {
87 entity_factory_ = entity_factory;
88 }
89
95 rtps::ThreadSettings& shm_watchdog_thread()
96 {
97 return shm_watchdog_thread_;
98 }
99
105 const rtps::ThreadSettings& shm_watchdog_thread() const
106 {
107 return shm_watchdog_thread_;
108 }
109
115 void shm_watchdog_thread(
116 const rtps::ThreadSettings& value)
117 {
118 shm_watchdog_thread_ = value;
119 }
120
126 rtps::ThreadSettings& file_watch_threads()
127 {
128 return file_watch_threads_;
129 }
130
136 const rtps::ThreadSettings& file_watch_threads() const
137 {
138 return file_watch_threads_;
139 }
140
146 void file_watch_threads(
147 const rtps::ThreadSettings& value)
148 {
149 file_watch_threads_ = value;
150 }
151
152 private:
153
155 EntityFactoryQosPolicy entity_factory_;
156
158 rtps::ThreadSettings shm_watchdog_thread_;
159
161 rtps::ThreadSettings file_watch_threads_;
162
163};
164
165FASTDDS_EXPORTED_API extern const DomainParticipantFactoryQos PARTICIPANT_FACTORY_QOS_DEFAULT;
166
167} // namespace dds
168} // namespace fastdds
169} // namespace eprosima
170
171#endif // FASTDDS_DDS_DOMAIN_QOS__DOMAINPARTICIPANTFACTORYQOS_HPP
eprosima::fastdds::dds::DomainParticipantFactoryQos::DomainParticipantFactoryQos
FASTDDS_EXPORTED_API DomainParticipantFactoryQos()
Constructor.
Definition DomainParticipantFactoryQos.hpp:43
eprosima::fastdds::dds::DomainParticipantFactoryQos::file_watch_threads
const rtps::ThreadSettings & file_watch_threads() const
Getter for file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:136
eprosima::fastdds::dds::DomainParticipantFactoryQos::entity_factory
const EntityFactoryQosPolicy & entity_factory() const
Getter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:66
eprosima::fastdds::dds::DomainParticipantFactoryQos::~DomainParticipantFactoryQos
virtual FASTDDS_EXPORTED_API ~DomainParticipantFactoryQos()
Destructor.
Definition DomainParticipantFactoryQos.hpp:50
eprosima::fastdds::dds::DomainParticipantFactoryQos::entity_factory
void entity_factory(const EntityFactoryQosPolicy &entity_factory)
Setter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:84
eprosima::fastdds::dds::DomainParticipantFactoryQos::entity_factory
EntityFactoryQosPolicy & entity_factory()
Getter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:75
eprosima::fastdds::dds::DomainParticipantFactoryQos::operator==
bool operator==(const DomainParticipantFactoryQos &b) const
Definition DomainParticipantFactoryQos.hpp:54
eprosima::fastdds::dds::DomainParticipantFactoryQos::shm_watchdog_thread
void shm_watchdog_thread(const rtps::ThreadSettings &value)
Setter for the SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:115
eprosima::fastdds::dds::DomainParticipantFactoryQos::file_watch_threads
rtps::ThreadSettings & file_watch_threads()
Getter for file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:126
eprosima::fastdds::dds::DomainParticipantFactoryQos::shm_watchdog_thread
rtps::ThreadSettings & shm_watchdog_thread()
Getter for SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:95
eprosima::fastdds::dds::DomainParticipantFactoryQos::shm_watchdog_thread
const rtps::ThreadSettings & shm_watchdog_thread() const
Getter for SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:105
eprosima::fastdds::dds::DomainParticipantFactoryQos::file_watch_threads
void file_watch_threads(const rtps::ThreadSettings &value)
Setter for the file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:146
eprosima::fastdds::dds::EntityFactoryQosPolicy
Controls the behavior of the entity when acting as a factory for other entities.
Definition QosPolicies.hpp:189
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::PARTICIPANT_FACTORY_QOS_DEFAULT
FASTDDS_EXPORTED_API const DomainParticipantFactoryQos PARTICIPANT_FACTORY_QOS_DEFAULT
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::rtps::ThreadSettings
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37