OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
DataStateImpl.hpp
Go to the documentation of this file.
1 /*
2  * Vortex OpenSplice
3  *
4  * This software and documentation are Copyright 2006 to 2021 ADLINK
5  * Technology Limited, its affiliated companies and licensors. All rights
6  * reserved.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 #ifndef OSPL_DDS_SUB_STATUS_DATASTATE_IMPL_HPP_
22 #define OSPL_DDS_SUB_STATUS_DATASTATE_IMPL_HPP_
23 
29 
30 /*
31  * OMG PSM class declaration
32  */
33 
34 // Implementation
35 
36 namespace dds
37 {
38 namespace sub
39 {
40 namespace status
41 {
42 
43 
45 {
46  return SampleState(0x0001 << 0u);
47 }
48 
50 {
51  return SampleState(0x0001 << 1u);
52 }
53 
55 {
56  return SampleState(0xffff);
57 }
58 
60 {
61  return ViewState(0x0001 << 0u);
62 }
63 
65 {
66  return ViewState(0x0001 << 1u);
67 }
68 
69 inline const ViewState ViewState::any()
70 {
71  return ViewState(0xffff);
72 }
73 
75 {
76  return InstanceState(0x0001 << 0u);
77 }
78 
80 {
81  return InstanceState(0x0001 << 1u);
82 }
83 
85 {
86  return InstanceState(0x0001 << 2u);
87 }
88 
90 {
91  return not_alive_disposed() | not_alive_no_writers();
92 }
93 
95 {
96  return InstanceState(0xffff);
97 }
98 
99 
100 } /* namespace status */
101 } /* namespace sub */
102 } /* namespace dds */
103 
104 // End of implementation
105 
106 #endif /* OSPL_DDS_SUB_STATUS_DATASTATE_IMPL_HPP_ */
static const InstanceState any()
static const InstanceState not_alive_disposed()
Class to hold sample ViewState information.
Definition: DataState.hpp:146
static const SampleState read()
static const ViewState not_new_view()
static const ViewState new_view()
Class to hold SampleState information.
Definition: DataState.hpp:57
static const ViewState any()
static const InstanceState not_alive_no_writers()
Definition: array.hpp:23
static const SampleState any()
static const InstanceState alive()
static const InstanceState not_alive_mask()
Class to hold sample InstanceState information.
Definition: DataState.hpp:246
static const SampleState not_read()