18#ifndef FASTDDS_RTPS_COMMON__WRITEPARAMS_HPP
19#define FASTDDS_RTPS_COMMON__WRITEPARAMS_HPP
21#include <fastdds/rtps/common/SampleIdentity.hpp>
22#include <fastdds/rtps/common/Time_t.hpp>
47 sample_identity_ = sample_id;
61 sample_identity_ = std::move(sample_id);
72 return sample_identity_;
82 return sample_identity_;
95 related_sample_identity_ = sample_id;
109 related_sample_identity_ = std::move(sample_id);
120 return related_sample_identity_;
130 return related_sample_identity_;
140 return source_timestamp_;
150 return source_timestamp_;
163 source_timestamp_ = timestamp;
177 source_timestamp_ = std::move(timestamp);
206 Time_t source_timestamp_{ -1, TIME_T_INFINITE_NANOSECONDS };
This class is used to specify a sample.
Definition SampleIdentity.hpp:34
Structure Time_t, used to describe times at RTPS protocol.
Definition Time_t.hpp:38
This class contains additional information of a CacheChange.
Definition WriteParams.hpp:34
SampleIdentity & sample_identity()
Set the value of the sample_identity member.
Definition WriteParams.hpp:80
SampleIdentity & related_sample_identity()
Set the value of the related_sample_identity member.
Definition WriteParams.hpp:128
WriteParams & source_timestamp(const Time_t ×tamp)
Set the source_timestamp member of this class.
Definition WriteParams.hpp:160
WriteParams & sample_identity(const SampleIdentity &sample_id)
Set the value of the sample_identity member.
Definition WriteParams.hpp:44
static WriteParams write_params_default() noexcept
Default value for methods receiving a WriteParams.
Definition WriteParams.hpp:194
Time_t & source_timestamp()
Set the value of the source_timestamp member.
Definition WriteParams.hpp:148
const SampleIdentity & related_sample_identity() const
Get the value of the related_sample_identity member.
Definition WriteParams.hpp:118
const SampleIdentity & sample_identity() const
Get the value of the sample_identity member.
Definition WriteParams.hpp:70
Time_t source_timestamp() const
Get the value of the source_timestamp member.
Definition WriteParams.hpp:138
WriteParams & related_sample_identity(SampleIdentity &&sample_id)
Set the related_sample_identity member of this class.
Definition WriteParams.hpp:106
WriteParams & sample_identity(SampleIdentity &&sample_id)
Set the value of the sample_identity member.
Definition WriteParams.hpp:58
WriteParams & related_sample_identity(const SampleIdentity &sample_id)
Set the value of the related_sample_identity member of this class.
Definition WriteParams.hpp:92
static WriteParams WRITE_PARAM_DEFAULT
Definition WriteParams.hpp:181
WriteParams & source_timestamp(Time_t &×tamp)
Set the source_timestamp member of this class.
Definition WriteParams.hpp:174