18#ifndef FASTDDS_RTPS_COMMON__WRITEPARAMS_HPP
19#define FASTDDS_RTPS_COMMON__WRITEPARAMS_HPP
23#include <fastdds/rtps/common/SampleIdentity.hpp>
24#include <fastdds/rtps/common/Time_t.hpp>
64 sample_identity_ = sample_id;
78 sample_identity_ = std::move(sample_id);
89 return sample_identity_;
99 return sample_identity_;
112 related_sample_identity_ = sample_id;
126 related_sample_identity_ = std::move(sample_id);
137 return related_sample_identity_;
147 return related_sample_identity_;
157 return source_timestamp_;
167 return source_timestamp_;
180 source_timestamp_ = timestamp;
194 source_timestamp_ = std::move(timestamp);
205 return user_write_data_;
216 std::shared_ptr<UserWriteData> write_data)
218 user_write_data_ = write_data;
224 return has_more_replies_;
230 has_more_replies_ = more_replies;
254 class FASTDDS_EXPORTED_API UserWriteDataPtr :
public std::shared_ptr<UserWriteData>
259 std::shared_ptr<UserWriteData> ptr)
260 :
std::shared_ptr<UserWriteData>(ptr)
267 SampleIdentity sample_identity_;
269 SampleIdentity related_sample_identity_;
271 Time_t source_timestamp_{ -1, TIME_T_INFINITE_NANOSECONDS };
273 UserWriteDataPtr user_write_data_{
nullptr};
275 bool has_more_replies_ =
false;
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:36
WriteParams & user_write_data(std::shared_ptr< UserWriteData > write_data)
Set the user write data.
Definition WriteParams.hpp:215
SampleIdentity & sample_identity()
Set the value of the sample_identity member.
Definition WriteParams.hpp:97
SampleIdentity & related_sample_identity()
Set the value of the related_sample_identity member.
Definition WriteParams.hpp:145
WriteParams & source_timestamp(const Time_t ×tamp)
Set the source_timestamp member of this class.
Definition WriteParams.hpp:177
WriteParams & sample_identity(const SampleIdentity &sample_id)
Set the value of the sample_identity member.
Definition WriteParams.hpp:61
static WriteParams write_params_default() noexcept
Default value for methods receiving a WriteParams.
Definition WriteParams.hpp:247
WriteParams & has_more_replies(bool more_replies)
Definition WriteParams.hpp:227
Time_t & source_timestamp()
Set the value of the source_timestamp member.
Definition WriteParams.hpp:165
const SampleIdentity & related_sample_identity() const
Get the value of the related_sample_identity member.
Definition WriteParams.hpp:135
bool has_more_replies() const
Definition WriteParams.hpp:222
std::shared_ptr< UserWriteData > user_write_data() const
Retrieves the user write data.
Definition WriteParams.hpp:203
const SampleIdentity & sample_identity() const
Get the value of the sample_identity member.
Definition WriteParams.hpp:87
Time_t source_timestamp() const
Get the value of the source_timestamp member.
Definition WriteParams.hpp:155
WriteParams & related_sample_identity(SampleIdentity &&sample_id)
Set the related_sample_identity member of this class.
Definition WriteParams.hpp:123
WriteParams & sample_identity(SampleIdentity &&sample_id)
Set the value of the sample_identity member.
Definition WriteParams.hpp:75
WriteParams & related_sample_identity(const SampleIdentity &sample_id)
Set the value of the related_sample_identity member of this class.
Definition WriteParams.hpp:109
static WriteParams WRITE_PARAM_DEFAULT
Definition WriteParams.hpp:234
WriteParams & source_timestamp(Time_t &×tamp)
Set the source_timestamp member of this class.
Definition WriteParams.hpp:191
Contains the RTPS protocol implementation.
Definition EntityId_t.hpp:388
virtual ~UserWriteData()=default