// This file is generated by omniidl (C++ backend) - omniORB_4_1. Do not edit.

#include "ControlTerminal.hh"

OMNI_USING_NAMESPACE(omni)

static const char* _0RL_dyn_library_version = omniORB_4_1_dyn;

static ::CORBA::TypeCode::_Tracker _0RL_tcTrack(__FILE__);

const CORBA::TypeCode_ptr _tc_StateChange = CORBA::TypeCode::PR_interface_tc("IDL:StateChange:1.0", "StateChange", &_0RL_tcTrack);

const CORBA::TypeCode_ptr _tc_StateChangeFromPA10 = CORBA::TypeCode::PR_interface_tc("IDL:StateChangeFromPA10:1.0", "StateChangeFromPA10", &_0RL_tcTrack);

const CORBA::TypeCode_ptr _tc_StateChangeFromRH = CORBA::TypeCode::PR_interface_tc("IDL:StateChangeFromRH:1.0", "StateChangeFromRH", &_0RL_tcTrack);

const CORBA::TypeCode_ptr _tc_StateChangeFromMeeting = CORBA::TypeCode::PR_interface_tc("IDL:StateChangeFromMeeting:1.0", "StateChangeFromMeeting", &_0RL_tcTrack);

const CORBA::TypeCode_ptr _tc_StateChangeFromReceptionist = CORBA::TypeCode::PR_interface_tc("IDL:StateChangeFromReceptionist:1.0", "StateChangeFromReceptionist", &_0RL_tcTrack);

const CORBA::TypeCode_ptr _tc_ServiceChange = CORBA::TypeCode::PR_interface_tc("IDL:ServiceChange:1.0", "ServiceChange", &_0RL_tcTrack);

