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

#include "ControlTerminal.hh"
#include <omniORB4/IOP_S.h>
#include <omniORB4/IOP_C.h>
#include <omniORB4/callDescriptor.h>
#include <omniORB4/callHandle.h>
#include <omniORB4/objTracker.h>


OMNI_USING_NAMESPACE(omni)

static const char* _0RL_library_version = omniORB_4_1;



const ::CORBA::Long StateChange::status_id_PA10 _init_in_cldef_( = 1 );

const ::CORBA::Long StateChange::status_id_RH _init_in_cldef_( = 2 );

const ::CORBA::Long StateChange::status_id_Meeting _init_in_cldef_( = 3 );

const ::CORBA::Long StateChange::status_id_Receptionist _init_in_cldef_( = 4 );

StateChange_ptr StateChange_Helper::_nil() {
  return ::StateChange::_nil();
}

::CORBA::Boolean StateChange_Helper::is_nil(::StateChange_ptr p) {
  return ::CORBA::is_nil(p);

}

void StateChange_Helper::release(::StateChange_ptr p) {
  ::CORBA::release(p);
}

void StateChange_Helper::marshalObjRef(::StateChange_ptr obj, cdrStream& s) {
  ::StateChange::_marshalObjRef(obj, s);
}

StateChange_ptr StateChange_Helper::unmarshalObjRef(cdrStream& s) {
  return ::StateChange::_unmarshalObjRef(s);
}

