| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
WriterDataLifecycleQosPolicy.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
18
19#ifndef FASTDDS_DDS_CORE_POLICY__WRITERDATALIFECYCLEQOSPOLICY_HPP
20#define FASTDDS_DDS_CORE_POLICY__WRITERDATALIFECYCLEQOSPOLICY_HPP
21
22#include <utility>
23
24 namespace eprosima {
25 namespace fastdds {
26 namespace dds {
27
31 class WriterDataLifecycleQosPolicy
32{
33 public:
34
38 WriterDataLifecycleQosPolicy()
39 : autodispose_unregistered_instances(true)
40 {
41 }
42
46 virtual FASTDDS_EXPORTED_API ~WriterDataLifecycleQosPolicy()
47 {
48 }
49
50 inline void clear()
51 {
52 WriterDataLifecycleQosPolicy reset = WriterDataLifecycleQosPolicy();
53 std::swap(*this, reset);
54 }
55
56 bool operator ==(
57 const WriterDataLifecycleQosPolicy& b) const
58 {
59 return (this->autodispose_unregistered_instances == b.autodispose_unregistered_instances);
60 }
61
62 public:
63
70 bool autodispose_unregistered_instances;
71
72};
73
74} //namespace dds
75} //namespace fastdds
76} //namespace eprosima
77
78#endif // FASTDDS_DDS_CORE_POLICY__WRITERDATALIFECYCLEQOSPOLICY_HPP
eprosima::fastdds::dds::WriterDataLifecycleQosPolicy::~WriterDataLifecycleQosPolicy
virtual FASTDDS_EXPORTED_API ~WriterDataLifecycleQosPolicy()
Destructor.
Definition WriterDataLifecycleQosPolicy.hpp:46
eprosima::fastdds::dds::WriterDataLifecycleQosPolicy::operator==
bool operator==(const WriterDataLifecycleQosPolicy &b) const
Definition WriterDataLifecycleQosPolicy.hpp:56
eprosima::fastdds::dds::WriterDataLifecycleQosPolicy::WriterDataLifecycleQosPolicy
WriterDataLifecycleQosPolicy()
Constructor.
Definition WriterDataLifecycleQosPolicy.hpp:38
eprosima::fastdds::dds::WriterDataLifecycleQosPolicy::clear
void clear()
Definition WriterDataLifecycleQosPolicy.hpp:50
eprosima::fastdds::dds::WriterDataLifecycleQosPolicy::autodispose_unregistered_instances
bool autodispose_unregistered_instances
Controls whether a DataWriter will automatically dispose instances each time they are unregistered.
Definition WriterDataLifecycleQosPolicy.hpp:70
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.