// -*- C++ -*-
/**
 * Code generated by the The ACE ORB (TAO) IDL Compiler v4.0.0
 * TAO and the TAO IDL Compiler have been developed by:
 *       Center for Distributed Object Computing
 *       Washington University
 *       St. Louis, MO
 *       USA
 * and
 *       Distributed Object Computing Laboratory
 *       University of California at Irvine
 *       Irvine, CA
 *       USA
 * and
 *       Institute for Software Integrated Systems
 *       Vanderbilt University
 *       Nashville, TN
 *       USA
 *       https://www.isis.vanderbilt.edu/
 *
 * Information about TAO is available at:
 *     https://www.dre.vanderbilt.edu/~schmidt/TAO.html
 **/


TAO_BEGIN_VERSIONED_NAMESPACE_DECL


// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp:35

// *************************************************************
// Inline operations for union Monitor::UData
// *************************************************************
// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp:54

ACE_INLINE
void
Monitor::UData::_default ()
{
  this->_reset ();
  this->disc_ = static_cast <Monitor::DataType> (-1);
}

// Accessor to set the discriminant.
ACE_INLINE
void
Monitor::UData::_d (Monitor::DataType discval)
{
  this->disc_ = discval;
}

// Accessor to get the discriminant.
ACE_INLINE
Monitor::DataType
Monitor::UData::_d () const
{
  return this->disc_;
}
// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp:1056

/// Accessor to set the member.
ACE_INLINE
void
Monitor::UData::num (const Monitor::Numeric &val)
{
  // Set the discriminant value.
  this->_reset ();
  this->disc_ = Monitor::DATA_NUMERIC;
  ACE_NEW (
      this->u_.num_,
      Monitor::Numeric (val)
    );
}

// Readonly get method.
ACE_INLINE
const Monitor::Numeric &
Monitor::UData::num () const
{
  return *this->u_.num_;
}

// Read/write get method.
ACE_INLINE
Monitor::Numeric &
Monitor::UData::num ()
{
  return *this->u_.num_;
}
// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp:781

/// Accessor to set the member.
ACE_INLINE
void
Monitor::UData::list (const Monitor::NameList &val)
{
  // Set the discriminant value.
  this->_reset ();
  this->disc_ = Monitor::DATA_TEXT;
  ACE_NEW (
      this->u_.list_,
      Monitor::NameList (val)
    );
}

/// Readonly get method.
ACE_INLINE
const Monitor::NameList &
Monitor::UData::list () const
{
  return *this->u_.list_;
}

/// Read/write get method.
ACE_INLINE
Monitor::NameList &
Monitor::UData::list ()
{
  return *this->u_.list_;
}


TAO_END_VERSIONED_NAMESPACE_DECL


