Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
SampleInfo.h
1// Copyright 2016 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
19#ifndef SAMPLEINFO_H_
20#define SAMPLEINFO_H_
21
22#include <cstdint>
23
24#include <fastdds/rtps/common/ChangeKind_t.hpp>
25#include <fastdds/rtps/common/InstanceHandle.h>
26#include <fastdds/rtps/common/SampleIdentity.h>
27#include <fastdds/rtps/common/Time_t.h>
28
29#include <fastrtps/fastrtps_dll.h>
30
31namespace eprosima {
32namespace fastrtps {
33
38class RTPS_DllAPI SampleInfo_t
39{
40public:
41
43 : sampleKind(rtps::ALIVE)
44 , ownershipStrength(0)
45 , sample_identity(rtps::SampleIdentity::unknown())
46 , related_sample_identity(rtps::SampleIdentity::unknown())
47 {
48 }
49
50 virtual ~SampleInfo_t()
51 {
52 }
53
55 rtps::ChangeKind_t sampleKind;
59 rtps::Time_t sourceTimestamp;
61 rtps::Time_t receptionTimestamp;
63 rtps::InstanceHandle_t iHandle;
64
65 rtps::SampleIdentity sample_identity;
66
67 rtps::SampleIdentity related_sample_identity;
68};
69
70} /* namespace fastrtps */
71} /* namespace eprosima */
72
73#endif /* SAMPLEINFO_H_ */
Class SampleInfo_t with information that is provided along a sample when reading data from a Subscrib...
Definition SampleInfo.h:39
rtps::SampleIdentity sample_identity
Definition SampleInfo.h:65
virtual ~SampleInfo_t()
Definition SampleInfo.h:50
rtps::Time_t sourceTimestamp
Source timestamp of the sample.
Definition SampleInfo.h:59
SampleInfo_t()
Definition SampleInfo.h:42
rtps::SampleIdentity related_sample_identity
Definition SampleInfo.h:67
uint32_t ownershipStrength
Ownership Strength of the writer of the sample (0 if the ownership kind is set to SHARED_OWNERSHIP_QO...
Definition SampleInfo.h:57
rtps::InstanceHandle_t iHandle
InstanceHandle of the data.
Definition SampleInfo.h:63
rtps::ChangeKind_t sampleKind
Sample kind.
Definition SampleInfo.h:55
rtps::Time_t receptionTimestamp
Reception timestamp of the sample.
Definition SampleInfo.h:61
eProsima namespace.
Definition LibrarySettingsAttributes.h:23