// $Id: StatusCondition.cpp 90831 2010-06-24 11:51:08Z msmit $

#include "StatusCondition.h"
#include "Subscriber_T.h"

#include "dds4ccm/idl/dds4ccm_BaseC.h"

#include "dds4ccm/impl/Log_Macros.h"

namespace CIAO
{
  namespace DDS4CCM
  {
    CCM_DDS_StatusCondition_i::CCM_DDS_StatusCondition_i (
      DDSStatusCondition * sc) :
      impl_ (sc)
    {
    }

    CCM_DDS_StatusCondition_i::~CCM_DDS_StatusCondition_i (void)
    {
    }

    ::CORBA::Boolean
    CCM_DDS_StatusCondition_i::get_trigger_value (void)
    {
      return this->impl ()->get_trigger_value ();
    }

    ::DDS::StatusMask
    CCM_DDS_StatusCondition_i::get_enabled_statuses (void)
    {
      return this->impl ()->get_enabled_statuses ();
    }

    ::DDS::ReturnCode_t
    CCM_DDS_StatusCondition_i::set_enabled_statuses (
      ::DDS::StatusMask mask)
    {
      return this->impl ()->set_enabled_statuses (mask);
    }

    ::DDS::Entity_ptr
    CCM_DDS_StatusCondition_i::get_entity (void)
    {
      throw CORBA::NO_IMPLEMENT ();
    }

    DDSStatusCondition *
    CCM_DDS_StatusCondition_i::get_impl (void)
    {
      return this->impl_;
    }

    void
    CCM_DDS_StatusCondition_i::set_impl (DDSStatusCondition * sc)
    {
      this->impl_ = sc;
    }

    DDSStatusCondition *
    CCM_DDS_StatusCondition_i::impl (void)
    {
      if (!this->impl_)
        {
          throw ::CORBA::BAD_INV_ORDER ();
        }
      return this->impl_;
    }
  }
}

