20#ifndef FASTDDS_DDS_SUBSCRIBER__SAMPLEINFO_HPP
21#define FASTDDS_DDS_SUBSCRIBER__SAMPLEINFO_HPP
23#include <fastdds/dds/subscriber/InstanceState.hpp>
24#include <fastdds/dds/subscriber/SampleState.hpp>
25#include <fastdds/dds/subscriber/ViewState.hpp>
26#include <fastdds/dds/topic/TypeSupport.hpp>
28#include <fastdds/rtps/common/SampleIdentity.hpp>
29#include <fastdds/rtps/common/Time_t.hpp>
30#include <fastdds/rtps/common/Types.hpp>
31#include <fastdds/dds/common/InstanceHandle.hpp>
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
Definition DomainParticipant.hpp:45
InstanceStateKind
Indicates if the samples are from an alive eprosima::fastdds::dds::DataWriter or not.
Definition InstanceState.hpp:64
SampleStateKind
Indicates whether or not a sample has ever been read.
Definition SampleState.hpp:42
ViewStateKind
Indicates whether or not an instance is new.
Definition ViewState.hpp:53
SampleInfo is the information that accompanies each sample that is ‘read’ or ‘taken.
Definition SampleInfo.hpp:41
rtps::SampleIdentity sample_identity
Sample Identity (Extension for RPC)
Definition SampleInfo.hpp:85
InstanceHandle_t publication_handle
identifies locally the DataWriter that modified the instance
Definition SampleInfo.hpp:79
int32_t generation_rank
the generation difference between the time the sample was received, and the time the most recent samp...
Definition SampleInfo.hpp:61
rtps::Time_t source_timestamp
time provided by the DataWriter when the sample was written
Definition SampleInfo.hpp:68
rtps::SampleIdentity related_sample_identity
Related Sample Identity (Extension for RPC)
Definition SampleInfo.hpp:88
SampleStateKind sample_state
indicates whether or not the corresponding data sample has already been read
Definition SampleInfo.hpp:43
int32_t absolute_generation_rank
the generation difference between the time the sample was received, and the time the most recent samp...
Definition SampleInfo.hpp:65
int32_t no_writers_generation_count
number of times the instance had become alive after it was disposed because no writers
Definition SampleInfo.hpp:55
int32_t sample_rank
number of samples related to the same instance that follow in the collection
Definition SampleInfo.hpp:58
ViewStateKind view_state
indicates whether the DataReader has already seen samples for the most-current generation of the rela...
Definition SampleInfo.hpp:46
InstanceStateKind instance_state
indicates whether the instance is currently in existence or, if it has been disposed,...
Definition SampleInfo.hpp:49
rtps::Time_t reception_timestamp
time provided by the DataReader when the sample was added to its history
Definition SampleInfo.hpp:71
bool valid_data
whether the DataSample contains data or is only used to communicate of a change in the instance
Definition SampleInfo.hpp:82
InstanceHandle_t instance_handle
identifies locally the corresponding instance
Definition SampleInfo.hpp:74
int32_t disposed_generation_count
number of times the instance had become alive after it was disposed
Definition SampleInfo.hpp:52
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition InstanceHandle.hpp:154