OpenDDS  Snapshot(2023/04/28-20:55)
GuardCondition.cpp
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 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
9 #include "GuardCondition.h"
10 
12 
13 namespace DDS {
14 
16 {
17  return trigger_value_;
18 }
19 
21 {
23  signal_all();
24  return RETCODE_OK;
25 }
26 
28 {
29  if (!CORBA::is_nil(obj)) obj->_add_ref();
30 
31  return obj;
32 }
33 
35 {
36  GuardConditionInterf_var gci = GuardConditionInterf::_narrow(obj);
37  const GuardCondition_ptr gc = dynamic_cast<GuardCondition_ptr>(gci.in());
38  if (gc) {
39  gci._retn();
40  return gc;
41  }
42  return 0;
43 }
44 
45 } // namespace DDS
46 
48 
51 {
53 }
54 
55 void
57 {
58  CORBA::release(p);
59 }
60 
63 {
64  return static_cast<DDS::GuardCondition_ptr>(0);
65 }
66 
70  TAO_OutputCDR& cdr)
71 {
72  return CORBA::Object::marshal(p, cdr);
73 }
const LogLevel::Value value
Definition: debug.cpp:61
void release(T x)
ReturnCode_t set_trigger_value(CORBA::Boolean value)
virtual CORBA::Boolean marshal(TAO_OutputCDR &cdr)
Definition: Object.cpp:75
ACE_CDR::Boolean Boolean
The End User API.
static GuardCondition_ptr _duplicate(GuardCondition_ptr obj)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
const ReturnCode_t RETCODE_OK
CORBA::Boolean get_trigger_value()
static GuardCondition_ptr _narrow(CORBA::Object_ptr obj)
Boolean is_nil(T x)
OpenDDS::DCPS::Atomic< CORBA::Boolean > trigger_value_