void StateChange_Helper::duplicate(::StateChange_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

StateChange_ptr
StateChange::_duplicate(::StateChange_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

StateChange_ptr
StateChange::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


StateChange_ptr
StateChange::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

StateChange_ptr
StateChange::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_StateChange _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_StateChange* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_StateChange;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* StateChange::_PD_repoId = "IDL:StateChange:1.0";


_objref_StateChange::~_objref_StateChange() {
  
}


_objref_StateChange::_objref_StateChange(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::StateChange::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_StateChange::_ptrToObjRef(const char* id)
{
  if( id == ::StateChange::_PD_repoId )
    return (::StateChange_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::StateChange::_PD_repoId) )
    return (::StateChange_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Proxy call descriptor class. Mangled signature:
//  _clong_i_clong_i_clong_i_cstring
class _0RL_cd_60012c7929db1703_00000000
  : public omniCallDescriptor
{
public:
  inline _0RL_cd_60012c7929db1703_00000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
     omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
  {
    
  }
  
  void marshalArguments(cdrStream&);
  void unmarshalArguments(cdrStream&);

  void unmarshalReturnedValues(cdrStream&);
  void marshalReturnedValues(cdrStream&);
  
  
  ::CORBA::Long arg_0;
  ::CORBA::Long arg_1;
  ::CORBA::String_var arg_2_;
  const char* arg_2;
  ::CORBA::Long result;
};

void _0RL_cd_60012c7929db1703_00000000::marshalArguments(cdrStream& _n)
{
  arg_0 >>= _n;
  arg_1 >>= _n;
  _n.marshalString(arg_2,0);

}

void _0RL_cd_60012c7929db1703_00000000::unmarshalArguments(cdrStream& _n)
{
  (::CORBA::Long&)arg_0 <<= _n;
  (::CORBA::Long&)arg_1 <<= _n;
  arg_2_ = _n.unmarshalString(0);
  arg_2 = arg_2_.in();

}

void _0RL_cd_60012c7929db1703_00000000::marshalReturnedValues(cdrStream& _n)
{
  result >>= _n;

}

void _0RL_cd_60012c7929db1703_00000000::unmarshalReturnedValues(cdrStream& _n)
{
  (::CORBA::Long&)result <<= _n;

}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_10000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_00000000* tcd = (_0RL_cd_60012c7929db1703_00000000*)cd;
  _impl_StateChange* impl = (_impl_StateChange*) svnt->_ptrToInterface(StateChange::_PD_repoId);
  tcd->result = impl->SetState(tcd->arg_0, tcd->arg_1, tcd->arg_2);


}

::CORBA::Long _objref_StateChange::SetState(::CORBA::Long src_id, ::CORBA::Long state, const char* state_str)
{
  _0RL_cd_60012c7929db1703_00000000 _call_desc(_0RL_lcfn_60012c7929db1703_10000000, "SetState", 9);
  _call_desc.arg_0 = src_id;
  _call_desc.arg_1 = state;
  _call_desc.arg_2 = state_str;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_StateChange::~_pof_StateChange() {}


omniObjRef*
_pof_StateChange::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_StateChange(ior, id);
}


::CORBA::Boolean
_pof_StateChange::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::StateChange::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_StateChange _the_pof_StateChange;

_impl_StateChange::~_impl_StateChange() {}


::CORBA::Boolean
_impl_StateChange::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetState") ) {

    _0RL_cd_60012c7929db1703_00000000 _call_desc(_0RL_lcfn_60012c7929db1703_10000000, "SetState", 9, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_StateChange::_ptrToInterface(const char* id)
{
  if( id == ::StateChange::_PD_repoId )
    return (::_impl_StateChange*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::StateChange::_PD_repoId) )
    return (::_impl_StateChange*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_StateChange::_mostDerivedRepoId()
{
  return ::StateChange::_PD_repoId;
}

StateChangeFromPA10_ptr StateChangeFromPA10_Helper::_nil() {
  return ::StateChangeFromPA10::_nil();
}

::CORBA::Boolean StateChangeFromPA10_Helper::is_nil(::StateChangeFromPA10_ptr p) {
  return ::CORBA::is_nil(p);

}

void StateChangeFromPA10_Helper::release(::StateChangeFromPA10_ptr p) {
  ::CORBA::release(p);
}

void StateChangeFromPA10_Helper::marshalObjRef(::StateChangeFromPA10_ptr obj, cdrStream& s) {
  ::StateChangeFromPA10::_marshalObjRef(obj, s);
}

StateChangeFromPA10_ptr StateChangeFromPA10_Helper::unmarshalObjRef(cdrStream& s) {
  return ::StateChangeFromPA10::_unmarshalObjRef(s);
}

void StateChangeFromPA10_Helper::duplicate(::StateChangeFromPA10_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

StateChangeFromPA10_ptr
StateChangeFromPA10::_duplicate(::StateChangeFromPA10_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

StateChangeFromPA10_ptr
StateChangeFromPA10::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


StateChangeFromPA10_ptr
StateChangeFromPA10::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

StateChangeFromPA10_ptr
StateChangeFromPA10::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_StateChangeFromPA10 _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_StateChangeFromPA10* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_StateChangeFromPA10;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* StateChangeFromPA10::_PD_repoId = "IDL:StateChangeFromPA10:1.0";


_objref_StateChangeFromPA10::~_objref_StateChangeFromPA10() {
  
}


_objref_StateChangeFromPA10::_objref_StateChangeFromPA10(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::StateChangeFromPA10::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_StateChangeFromPA10::_ptrToObjRef(const char* id)
{
  if( id == ::StateChangeFromPA10::_PD_repoId )
    return (::StateChangeFromPA10_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::StateChangeFromPA10::_PD_repoId) )
    return (::StateChangeFromPA10_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Proxy call descriptor class. Mangled signature:
//  _clong_i_clong_i_cstring
class _0RL_cd_60012c7929db1703_20000000
  : public omniCallDescriptor
{
public:
  inline _0RL_cd_60012c7929db1703_20000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
     omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
  {
    
  }
  
  void marshalArguments(cdrStream&);
  void unmarshalArguments(cdrStream&);

  void unmarshalReturnedValues(cdrStream&);
  void marshalReturnedValues(cdrStream&);
  
  
  ::CORBA::Long arg_0;
  ::CORBA::String_var arg_1_;
  const char* arg_1;
  ::CORBA::Long result;
};

void _0RL_cd_60012c7929db1703_20000000::marshalArguments(cdrStream& _n)
{
  arg_0 >>= _n;
  _n.marshalString(arg_1,0);

}

void _0RL_cd_60012c7929db1703_20000000::unmarshalArguments(cdrStream& _n)
{
  (::CORBA::Long&)arg_0 <<= _n;
  arg_1_ = _n.unmarshalString(0);
  arg_1 = arg_1_.in();

}

void _0RL_cd_60012c7929db1703_20000000::marshalReturnedValues(cdrStream& _n)
{
  result >>= _n;

}

void _0RL_cd_60012c7929db1703_20000000::unmarshalReturnedValues(cdrStream& _n)
{
  (::CORBA::Long&)result <<= _n;

}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_30000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_20000000* tcd = (_0RL_cd_60012c7929db1703_20000000*)cd;
  _impl_StateChangeFromPA10* impl = (_impl_StateChangeFromPA10*) svnt->_ptrToInterface(StateChangeFromPA10::_PD_repoId);
  tcd->result = impl->SetState(tcd->arg_0, tcd->arg_1);


}

::CORBA::Long _objref_StateChangeFromPA10::SetState(::CORBA::Long state, const char* state_str)
{
  _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_30000000, "SetState", 9);
  _call_desc.arg_0 = state;
  _call_desc.arg_1 = state_str;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_StateChangeFromPA10::~_pof_StateChangeFromPA10() {}


omniObjRef*
_pof_StateChangeFromPA10::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_StateChangeFromPA10(ior, id);
}


::CORBA::Boolean
_pof_StateChangeFromPA10::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::StateChangeFromPA10::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_StateChangeFromPA10 _the_pof_StateChangeFromPA10;

_impl_StateChangeFromPA10::~_impl_StateChangeFromPA10() {}


::CORBA::Boolean
_impl_StateChangeFromPA10::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetState") ) {

    _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_30000000, "SetState", 9, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_StateChangeFromPA10::_ptrToInterface(const char* id)
{
  if( id == ::StateChangeFromPA10::_PD_repoId )
    return (::_impl_StateChangeFromPA10*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::StateChangeFromPA10::_PD_repoId) )
    return (::_impl_StateChangeFromPA10*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_StateChangeFromPA10::_mostDerivedRepoId()
{
  return ::StateChangeFromPA10::_PD_repoId;
}

StateChangeFromRH_ptr StateChangeFromRH_Helper::_nil() {
  return ::StateChangeFromRH::_nil();
}

::CORBA::Boolean StateChangeFromRH_Helper::is_nil(::StateChangeFromRH_ptr p) {
  return ::CORBA::is_nil(p);

}

void StateChangeFromRH_Helper::release(::StateChangeFromRH_ptr p) {
  ::CORBA::release(p);
}

void StateChangeFromRH_Helper::marshalObjRef(::StateChangeFromRH_ptr obj, cdrStream& s) {
  ::StateChangeFromRH::_marshalObjRef(obj, s);
}

StateChangeFromRH_ptr StateChangeFromRH_Helper::unmarshalObjRef(cdrStream& s) {
  return ::StateChangeFromRH::_unmarshalObjRef(s);
}

void StateChangeFromRH_Helper::duplicate(::StateChangeFromRH_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

StateChangeFromRH_ptr
StateChangeFromRH::_duplicate(::StateChangeFromRH_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

StateChangeFromRH_ptr
StateChangeFromRH::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


StateChangeFromRH_ptr
StateChangeFromRH::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

StateChangeFromRH_ptr
StateChangeFromRH::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_StateChangeFromRH _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_StateChangeFromRH* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_StateChangeFromRH;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* StateChangeFromRH::_PD_repoId = "IDL:StateChangeFromRH:1.0";


_objref_StateChangeFromRH::~_objref_StateChangeFromRH() {
  
}


_objref_StateChangeFromRH::_objref_StateChangeFromRH(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::StateChangeFromRH::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_StateChangeFromRH::_ptrToObjRef(const char* id)
{
  if( id == ::StateChangeFromRH::_PD_repoId )
    return (::StateChangeFromRH_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::StateChangeFromRH::_PD_repoId) )
    return (::StateChangeFromRH_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_40000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_20000000* tcd = (_0RL_cd_60012c7929db1703_20000000*)cd;
  _impl_StateChangeFromRH* impl = (_impl_StateChangeFromRH*) svnt->_ptrToInterface(StateChangeFromRH::_PD_repoId);
  tcd->result = impl->SetState(tcd->arg_0, tcd->arg_1);


}

::CORBA::Long _objref_StateChangeFromRH::SetState(::CORBA::Long state, const char* state_str)
{
  _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_40000000, "SetState", 9);
  _call_desc.arg_0 = state;
  _call_desc.arg_1 = state_str;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_StateChangeFromRH::~_pof_StateChangeFromRH() {}


omniObjRef*
_pof_StateChangeFromRH::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_StateChangeFromRH(ior, id);
}


::CORBA::Boolean
_pof_StateChangeFromRH::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::StateChangeFromRH::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_StateChangeFromRH _the_pof_StateChangeFromRH;

_impl_StateChangeFromRH::~_impl_StateChangeFromRH() {}


::CORBA::Boolean
_impl_StateChangeFromRH::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetState") ) {

    _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_40000000, "SetState", 9, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_StateChangeFromRH::_ptrToInterface(const char* id)
{
  if( id == ::StateChangeFromRH::_PD_repoId )
    return (::_impl_StateChangeFromRH*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::StateChangeFromRH::_PD_repoId) )
    return (::_impl_StateChangeFromRH*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_StateChangeFromRH::_mostDerivedRepoId()
{
  return ::StateChangeFromRH::_PD_repoId;
}

StateChangeFromMeeting_ptr StateChangeFromMeeting_Helper::_nil() {
  return ::StateChangeFromMeeting::_nil();
}

::CORBA::Boolean StateChangeFromMeeting_Helper::is_nil(::StateChangeFromMeeting_ptr p) {
  return ::CORBA::is_nil(p);

}

void StateChangeFromMeeting_Helper::release(::StateChangeFromMeeting_ptr p) {
  ::CORBA::release(p);
}

void StateChangeFromMeeting_Helper::marshalObjRef(::StateChangeFromMeeting_ptr obj, cdrStream& s) {
  ::StateChangeFromMeeting::_marshalObjRef(obj, s);
}

StateChangeFromMeeting_ptr StateChangeFromMeeting_Helper::unmarshalObjRef(cdrStream& s) {
  return ::StateChangeFromMeeting::_unmarshalObjRef(s);
}

void StateChangeFromMeeting_Helper::duplicate(::StateChangeFromMeeting_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

StateChangeFromMeeting_ptr
StateChangeFromMeeting::_duplicate(::StateChangeFromMeeting_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

StateChangeFromMeeting_ptr
StateChangeFromMeeting::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


StateChangeFromMeeting_ptr
StateChangeFromMeeting::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

StateChangeFromMeeting_ptr
StateChangeFromMeeting::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_StateChangeFromMeeting _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_StateChangeFromMeeting* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_StateChangeFromMeeting;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* StateChangeFromMeeting::_PD_repoId = "IDL:StateChangeFromMeeting:1.0";


_objref_StateChangeFromMeeting::~_objref_StateChangeFromMeeting() {
  
}


_objref_StateChangeFromMeeting::_objref_StateChangeFromMeeting(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::StateChangeFromMeeting::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_StateChangeFromMeeting::_ptrToObjRef(const char* id)
{
  if( id == ::StateChangeFromMeeting::_PD_repoId )
    return (::StateChangeFromMeeting_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::StateChangeFromMeeting::_PD_repoId) )
    return (::StateChangeFromMeeting_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_50000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_20000000* tcd = (_0RL_cd_60012c7929db1703_20000000*)cd;
  _impl_StateChangeFromMeeting* impl = (_impl_StateChangeFromMeeting*) svnt->_ptrToInterface(StateChangeFromMeeting::_PD_repoId);
  tcd->result = impl->SetState(tcd->arg_0, tcd->arg_1);


}

::CORBA::Long _objref_StateChangeFromMeeting::SetState(::CORBA::Long state, const char* state_str)
{
  _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_50000000, "SetState", 9);
  _call_desc.arg_0 = state;
  _call_desc.arg_1 = state_str;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_StateChangeFromMeeting::~_pof_StateChangeFromMeeting() {}


omniObjRef*
_pof_StateChangeFromMeeting::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_StateChangeFromMeeting(ior, id);
}


::CORBA::Boolean
_pof_StateChangeFromMeeting::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::StateChangeFromMeeting::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_StateChangeFromMeeting _the_pof_StateChangeFromMeeting;

_impl_StateChangeFromMeeting::~_impl_StateChangeFromMeeting() {}


::CORBA::Boolean
_impl_StateChangeFromMeeting::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetState") ) {

    _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_50000000, "SetState", 9, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_StateChangeFromMeeting::_ptrToInterface(const char* id)
{
  if( id == ::StateChangeFromMeeting::_PD_repoId )
    return (::_impl_StateChangeFromMeeting*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::StateChangeFromMeeting::_PD_repoId) )
    return (::_impl_StateChangeFromMeeting*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_StateChangeFromMeeting::_mostDerivedRepoId()
{
  return ::StateChangeFromMeeting::_PD_repoId;
}

StateChangeFromReceptionist_ptr StateChangeFromReceptionist_Helper::_nil() {
  return ::StateChangeFromReceptionist::_nil();
}

::CORBA::Boolean StateChangeFromReceptionist_Helper::is_nil(::StateChangeFromReceptionist_ptr p) {
  return ::CORBA::is_nil(p);

}

void StateChangeFromReceptionist_Helper::release(::StateChangeFromReceptionist_ptr p) {
  ::CORBA::release(p);
}

void StateChangeFromReceptionist_Helper::marshalObjRef(::StateChangeFromReceptionist_ptr obj, cdrStream& s) {
  ::StateChangeFromReceptionist::_marshalObjRef(obj, s);
}

StateChangeFromReceptionist_ptr StateChangeFromReceptionist_Helper::unmarshalObjRef(cdrStream& s) {
  return ::StateChangeFromReceptionist::_unmarshalObjRef(s);
}

void StateChangeFromReceptionist_Helper::duplicate(::StateChangeFromReceptionist_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

StateChangeFromReceptionist_ptr
StateChangeFromReceptionist::_duplicate(::StateChangeFromReceptionist_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

StateChangeFromReceptionist_ptr
StateChangeFromReceptionist::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


StateChangeFromReceptionist_ptr
StateChangeFromReceptionist::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

StateChangeFromReceptionist_ptr
StateChangeFromReceptionist::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_StateChangeFromReceptionist _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_StateChangeFromReceptionist* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_StateChangeFromReceptionist;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* StateChangeFromReceptionist::_PD_repoId = "IDL:StateChangeFromReceptionist:1.0";


_objref_StateChangeFromReceptionist::~_objref_StateChangeFromReceptionist() {
  
}


_objref_StateChangeFromReceptionist::_objref_StateChangeFromReceptionist(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::StateChangeFromReceptionist::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_StateChangeFromReceptionist::_ptrToObjRef(const char* id)
{
  if( id == ::StateChangeFromReceptionist::_PD_repoId )
    return (::StateChangeFromReceptionist_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::StateChangeFromReceptionist::_PD_repoId) )
    return (::StateChangeFromReceptionist_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_60000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_20000000* tcd = (_0RL_cd_60012c7929db1703_20000000*)cd;
  _impl_StateChangeFromReceptionist* impl = (_impl_StateChangeFromReceptionist*) svnt->_ptrToInterface(StateChangeFromReceptionist::_PD_repoId);
  tcd->result = impl->SetState(tcd->arg_0, tcd->arg_1);


}

::CORBA::Long _objref_StateChangeFromReceptionist::SetState(::CORBA::Long state, const char* state_str)
{
  _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_60000000, "SetState", 9);
  _call_desc.arg_0 = state;
  _call_desc.arg_1 = state_str;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_StateChangeFromReceptionist::~_pof_StateChangeFromReceptionist() {}


omniObjRef*
_pof_StateChangeFromReceptionist::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_StateChangeFromReceptionist(ior, id);
}


::CORBA::Boolean
_pof_StateChangeFromReceptionist::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::StateChangeFromReceptionist::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_StateChangeFromReceptionist _the_pof_StateChangeFromReceptionist;

_impl_StateChangeFromReceptionist::~_impl_StateChangeFromReceptionist() {}


::CORBA::Boolean
_impl_StateChangeFromReceptionist::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetState") ) {

    _0RL_cd_60012c7929db1703_20000000 _call_desc(_0RL_lcfn_60012c7929db1703_60000000, "SetState", 9, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_StateChangeFromReceptionist::_ptrToInterface(const char* id)
{
  if( id == ::StateChangeFromReceptionist::_PD_repoId )
    return (::_impl_StateChangeFromReceptionist*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::StateChangeFromReceptionist::_PD_repoId) )
    return (::_impl_StateChangeFromReceptionist*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_StateChangeFromReceptionist::_mostDerivedRepoId()
{
  return ::StateChangeFromReceptionist::_PD_repoId;
}

const ::CORBA::Long ServiceChange::status_id_Standby _init_in_cldef_( = 1 );

const ::CORBA::Long ServiceChange::status_id_Attend _init_in_cldef_( = 2 );

const ::CORBA::Long ServiceChange::status_id_Guide _init_in_cldef_( = 3 );

const ::CORBA::Long ServiceChange::status_id_Waiting _init_in_cldef_( = 4 );

const ::CORBA::Long ServiceChange::status_id_Dispose _init_in_cldef_( = 5 );

ServiceChange_ptr ServiceChange_Helper::_nil() {
  return ::ServiceChange::_nil();
}

::CORBA::Boolean ServiceChange_Helper::is_nil(::ServiceChange_ptr p) {
  return ::CORBA::is_nil(p);

}

void ServiceChange_Helper::release(::ServiceChange_ptr p) {
  ::CORBA::release(p);
}

void ServiceChange_Helper::marshalObjRef(::ServiceChange_ptr obj, cdrStream& s) {
  ::ServiceChange::_marshalObjRef(obj, s);
}

ServiceChange_ptr ServiceChange_Helper::unmarshalObjRef(cdrStream& s) {
  return ::ServiceChange::_unmarshalObjRef(s);
}

void ServiceChange_Helper::duplicate(::ServiceChange_ptr obj) {
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
}

ServiceChange_ptr
ServiceChange::_duplicate(::ServiceChange_ptr obj)
{
  if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
  return obj;
}

ServiceChange_ptr
ServiceChange::_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
  return e ? e : _nil();
}


ServiceChange_ptr
ServiceChange::_unchecked_narrow(::CORBA::Object_ptr obj)
{
  if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
  _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
  return e ? e : _nil();
}

ServiceChange_ptr
ServiceChange::_nil()
{
#ifdef OMNI_UNLOADABLE_STUBS
  static _objref_ServiceChange _the_nil_obj;
  return &_the_nil_obj;
#else
  static _objref_ServiceChange* _the_nil_ptr = 0;
  if( !_the_nil_ptr ) {
    omni::nilRefLock().lock();
    if( !_the_nil_ptr ) {
      _the_nil_ptr = new _objref_ServiceChange;
      registerNilCorbaObject(_the_nil_ptr);
    }
    omni::nilRefLock().unlock();
  }
  return _the_nil_ptr;
#endif
}

const char* ServiceChange::_PD_repoId = "IDL:ServiceChange:1.0";


_objref_ServiceChange::~_objref_ServiceChange() {
  
}


_objref_ServiceChange::_objref_ServiceChange(omniIOR* ior, omniIdentity* id) :
   omniObjRef(::ServiceChange::_PD_repoId, ior, id, 1)
   
   
{
  _PR_setobj(this);
}

void*
_objref_ServiceChange::_ptrToObjRef(const char* id)
{
  if( id == ::ServiceChange::_PD_repoId )
    return (::ServiceChange_ptr) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (::CORBA::Object_ptr) this;

  if( omni::strMatch(id, ::ServiceChange::_PD_repoId) )
    return (::ServiceChange_ptr) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (::CORBA::Object_ptr) this;

  return 0;
}

// Proxy call descriptor class. Mangled signature:
//  _clong_i_clong_i_clong
class _0RL_cd_60012c7929db1703_70000000
  : public omniCallDescriptor
{
public:
  inline _0RL_cd_60012c7929db1703_70000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
     omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
  {
    
  }
  
  void marshalArguments(cdrStream&);
  void unmarshalArguments(cdrStream&);

  void unmarshalReturnedValues(cdrStream&);
  void marshalReturnedValues(cdrStream&);
  
  
  ::CORBA::Long arg_0;
  ::CORBA::Long arg_1;
  ::CORBA::Long result;
};

void _0RL_cd_60012c7929db1703_70000000::marshalArguments(cdrStream& _n)
{
  arg_0 >>= _n;
  arg_1 >>= _n;

}

void _0RL_cd_60012c7929db1703_70000000::unmarshalArguments(cdrStream& _n)
{
  (::CORBA::Long&)arg_0 <<= _n;
  (::CORBA::Long&)arg_1 <<= _n;

}

void _0RL_cd_60012c7929db1703_70000000::marshalReturnedValues(cdrStream& _n)
{
  result >>= _n;

}

void _0RL_cd_60012c7929db1703_70000000::unmarshalReturnedValues(cdrStream& _n)
{
  (::CORBA::Long&)result <<= _n;

}

// Local call call-back function.
static void
_0RL_lcfn_60012c7929db1703_80000000(omniCallDescriptor* cd, omniServant* svnt)
{
  _0RL_cd_60012c7929db1703_70000000* tcd = (_0RL_cd_60012c7929db1703_70000000*)cd;
  _impl_ServiceChange* impl = (_impl_ServiceChange*) svnt->_ptrToInterface(ServiceChange::_PD_repoId);
  tcd->result = impl->SetService(tcd->arg_0, tcd->arg_1);


}

::CORBA::Long _objref_ServiceChange::SetService(::CORBA::Long src, ::CORBA::Long service)
{
  _0RL_cd_60012c7929db1703_70000000 _call_desc(_0RL_lcfn_60012c7929db1703_80000000, "SetService", 11);
  _call_desc.arg_0 = src;
  _call_desc.arg_1 = service;

  _invoke(_call_desc);
  return _call_desc.result;


}
_pof_ServiceChange::~_pof_ServiceChange() {}


omniObjRef*
_pof_ServiceChange::newObjRef(omniIOR* ior, omniIdentity* id)
{
  return new ::_objref_ServiceChange(ior, id);
}


::CORBA::Boolean
_pof_ServiceChange::is_a(const char* id) const
{
  if( omni::ptrStrMatch(id, ::ServiceChange::_PD_repoId) )
    return 1;
  
  return 0;
}

const _pof_ServiceChange _the_pof_ServiceChange;

_impl_ServiceChange::~_impl_ServiceChange() {}


::CORBA::Boolean
_impl_ServiceChange::_dispatch(omniCallHandle& _handle)
{
  const char* op = _handle.operation_name();

  if( omni::strMatch(op, "SetService") ) {

    _0RL_cd_60012c7929db1703_70000000 _call_desc(_0RL_lcfn_60012c7929db1703_80000000, "SetService", 11, 1);
    
    _handle.upcall(this,_call_desc);
    return 1;
  }


  return 0;
}

void*
_impl_ServiceChange::_ptrToInterface(const char* id)
{
  if( id == ::ServiceChange::_PD_repoId )
    return (::_impl_ServiceChange*) this;
  
  if( id == ::CORBA::Object::_PD_repoId )
    return (void*) 1;

  if( omni::strMatch(id, ::ServiceChange::_PD_repoId) )
    return (::_impl_ServiceChange*) this;
  
  if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
    return (void*) 1;
  return 0;
}

const char*
_impl_ServiceChange::_mostDerivedRepoId()
{
  return ::ServiceChange::_PD_repoId;
}

POA_StateChange::~POA_StateChange() {}

POA_StateChangeFromPA10::~POA_StateChangeFromPA10() {}

POA_StateChangeFromRH::~POA_StateChangeFromRH() {}

POA_StateChangeFromMeeting::~POA_StateChangeFromMeeting() {}

POA_StateChangeFromReceptionist::~POA_StateChangeFromReceptionist() {}

POA_ServiceChange::~POA_ServiceChange() {}