static void _0RL_StateChange_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_StateChange_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(StateChange::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_StateChange_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, StateChange_ptr _o)
{
  StateChange_ptr _no = StateChange::_duplicate(_o);
  _a.PR_insert(_tc_StateChange,
               _0RL_StateChange_marshal_fn,
               _0RL_StateChange_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, StateChange_ptr* _op)
{
  _a.PR_insert(_tc_StateChange,
               _0RL_StateChange_marshal_fn,
               _0RL_StateChange_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = StateChange::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, StateChange_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_StateChange,
                    _0RL_StateChange_unmarshal_fn,
                    _0RL_StateChange_marshal_fn,
                    _0RL_StateChange_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (StateChange_ptr)_r->_ptrToObjRef(StateChange::_PD_repoId);
    else
      _o = StateChange::_nil();
    return 1;
  }
  return 0;
}

static void _0RL_StateChangeFromPA10_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_StateChangeFromPA10_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(StateChangeFromPA10::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_StateChangeFromPA10_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, StateChangeFromPA10_ptr _o)
{
  StateChangeFromPA10_ptr _no = StateChangeFromPA10::_duplicate(_o);
  _a.PR_insert(_tc_StateChangeFromPA10,
               _0RL_StateChangeFromPA10_marshal_fn,
               _0RL_StateChangeFromPA10_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, StateChangeFromPA10_ptr* _op)
{
  _a.PR_insert(_tc_StateChangeFromPA10,
               _0RL_StateChangeFromPA10_marshal_fn,
               _0RL_StateChangeFromPA10_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = StateChangeFromPA10::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, StateChangeFromPA10_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_StateChangeFromPA10,
                    _0RL_StateChangeFromPA10_unmarshal_fn,
                    _0RL_StateChangeFromPA10_marshal_fn,
                    _0RL_StateChangeFromPA10_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (StateChangeFromPA10_ptr)_r->_ptrToObjRef(StateChangeFromPA10::_PD_repoId);
    else
      _o = StateChangeFromPA10::_nil();
    return 1;
  }
  return 0;
}

static void _0RL_StateChangeFromRH_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_StateChangeFromRH_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(StateChangeFromRH::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_StateChangeFromRH_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, StateChangeFromRH_ptr _o)
{
  StateChangeFromRH_ptr _no = StateChangeFromRH::_duplicate(_o);
  _a.PR_insert(_tc_StateChangeFromRH,
               _0RL_StateChangeFromRH_marshal_fn,
               _0RL_StateChangeFromRH_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, StateChangeFromRH_ptr* _op)
{
  _a.PR_insert(_tc_StateChangeFromRH,
               _0RL_StateChangeFromRH_marshal_fn,
               _0RL_StateChangeFromRH_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = StateChangeFromRH::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, StateChangeFromRH_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_StateChangeFromRH,
                    _0RL_StateChangeFromRH_unmarshal_fn,
                    _0RL_StateChangeFromRH_marshal_fn,
                    _0RL_StateChangeFromRH_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (StateChangeFromRH_ptr)_r->_ptrToObjRef(StateChangeFromRH::_PD_repoId);
    else
      _o = StateChangeFromRH::_nil();
    return 1;
  }
  return 0;
}

static void _0RL_StateChangeFromMeeting_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_StateChangeFromMeeting_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(StateChangeFromMeeting::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_StateChangeFromMeeting_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, StateChangeFromMeeting_ptr _o)
{
  StateChangeFromMeeting_ptr _no = StateChangeFromMeeting::_duplicate(_o);
  _a.PR_insert(_tc_StateChangeFromMeeting,
               _0RL_StateChangeFromMeeting_marshal_fn,
               _0RL_StateChangeFromMeeting_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, StateChangeFromMeeting_ptr* _op)
{
  _a.PR_insert(_tc_StateChangeFromMeeting,
               _0RL_StateChangeFromMeeting_marshal_fn,
               _0RL_StateChangeFromMeeting_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = StateChangeFromMeeting::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, StateChangeFromMeeting_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_StateChangeFromMeeting,
                    _0RL_StateChangeFromMeeting_unmarshal_fn,
                    _0RL_StateChangeFromMeeting_marshal_fn,
                    _0RL_StateChangeFromMeeting_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (StateChangeFromMeeting_ptr)_r->_ptrToObjRef(StateChangeFromMeeting::_PD_repoId);
    else
      _o = StateChangeFromMeeting::_nil();
    return 1;
  }
  return 0;
}

static void _0RL_StateChangeFromReceptionist_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_StateChangeFromReceptionist_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(StateChangeFromReceptionist::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_StateChangeFromReceptionist_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, StateChangeFromReceptionist_ptr _o)
{
  StateChangeFromReceptionist_ptr _no = StateChangeFromReceptionist::_duplicate(_o);
  _a.PR_insert(_tc_StateChangeFromReceptionist,
               _0RL_StateChangeFromReceptionist_marshal_fn,
               _0RL_StateChangeFromReceptionist_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, StateChangeFromReceptionist_ptr* _op)
{
  _a.PR_insert(_tc_StateChangeFromReceptionist,
               _0RL_StateChangeFromReceptionist_marshal_fn,
               _0RL_StateChangeFromReceptionist_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = StateChangeFromReceptionist::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, StateChangeFromReceptionist_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_StateChangeFromReceptionist,
                    _0RL_StateChangeFromReceptionist_unmarshal_fn,
                    _0RL_StateChangeFromReceptionist_marshal_fn,
                    _0RL_StateChangeFromReceptionist_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (StateChangeFromReceptionist_ptr)_r->_ptrToObjRef(StateChangeFromReceptionist::_PD_repoId);
    else
      _o = StateChangeFromReceptionist::_nil();
    return 1;
  }
  return 0;
}

static void _0RL_ServiceChange_marshal_fn(cdrStream& _s, void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  omniObjRef::_marshal(_o, _s);
}
static void _0RL_ServiceChange_unmarshal_fn(cdrStream& _s, void*& _v)
{
  omniObjRef* _o = omniObjRef::_unMarshal(ServiceChange::_PD_repoId, _s);
  _v = _o;
}
static void _0RL_ServiceChange_destructor_fn(void* _v)
{
  omniObjRef* _o = (omniObjRef*)_v;
  if (_o)
    omni::releaseObjRef(_o);
}

void operator<<=(::CORBA::Any& _a, ServiceChange_ptr _o)
{
  ServiceChange_ptr _no = ServiceChange::_duplicate(_o);
  _a.PR_insert(_tc_ServiceChange,
               _0RL_ServiceChange_marshal_fn,
               _0RL_ServiceChange_destructor_fn,
               _no->_PR_getobj());
}
void operator<<=(::CORBA::Any& _a, ServiceChange_ptr* _op)
{
  _a.PR_insert(_tc_ServiceChange,
               _0RL_ServiceChange_marshal_fn,
               _0RL_ServiceChange_destructor_fn,
               (*_op)->_PR_getobj());
  *_op = ServiceChange::_nil();
}

::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, ServiceChange_ptr& _o)
{
  void* _v;
  if (_a.PR_extract(_tc_ServiceChange,
                    _0RL_ServiceChange_unmarshal_fn,
                    _0RL_ServiceChange_marshal_fn,
                    _0RL_ServiceChange_destructor_fn,
                    _v)) {
    omniObjRef* _r = (omniObjRef*)_v;
    if (_r)
      _o = (ServiceChange_ptr)_r->_ptrToObjRef(ServiceChange::_PD_repoId);
    else
      _o = ServiceChange::_nil();
    return 1;
  }
  return 0;
}

