Fast DDS  Version 3.6.1.0
Fast DDS
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 
27 namespace eprosima {
28 namespace fastdds {
29 namespace dds {
30 
37 {
38 public:
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 
152 private:
153 
155  EntityFactoryQosPolicy entity_factory_;
156 
158  rtps::ThreadSettings shm_watchdog_thread_;
159 
161  rtps::ThreadSettings file_watch_threads_;
162 
163 };
164 
165 FASTDDS_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
rtps::ThreadSettings & shm_watchdog_thread()
Getter for SHM watchdog ThreadSettings.
Definition: DomainParticipantFactoryQos.hpp:95
virtual FASTDDS_EXPORTED_API ~DomainParticipantFactoryQos()
Destructor.
Definition: DomainParticipantFactoryQos.hpp:50
const rtps::ThreadSettings & file_watch_threads() const
Getter for file watch related ThreadSettings.
Definition: DomainParticipantFactoryQos.hpp:136
rtps::ThreadSettings & file_watch_threads()
Getter for file watch related ThreadSettings.
Definition: DomainParticipantFactoryQos.hpp:126
void entity_factory(const EntityFactoryQosPolicy &entity_factory)
Setter for EntityFactoryQosPolicy.
Definition: DomainParticipantFactoryQos.hpp:84
const rtps::ThreadSettings & shm_watchdog_thread() const
Getter for SHM watchdog ThreadSettings.
Definition: DomainParticipantFactoryQos.hpp:105
const EntityFactoryQosPolicy & entity_factory() const
Getter for EntityFactoryQosPolicy.
Definition: DomainParticipantFactoryQos.hpp:66
bool operator==(const DomainParticipantFactoryQos &b) const
Definition: DomainParticipantFactoryQos.hpp:54
EntityFactoryQosPolicy & entity_factory()
Getter for EntityFactoryQosPolicy.
Definition: DomainParticipantFactoryQos.hpp:75
void shm_watchdog_thread(const rtps::ThreadSettings &value)
Setter for the SHM watchdog ThreadSettings.
Definition: DomainParticipantFactoryQos.hpp:115
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:189
Definition: DomainParticipant.hpp:46
FASTDDS_EXPORTED_API const DomainParticipantFactoryQos PARTICIPANT_FACTORY_QOS_DEFAULT
Struct ThreadSettings to specify various thread settings.
Definition: ThreadSettings.hpp:37