OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
SampleInfo.hpp
Go to the documentation of this file.
1 /* Copyright 2010, Object Management Group, Inc.
2 * Copyright 2010, PrismTech, Corp.
3 * Copyright 2010, Real-Time Innovations, Inc.
4 * All rights reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 #ifndef OMG_DDS_SUB_TSAMPLE_INFO_HPP_
19 #define OMG_DDS_SUB_TSAMPLE_INFO_HPP_
20 
21 #include <dds/core/Time.hpp>
22 #include <dds/core/Value.hpp>
25 #include <dds/sub/Rank.hpp>
27 
28 namespace dds
29 {
30 namespace sub
31 {
32 
33 class SampleInfo;
34 }
35 }
36 
62 {
63 
64 public:
71  SampleInfo();
74 public:
82  const dds::core::Time timestamp() const;
83 
94  const dds::sub::status::DataState state() const;
95 
107 
118  dds::sub::Rank rank() const;
119 
129  bool valid() const;
130 
137 
144 };
145 
146 #endif /* OMG_DDS_SUB_TSAMPLE_INFO_HPP_ */
dds::sub::Rank rank() const
Class to hold sample GenerationCount information and is part of dds::sub::SampleInfo.
Class to hold sample Rank information and is part of dds::sub::SampleInfo.
Definition: Rank.hpp:67
const dds::sub::status::DataState state() const
The SampleInfo contains information pertaining to the associated Data value.
Definition: SampleInfo.hpp:61
This class is the base for various value-type dds objects.
Definition: Value.hpp:28
Class to hold sample DataState information.
Definition: DataState.hpp:371
Class to hold the handle associated with in sample instance.
dds::core::InstanceHandle instance_handle() const
Definition: array.hpp:23
dds::core::InstanceHandle publication_handle() const
dds::sub::GenerationCount generation_count() const
const dds::core::Time timestamp() const