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 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00012 
00013 namespace DDS {
00014 
00015 CORBA::Boolean GuardCondition::get_trigger_value()
00016 {
00017   return trigger_value_;
00018 }
00019 
00020 ReturnCode_t GuardCondition::set_trigger_value(CORBA::Boolean value)
00021 {
00022   trigger_value_ = value;
00023   signal_all();
00024   return RETCODE_OK;
00025 }
00026 
00027 GuardCondition_ptr GuardCondition::_duplicate(GuardCondition_ptr obj)
00028 {
00029   if (!CORBA::is_nil(obj)) obj->_add_ref();
00030 
00031   return obj;
00032 }
00033 
00034 } // namespace DDS
00035 
00036 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00037 
00038 DDS::GuardCondition_ptr
00039 TAO::Objref_Traits<DDS::GuardCondition>::duplicate(DDS::GuardCondition_ptr p)
00040 {
00041   return DDS::GuardCondition::_duplicate(p);
00042 }
00043 
00044 void
00045 TAO::Objref_Traits<DDS::GuardCondition>::release(DDS::GuardCondition_ptr p)
00046 {
00047   CORBA::release(p);
00048 }
00049 
00050 DDS::GuardCondition_ptr
00051 TAO::Objref_Traits<DDS::GuardCondition>::nil()
00052 {
00053   return static_cast<DDS::GuardCondition_ptr>(0);
00054 }
00055 
00056 CORBA::Boolean
00057 TAO::Objref_Traits<DDS::GuardCondition>::marshal(
00058   const DDS::GuardCondition_ptr p,
00059   TAO_OutputCDR& cdr)
00060 {
00061   return CORBA::Object::marshal(p, cdr);
00062 }
00063 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1