OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
ReadCondition.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_SUB_TCOND_READ_CONDITION_HPP_
2 #define OMG_DDS_SUB_TCOND_READ_CONDITION_HPP_
3 
4 
5 /* Copyright 2010, Object Management Group, Inc.
6  * Copyright 2010, PrismTech, Corp.
7  * Copyright 2010, Real-Time Innovations, Inc.
8  * All rights reserved.
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 
24 #include <dds/sub/DataReader.hpp>
26 
27 namespace dds
28 {
29 namespace sub
30 {
31 namespace cond
32 {
33 
34 class ReadCondition;
35 }
36 }
37 }
38 
64 {
65 public:
68 
69 public:
95 
115  template <typename FUN>
116  ReadCondition(const dds::sub::AnyDataReader& dr, const dds::sub::status::DataState& status, FUN& functor);
117 
121  template <typename FUN>
122  ReadCondition(const dds::sub::AnyDataReader& dr, const dds::sub::status::DataState& status, const FUN& functor);
123 
125  ~ReadCondition();
128 public:
139 
148  const dds::sub::AnyDataReader& data_reader() const;
149 
150 };
151 
152 
153 #endif /* OMG_DDS_SUB_TCOND_READ_CONDITION_HPP_ */
#define OMG_DDS_IMPLICIT_REF_BASE(TYPE)
Definition: refmacros.hpp:70
Class to hold sample DataState information.
Definition: DataState.hpp:371
Typeless base class for the typed DataReader.
ReadCondition objects are conditions specifically dedicated to read operations and attached to one Da...
const dds::sub::AnyDataReader & data_reader() const
Definition: array.hpp:23
#define OMG_DDS_REF_TYPE_PROTECTED_DC(TYPE, BASE, DELEGATE)
Definition: refmacros.hpp:159
ReadCondition(const dds::sub::AnyDataReader &dr, const dds::sub::status::DataState &status)
This class is the base class for all the conditions that may be attached to a dds::core::cond::WaitSe...
Definition: Condition.hpp:58
const dds::sub::status::DataState state_filter() const