Fast DDS  Version 3.6.1.0
Fast DDS
SampleState.hpp
1 // Copyright 2020 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 FASTDDS_DDS_SUBSCRIBER__SAMPLESTATE_HPP
20 #define FASTDDS_DDS_SUBSCRIBER__SAMPLESTATE_HPP
21 
22 #include <cstdint>
23 
24 namespace eprosima {
25 namespace fastdds {
26 namespace dds {
27 
41 enum SampleStateKind : uint16_t
42 {
44  READ_SAMPLE_STATE = 0x0001 << 0,
45 
47  NOT_READ_SAMPLE_STATE = 0x0001 << 1,
48 };
49 
51 using SampleStateMask = uint16_t;
52 
55 
56 } // namespace dds
57 } // namespace fastdds
58 } // namespace eprosima
59 
60 #endif // FASTDDS_DDS_SUBSCRIBER__SAMPLESTATE_HPP
Definition: DomainParticipant.hpp:46
uint16_t SampleStateMask
A bit-mask (list) of sample states, i.e. SampleStateKind.
Definition: SampleState.hpp:51
constexpr SampleStateMask ANY_SAMPLE_STATE
Any sample state.
Definition: SampleState.hpp:54
SampleStateKind
Indicates whether or not a sample has ever been read.
Definition: SampleState.hpp:42
@ NOT_READ_SAMPLE_STATE
Sample has not been read.
Definition: SampleState.hpp:47
@ READ_SAMPLE_STATE
Sample has been read.
Definition: SampleState.hpp:44