OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
GuardCondition.hpp
Go to the documentation of this file.
1 #ifndef OMG_TDDS_CORE_COND_GUARD_CONDITION_HPP_
2 #define OMG_TDDS_CORE_COND_GUARD_CONDITION_HPP_
3 
4 /* Copyright 2010, Object Management Group, Inc.
5  * Copyright 2010, PrismTech, Corp.
6  * Copyright 2010, Real-Time Innovations, Inc.
7  * All rights reserved.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
23 
24 
25 namespace dds
26 {
27 namespace core
28 {
29 namespace cond
30 {
31 
32 class GuardCondition;
33 }
34 }
35 }
36 
68 {
69 public:
72 
73 public:
83 
98  template <typename FUN>
99  GuardCondition(FUN& functor);
100 
104  template <typename FUN>
105  GuardCondition(const FUN& functor);
106 
108  ~GuardCondition();
111 public:
112 
126  void trigger_value(bool value);
127 
131  bool trigger_value();
132 };
133 
134 #endif /* OMG_TDDS_CORE_GUARD_CONDITION_HPP_ */
void value(DDT &dd, uint32_t mid, const T &v)
#define OMG_DDS_EXPLICIT_REF_BASE(TYPE, FROM)
Definition: refmacros.hpp:113
Definition: array.hpp:23
A GuardCondition object is a specific Condition whose trigger_value is completely under the control o...
#define OMG_DDS_REF_TYPE_NO_DC(TYPE, BASE, DELEGATE)
Definition: refmacros.hpp:173
This class is the base class for all the conditions that may be attached to a dds::core::cond::WaitSe...
Definition: Condition.hpp:58