Fast DDS  Version 3.0.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
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
27namespace eprosima {
28namespace fastdds {
29namespace dds {
30
37{
38public:
39
43 FASTDDS_EXPORTED_API DomainParticipantFactoryQos()
44 {
45 }
46
50 FASTDDS_EXPORTED_API virtual ~DomainParticipantFactoryQos()
51 {
52 }
53
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
67 {
68 return entity_factory_;
69 }
70
76 {
77 return entity_factory_;
78 }
79
86 {
87 entity_factory_ = entity_factory;
88 }
89
96 {
97 return shm_watchdog_thread_;
98 }
99
106 {
107 return shm_watchdog_thread_;
108 }
109
116 const rtps::ThreadSettings& value)
117 {
118 shm_watchdog_thread_ = value;
119 }
120
127 {
128 return file_watch_threads_;
129 }
130
137 {
138 return file_watch_threads_;
139 }
140
147 const rtps::ThreadSettings& value)
148 {
149 file_watch_threads_ = value;
150 }
151
152private:
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
Class DomainParticipantFactoryQos, contains all the possible Qos that can be set for a determined par...
Definition DomainParticipantFactoryQos.hpp:37
FASTDDS_EXPORTED_API DomainParticipantFactoryQos()
Constructor.
Definition DomainParticipantFactoryQos.hpp:43
const rtps::ThreadSettings & file_watch_threads() const
Getter for file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:136
const EntityFactoryQosPolicy & entity_factory() const
Getter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:66
virtual FASTDDS_EXPORTED_API ~DomainParticipantFactoryQos()
Destructor.
Definition DomainParticipantFactoryQos.hpp:50
void entity_factory(const EntityFactoryQosPolicy &entity_factory)
Setter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:84
EntityFactoryQosPolicy & entity_factory()
Getter for EntityFactoryQosPolicy.
Definition DomainParticipantFactoryQos.hpp:75
bool operator==(const DomainParticipantFactoryQos &b) const
Definition DomainParticipantFactoryQos.hpp:54
void shm_watchdog_thread(const rtps::ThreadSettings &value)
Setter for the SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:115
rtps::ThreadSettings & file_watch_threads()
Getter for file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:126
rtps::ThreadSettings & shm_watchdog_thread()
Getter for SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:95
const rtps::ThreadSettings & shm_watchdog_thread() const
Getter for SHM watchdog ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:105
void file_watch_threads(const rtps::ThreadSettings &value)
Setter for the file watch related ThreadSettings.
Definition DomainParticipantFactoryQos.hpp:146
Controls the behavior of the entity when acting as a factory for other entities.
Definition QosPolicies.hpp:187
Definition DomainParticipant.hpp:45
FASTDDS_EXPORTED_API const DomainParticipantFactoryQos PARTICIPANT_FACTORY_QOS_DEFAULT
eProsima namespace.
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37