LCOV - code coverage report
Current view: top level - DCPS - GuardCondition.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 9 26 34.6 %
Date: 2023-04-30 01:32:43 Functions: 3 8 37.5 %

          Line data    Source code
       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             : 
      11             : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
      12             : 
      13             : namespace DDS {
      14             : 
      15          26 : CORBA::Boolean GuardCondition::get_trigger_value()
      16             : {
      17          26 :   return trigger_value_;
      18             : }
      19             : 
      20           4 : ReturnCode_t GuardCondition::set_trigger_value(CORBA::Boolean value)
      21             : {
      22           4 :   trigger_value_ = value;
      23           4 :   signal_all();
      24           4 :   return RETCODE_OK;
      25             : }
      26             : 
      27           0 : GuardCondition_ptr GuardCondition::_duplicate(GuardCondition_ptr obj)
      28             : {
      29           0 :   if (!CORBA::is_nil(obj)) obj->_add_ref();
      30             : 
      31           0 :   return obj;
      32             : }
      33             : 
      34           0 : GuardCondition_ptr GuardCondition::_narrow(CORBA::Object_ptr obj)
      35             : {
      36           0 :   GuardConditionInterf_var gci = GuardConditionInterf::_narrow(obj);
      37           0 :   const GuardCondition_ptr gc = dynamic_cast<GuardCondition_ptr>(gci.in());
      38           0 :   if (gc) {
      39           0 :     gci._retn();
      40           0 :     return gc;
      41             :   }
      42           0 :   return 0;
      43           0 : }
      44             : 
      45             : } // namespace DDS
      46             : 
      47             : OPENDDS_END_VERSIONED_NAMESPACE_DECL
      48             : 
      49             : DDS::GuardCondition_ptr
      50           0 : TAO::Objref_Traits<DDS::GuardCondition>::duplicate(DDS::GuardCondition_ptr p)
      51             : {
      52           0 :   return DDS::GuardCondition::_duplicate(p);
      53             : }
      54             : 
      55             : void
      56          17 : TAO::Objref_Traits<DDS::GuardCondition>::release(DDS::GuardCondition_ptr p)
      57             : {
      58          17 :   CORBA::release(p);
      59          17 : }
      60             : 
      61             : DDS::GuardCondition_ptr
      62           0 : TAO::Objref_Traits<DDS::GuardCondition>::nil()
      63             : {
      64           0 :   return static_cast<DDS::GuardCondition_ptr>(0);
      65             : }
      66             : 
      67             : CORBA::Boolean
      68           0 : TAO::Objref_Traits<DDS::GuardCondition>::marshal(
      69             :   const DDS::GuardCondition_ptr p,
      70             :   TAO_OutputCDR& cdr)
      71             : {
      72           0 :   return CORBA::Object::marshal(p, cdr);
      73             : }

Generated by: LCOV version 1.16