Fast DDS  Version 3.1.0
Fast DDS
Loading...
Searching...
No Matches
ViewState.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__VIEWSTATE_HPP
20#define FASTDDS_DDS_SUBSCRIBER__VIEWSTATE_HPP
21
22#include <cstdint>
23
24namespace eprosima {
25namespace fastdds {
26namespace dds {
27
52enum ViewStateKind : uint16_t
53{
55 NEW_VIEW_STATE = 0x0001 << 0,
56
58 NOT_NEW_VIEW_STATE = 0x0001 << 1,
59};
60
62using ViewStateMask = uint16_t;
63
66
67} // namespace dds
68} // namespace fastdds
69} // namespace eprosima
70
71#endif // FASTDDS_DDS_SUBSCRIBER__VIEWSTATE_HPP
Definition DomainParticipant.hpp:45
uint16_t ViewStateMask
A bit-mask (list) of view states, i.e. ViewStateKind.
Definition ViewState.hpp:62
ViewStateKind
Indicates whether or not an instance is new.
Definition ViewState.hpp:53
@ NEW_VIEW_STATE
New instance.This latest generation of the instance has not previously been accessed.
Definition ViewState.hpp:55
@ NOT_NEW_VIEW_STATE
Not a new instance. This latest generation of the instance has previously been accessed.
Definition ViewState.hpp:58
constexpr ViewStateMask ANY_VIEW_STATE
Any view state.
Definition ViewState.hpp:65
eProsima namespace.