OpenDDS  Snapshot(2023/04/28-20:55)
GuardCondition.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_GUARDCONDITION_H
9 #define OPENDDS_DCPS_GUARDCONDITION_H
10 
11 #include "dds/DdsDcpsInfrastructureC.h"
12 
13 #if !defined (ACE_LACKS_PRAGMA_ONCE)
14 #pragma once
15 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 
17 #include "Atomic.h"
18 #include "ConditionImpl.h"
19 
21 
22 namespace DDS {
23 
27 
29  : public virtual DDS::GuardConditionInterf
30  , public virtual OpenDDS::DCPS::ConditionImpl {
31 public:
33  typedef GuardCondition_var _var_type;
34 
36  : trigger_value_(false)
37  {}
38 
39  virtual ~GuardCondition() {}
40 
41  CORBA::Boolean get_trigger_value();
42 
43  ReturnCode_t set_trigger_value(CORBA::Boolean value);
44 
45  static GuardCondition_ptr _duplicate(GuardCondition_ptr obj);
46  static GuardCondition_ptr _narrow(CORBA::Object_ptr obj);
47 
48 private:
50 };
51 
52 } // namespace DDS
53 
55 
57 
58 namespace TAO {
59 
60 template<>
61 struct OpenDDS_Dcps_Export Objref_Traits<DDS::GuardCondition> {
63  static void release(DDS::GuardCondition_ptr p);
64  static DDS::GuardCondition_ptr nil();
66  TAO_OutputCDR & cdr);
67 };
68 
69 } // namespace TAO
70 
72 
73 #endif
#define TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const LogLevel::Value value
Definition: debug.cpp:61
void release(T x)
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
T * _duplicate(T *st)
GuardCondition * _ptr_type
ACE_CDR::Boolean Boolean
TAO_Objref_Var_T< GuardCondition > GuardCondition_var
virtual ~GuardCondition()
GuardCondition_var _var_type
The End User API.
TAO_AnyTypeCode_Export bool marshal(TAO_OutputCDR &cdr, CORBA::TypeCode_ptr tc, CORBA::ULong offset)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define TAO_END_VERSIONED_NAMESPACE_DECL
OpenDDS::DCPS::Atomic< CORBA::Boolean > trigger_value_
GuardCondition * GuardCondition_ptr