| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
ReaderDataLifecycleQosPolicy.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__READERDATALIFECYCLEQOSPOLICY_HPP
20#define FASTDDS_DDS_CORE_POLICY__READERDATALIFECYCLEQOSPOLICY_HPP
21
22#include <fastdds/rtps/common/Time_t.hpp>
23
24#include <fastdds/dds/core/policy/QosPolicies.hpp>
25
26 using eprosima::fastdds::dds::Duration_t;
27
28 namespace eprosima {
29 namespace fastdds {
30 namespace dds {
31
35 class ReaderDataLifecycleQosPolicy
36{
37 public:
38
42 ReaderDataLifecycleQosPolicy()
43 : autopurge_no_writer_samples_delay(TIME_T_INFINITE_SECONDS, TIME_T_INFINITE_NANOSECONDS)
44 , autopurge_disposed_samples_delay(TIME_T_INFINITE_SECONDS, TIME_T_INFINITE_NANOSECONDS)
45 {
46 }
47
51 virtual FASTDDS_EXPORTED_API ~ReaderDataLifecycleQosPolicy()
52 {
53 }
54
55 bool operator ==(
56 const ReaderDataLifecycleQosPolicy& b) const
57 {
58 return (this->autopurge_no_writer_samples_delay == b.autopurge_no_writer_samples_delay) &&
59 (this->autopurge_disposed_samples_delay == b.autopurge_disposed_samples_delay);
60 }
61
62 inline void clear()
63 {
64 ReaderDataLifecycleQosPolicy reset = ReaderDataLifecycleQosPolicy();
65 std::swap(*this, reset);
66 }
67
68 public:
69
75 dds::Duration_t autopurge_no_writer_samples_delay;
81 dds::Duration_t autopurge_disposed_samples_delay;
82};
83
84} //namespace dds
85} //namespace fastdds
86} //namespace eprosima
87
88#endif // FASTDDS_DDS_CORE_POLICY__READERDATALIFECYCLEQOSPOLICY_HPP
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::ReaderDataLifecycleQosPolicy
ReaderDataLifecycleQosPolicy()
Constructor.
Definition ReaderDataLifecycleQosPolicy.hpp:42
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::operator==
bool operator==(const ReaderDataLifecycleQosPolicy &b) const
Definition ReaderDataLifecycleQosPolicy.hpp:55
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::clear
void clear()
Definition ReaderDataLifecycleQosPolicy.hpp:62
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::~ReaderDataLifecycleQosPolicy
virtual FASTDDS_EXPORTED_API ~ReaderDataLifecycleQosPolicy()
Destructor.
Definition ReaderDataLifecycleQosPolicy.hpp:51
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::autopurge_disposed_samples_delay
dds::Duration_t autopurge_disposed_samples_delay
Indicates the duration the DataReader must retain information regarding instances that have the insta...
Definition ReaderDataLifecycleQosPolicy.hpp:81
eprosima::fastdds::dds::ReaderDataLifecycleQosPolicy::autopurge_no_writer_samples_delay
dds::Duration_t autopurge_no_writer_samples_delay
Indicates the duration the DataReader must retain information regarding instances that have the insta...
Definition ReaderDataLifecycleQosPolicy.hpp:75
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::Duration_t
Time_t Duration_t
Definition Time_t.hpp:91
eprosima::fastdds
eprosima
eProsima namespace.