GuardCondition.cpp

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
00009 #include "GuardCondition.h"
00010 
00011 namespace DDS {
00012 
00013 CORBA::Boolean GuardCondition::get_trigger_value()
00014 {
00015   return trigger_value_;
00016 }
00017 
00018 ReturnCode_t GuardCondition::set_trigger_value(CORBA::Boolean value)
00019 {
00020   trigger_value_ = value;
00021   signal_all();
00022   return RETCODE_OK;
00023 }
00024 
00025 GuardCondition_ptr GuardCondition::_duplicate(GuardCondition_ptr obj)
00026 {
00027   if (!CORBA::is_nil(obj)) obj->_add_ref();
00028 
00029   return obj;
00030 }
00031 
00032 } // namespace DDS
00033 
00034 DDS::GuardCondition_ptr
00035 TAO::Objref_Traits<DDS::GuardCondition>::duplicate(DDS::GuardCondition_ptr p)
00036 {
00037   return DDS::GuardCondition::_duplicate(p);
00038 }
00039 
00040 void
00041 TAO::Objref_Traits<DDS::GuardCondition>::release(DDS::GuardCondition_ptr p)
00042 {
00043   CORBA::release(p);
00044 }
00045 
00046 DDS::GuardCondition_ptr
00047 TAO::Objref_Traits<DDS::GuardCondition>::nil()
00048 {
00049   return static_cast<DDS::GuardCondition_ptr>(0);
00050 }
00051 
00052 CORBA::Boolean
00053 TAO::Objref_Traits<DDS::GuardCondition>::marshal(
00054   const DDS::GuardCondition_ptr p,
00055   TAO_OutputCDR& cdr)
00056 {
00057   return CORBA::Object::marshal(p, cdr);
00058 }

Generated on Fri Feb 12 20:05:23 2016 for OpenDDS by  doxygen 1.4.7