summaryrefslogtreecommitdiff
path: root/TAO/tao/POAC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/POAC.cpp')
-rw-r--r--TAO/tao/POAC.cpp2576
1 files changed, 0 insertions, 2576 deletions
diff --git a/TAO/tao/POAC.cpp b/TAO/tao/POAC.cpp
deleted file mode 100644
index 73dadee8e30..00000000000
--- a/TAO/tao/POAC.cpp
+++ /dev/null
@@ -1,2576 +0,0 @@
-// $Id$
-//
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-#include "tao/corba.h"
-
-#if !defined (__ACE_INLINE__)
-#include "POAC.i"
-#endif // !defined INLINE
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET_CS_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET_CS_
-
-static const CORBA::Long _oc_PortableServer__tao_seq_Octet[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 0,
-};
-static CORBA::TypeCode _tc__tc_PortableServer__tao_seq_Octet (CORBA::tk_sequence, sizeof (_oc_PortableServer__tao_seq_Octet), (char *) &_oc_PortableServer__tao_seq_Octet, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc__tao_seq_Octet = &_tc__tc_PortableServer__tao_seq_Octet;
-
-
-#endif // end #if !defined
-
-static const CORBA::Long _oc_PortableServer_ObjectId[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 32, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f4f, 0x626a6563, 0x7449643a, 0x312e3000, // repository ID = IDL:PortableServer/ObjectId:1.0
- 9, 0x4f626a65, 0x63744964, 0x0, // name = ObjectId
- CORBA::tk_sequence, // typecode kind
- 12, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 0,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ObjectId (CORBA::tk_alias, sizeof (_oc_PortableServer_ObjectId), (char *) &_oc_PortableServer_ObjectId, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ObjectId = &_tc__tc_PortableServer_ObjectId;
-
-// default constructor
-PortableServer::ForwardRequest::ForwardRequest (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::_tc_ForwardRequest))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::ForwardRequest::~ForwardRequest (void)
-{
-}
-
-// copy constructor
-PortableServer::ForwardRequest::ForwardRequest (const PortableServer::ForwardRequest &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
- this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
-}
-
-// assignment operator
-PortableServer::ForwardRequest&
-PortableServer::ForwardRequest::operator= (const PortableServer::ForwardRequest &_tao_excp)
-{
- this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
- this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
- return *this;
-}
-
-PortableServer::ForwardRequest::ForwardRequest(
- const CORBA::Object_ptr _tao_forward_reference)
-
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::_tc_ForwardRequest))
-{
- this->forward_reference = CORBA::Object::_duplicate (_tao_forward_reference);
-}
-
-// narrow
-PortableServer::ForwardRequest_ptr
-PortableServer::ForwardRequest::_narrow (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:PortableServer/ForwardRequest:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::ForwardRequest_ptr, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::ForwardRequest::_alloc (void)
-{
- return new PortableServer::ForwardRequest;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::ForwardRequest &_tao_elem) // copying
-{
- CORBA::Environment _tao_env;
- _tao_any.replace (PortableServer::_tc_ForwardRequest, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ForwardRequest *_tao_elem) // non copying
-{
- CORBA::Environment _tao_env;
- _tao_any.replace (PortableServer::_tc_ForwardRequest, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ForwardRequest *&_tao_elem)
-{
- CORBA::Environment _tao_env;
- if (!_tao_any.type ()->equal (PortableServer::_tc_ForwardRequest, _tao_env)) return 0; // not equal
- if (_tao_any.any_owns_data ())
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::ForwardRequest, 0);
- TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
- if (stream.decode (PortableServer::_tc_ForwardRequest, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
- {
- ((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
- }
- else
- {
- delete _tao_elem;
- return 0;
- }
- }
- else
- {
- _tao_elem = (PortableServer::ForwardRequest *)_tao_any.value ();
- return 1;
- }
-}
-
-static const CORBA::Long _oc_PortableServer_ForwardRequest[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 38, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x462f7265, 0x6177726f, 0x65526472, 0x73657571, 0x2e313a74, 0xfdfd0030, // repository ID = IDL:PortableServer/ForwardRequest:1.0
- 15, 0x77726f46, 0x52647261, 0x65757165, 0xfd007473, // name = ForwardRequest
- 1, // member count
- 18, 0x77726f66, 0x5f647261, 0x65666572, 0x636e6572, 0xfdfd0065, // name = forward_reference
- CORBA::tk_objref,
-44, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 21, 0x3a4c4449, 0x42524f43, 0x624f2f41, 0x7463656a, 0x302e313a, 0xfdfdfd00, // repository ID = IDL:CORBA/Object:1.0
- 7, 0x656a624f, 0xfd007463, // name = Object,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ForwardRequest (CORBA::tk_except, sizeof (_oc_PortableServer_ForwardRequest), (char *) &_oc_PortableServer_ForwardRequest, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ForwardRequest = &_tc__tc_PortableServer_ForwardRequest;
-
-
-static const CORBA::Long _oc_PortableServer_ThreadPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 41, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f54, 0x68726561, 0x64506f6c, 0x69637956, 0x616c7565, 0x3a312e30, 0x0, // repository ID = IDL:PortableServer/ThreadPolicyValue:1.0
- 18, 0x54687265, 0x6164506f, 0x6c696379, 0x56616c75, 0x65000000, // name = ThreadPolicyValue
- 2, // member count
- 15, 0x4f52425f, 0x4354524c, 0x5f4d4f44, 0x454c0000, // name = ORB_CTRL_MODEL
- 20, 0x53494e47, 0x4c455f54, 0x48524541, 0x445f4d4f, 0x44454c00, // name = SINGLE_THREAD_MODEL
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ThreadPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ThreadPolicyValue), (char *) &_oc_PortableServer_ThreadPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ThreadPolicyValue = &_tc__tc_PortableServer_ThreadPolicyValue;
-
-PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_duplicate (PortableServer::ThreadPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ThreadPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ThreadPolicy:1.0", env))
- return PortableServer::ThreadPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::ThreadPolicy_ptr new_obj = new PortableServer::ThreadPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ThreadPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ThreadPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_ThreadPolicy(
- ACE_reinterpret_cast(POA_PortableServer::ThreadPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ThreadPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ThreadPolicy::_nil ();
- }
- return PortableServer::ThreadPolicy::_narrow (objref, env);
-}
-
-PortableServer::ThreadPolicyValue PortableServer::ThreadPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_ThreadPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_ThreadPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_ThreadPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_ThreadPolicy_value_paramdata, 0, 0};
-
- PortableServer::ThreadPolicyValue retval =
- ACE_static_cast (PortableServer::ThreadPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_ThreadPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::ThreadPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ThreadPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ThreadPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 36, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f54, 0x68726561, 0x64506f6c, 0x6963793a, 0x312e3000, // repository ID = IDL:PortableServer/ThreadPolicy:1.0
- 13, 0x54687265, 0x6164506f, 0x6c696379, 0x0, // name = ThreadPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ThreadPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_ThreadPolicy), (char *) &_oc_PortableServer_ThreadPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ThreadPolicy = &_tc__tc_PortableServer_ThreadPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_LifespanPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 43, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f4c, 0x69666573, 0x70616e50, 0x6f6c6963, 0x7956616c, 0x75653a31, 0x2e300000, // repository ID = IDL:PortableServer/LifespanPolicyValue:1.0
- 20, 0x4c696665, 0x7370616e, 0x506f6c69, 0x63795661, 0x6c756500, // name = LifespanPolicyValue
- 2, // member count
- 10, 0x5452414e, 0x5349454e, 0x54000000, // name = TRANSIENT
- 11, 0x50455253, 0x49535445, 0x4e540000, // name = PERSISTENT
-};
-static CORBA::TypeCode _tc__tc_PortableServer_LifespanPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_LifespanPolicyValue), (char *) &_oc_PortableServer_LifespanPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_LifespanPolicyValue = &_tc__tc_PortableServer_LifespanPolicyValue;
-
-PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_duplicate (PortableServer::LifespanPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::LifespanPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/LifespanPolicy:1.0", env))
- return PortableServer::LifespanPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::LifespanPolicy_ptr new_obj = new PortableServer::LifespanPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::LifespanPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/LifespanPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_LifespanPolicy(
- ACE_reinterpret_cast(POA_PortableServer::LifespanPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::LifespanPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::LifespanPolicy::_nil ();
- }
- return PortableServer::LifespanPolicy::_narrow (objref, env);
-}
-
-PortableServer::LifespanPolicyValue PortableServer::LifespanPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_LifespanPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_LifespanPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_LifespanPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_LifespanPolicy_value_paramdata, 0, 0};
-
- PortableServer::LifespanPolicyValue retval =
- ACE_static_cast (PortableServer::LifespanPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_LifespanPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::LifespanPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/LifespanPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_LifespanPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 38, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f4c, 0x69666573, 0x70616e50, 0x6f6c6963, 0x793a312e, 0x30000000, // repository ID = IDL:PortableServer/LifespanPolicy:1.0
- 15, 0x4c696665, 0x7370616e, 0x506f6c69, 0x63790000, // name = LifespanPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_LifespanPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_LifespanPolicy), (char *) &_oc_PortableServer_LifespanPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_LifespanPolicy = &_tc__tc_PortableServer_LifespanPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_IdUniquenessPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 47, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x64556e69, 0x7175656e, 0x65737350, 0x6f6c6963, 0x7956616c, 0x75653a31, 0x2e300000, // repository ID = IDL:PortableServer/IdUniquenessPolicyValue:1.0
- 24, 0x4964556e, 0x69717565, 0x6e657373, 0x506f6c69, 0x63795661, 0x6c756500, // name = IdUniquenessPolicyValue
- 2, // member count
- 10, 0x554e4951, 0x55455f49, 0x44000000, // name = UNIQUE_ID
- 12, 0x4d554c54, 0x49504c45, 0x5f494400, // name = MULTIPLE_ID
-};
-static CORBA::TypeCode _tc__tc_PortableServer_IdUniquenessPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_IdUniquenessPolicyValue), (char *) &_oc_PortableServer_IdUniquenessPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_IdUniquenessPolicyValue = &_tc__tc_PortableServer_IdUniquenessPolicyValue;
-
-PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_duplicate (PortableServer::IdUniquenessPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::IdUniquenessPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/IdUniquenessPolicy:1.0", env))
- return PortableServer::IdUniquenessPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::IdUniquenessPolicy_ptr new_obj = new PortableServer::IdUniquenessPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::IdUniquenessPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/IdUniquenessPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_IdUniquenessPolicy(
- ACE_reinterpret_cast(POA_PortableServer::IdUniquenessPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::IdUniquenessPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::IdUniquenessPolicy::_nil ();
- }
- return PortableServer::IdUniquenessPolicy::_narrow (objref, env);
-}
-
-PortableServer::IdUniquenessPolicyValue PortableServer::IdUniquenessPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_IdUniquenessPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_IdUniquenessPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_IdUniquenessPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_IdUniquenessPolicy_value_paramdata, 0, 0};
-
- PortableServer::IdUniquenessPolicyValue retval =
- ACE_static_cast (PortableServer::IdUniquenessPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_IdUniquenessPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::IdUniquenessPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/IdUniquenessPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_IdUniquenessPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 42, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x64556e69, 0x7175656e, 0x65737350, 0x6f6c6963, 0x793a312e, 0x30000000, // repository ID = IDL:PortableServer/IdUniquenessPolicy:1.0
- 19, 0x4964556e, 0x69717565, 0x6e657373, 0x506f6c69, 0x63790000, // name = IdUniquenessPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_IdUniquenessPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_IdUniquenessPolicy), (char *) &_oc_PortableServer_IdUniquenessPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_IdUniquenessPolicy = &_tc__tc_PortableServer_IdUniquenessPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_IdAssignmentPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 47, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x64417373, 0x69676e6d, 0x656e7450, 0x6f6c6963, 0x7956616c, 0x75653a31, 0x2e300000, // repository ID = IDL:PortableServer/IdAssignmentPolicyValue:1.0
- 24, 0x49644173, 0x7369676e, 0x6d656e74, 0x506f6c69, 0x63795661, 0x6c756500, // name = IdAssignmentPolicyValue
- 2, // member count
- 8, 0x55534552, 0x5f494400, // name = USER_ID
- 10, 0x53595354, 0x454d5f49, 0x44000000, // name = SYSTEM_ID
-};
-static CORBA::TypeCode _tc__tc_PortableServer_IdAssignmentPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_IdAssignmentPolicyValue), (char *) &_oc_PortableServer_IdAssignmentPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_IdAssignmentPolicyValue = &_tc__tc_PortableServer_IdAssignmentPolicyValue;
-
-PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_duplicate (PortableServer::IdAssignmentPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::IdAssignmentPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/IdAssignmentPolicy:1.0", env))
- return PortableServer::IdAssignmentPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::IdAssignmentPolicy_ptr new_obj = new PortableServer::IdAssignmentPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::IdAssignmentPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/IdAssignmentPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_IdAssignmentPolicy(
- ACE_reinterpret_cast(POA_PortableServer::IdAssignmentPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::IdAssignmentPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::IdAssignmentPolicy::_nil ();
- }
- return PortableServer::IdAssignmentPolicy::_narrow (objref, env);
-}
-
-PortableServer::IdAssignmentPolicyValue PortableServer::IdAssignmentPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_IdAssignmentPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_IdAssignmentPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_IdAssignmentPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_IdAssignmentPolicy_value_paramdata, 0, 0};
-
- PortableServer::IdAssignmentPolicyValue retval =
- ACE_static_cast (PortableServer::IdAssignmentPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_IdAssignmentPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::IdAssignmentPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/IdAssignmentPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_IdAssignmentPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 42, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x64417373, 0x69676e6d, 0x656e7450, 0x6f6c6963, 0x793a312e, 0x30000000, // repository ID = IDL:PortableServer/IdAssignmentPolicy:1.0
- 19, 0x49644173, 0x7369676e, 0x6d656e74, 0x506f6c69, 0x63790000, // name = IdAssignmentPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_IdAssignmentPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_IdAssignmentPolicy), (char *) &_oc_PortableServer_IdAssignmentPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_IdAssignmentPolicy = &_tc__tc_PortableServer_IdAssignmentPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 53, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x6d706c69, 0x63697441, 0x63746976, 0x6174696f, 0x6e506f6c, 0x69637956, 0x616c7565, 0x3a312e30, 0x0, // repository ID = IDL:PortableServer/ImplicitActivationPolicyValue:1.0
- 30, 0x496d706c, 0x69636974, 0x41637469, 0x76617469, 0x6f6e506f, 0x6c696379, 0x56616c75, 0x65000000, // name = ImplicitActivationPolicyValue
- 2, // member count
- 20, 0x494d504c, 0x49434954, 0x5f414354, 0x49564154, 0x494f4e00, // name = IMPLICIT_ACTIVATION
- 23, 0x4e4f5f49, 0x4d504c49, 0x4349545f, 0x41435449, 0x56415449, 0x4f4e0000, // name = NO_IMPLICIT_ACTIVATION
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ImplicitActivationPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ImplicitActivationPolicyValue), (char *) &_oc_PortableServer_ImplicitActivationPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ImplicitActivationPolicyValue = &_tc__tc_PortableServer_ImplicitActivationPolicyValue;
-
-PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_duplicate (PortableServer::ImplicitActivationPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ImplicitActivationPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ImplicitActivationPolicy:1.0", env))
- return PortableServer::ImplicitActivationPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::ImplicitActivationPolicy_ptr new_obj = new PortableServer::ImplicitActivationPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ImplicitActivationPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ImplicitActivationPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_ImplicitActivationPolicy(
- ACE_reinterpret_cast(POA_PortableServer::ImplicitActivationPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ImplicitActivationPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ImplicitActivationPolicy::_nil ();
- }
- return PortableServer::ImplicitActivationPolicy::_narrow (objref, env);
-}
-
-PortableServer::ImplicitActivationPolicyValue PortableServer::ImplicitActivationPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_ImplicitActivationPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_ImplicitActivationPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_ImplicitActivationPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_ImplicitActivationPolicy_value_paramdata, 0, 0};
-
- PortableServer::ImplicitActivationPolicyValue retval =
- ACE_static_cast (PortableServer::ImplicitActivationPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_ImplicitActivationPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::ImplicitActivationPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ImplicitActivationPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 48, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f49, 0x6d706c69, 0x63697441, 0x63746976, 0x6174696f, 0x6e506f6c, 0x6963793a, 0x312e3000, // repository ID = IDL:PortableServer/ImplicitActivationPolicy:1.0
- 25, 0x496d706c, 0x69636974, 0x41637469, 0x76617469, 0x6f6e506f, 0x6c696379, 0x0, // name = ImplicitActivationPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ImplicitActivationPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_ImplicitActivationPolicy), (char *) &_oc_PortableServer_ImplicitActivationPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ImplicitActivationPolicy = &_tc__tc_PortableServer_ImplicitActivationPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_ServantRetentionPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 51, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f53, 0x65727661, 0x6e745265, 0x74656e74, 0x696f6e50, 0x6f6c6963, 0x7956616c, 0x75653a31, 0x2e300000, // repository ID = IDL:PortableServer/ServantRetentionPolicyValue:1.0
- 28, 0x53657276, 0x616e7452, 0x6574656e, 0x74696f6e, 0x506f6c69, 0x63795661, 0x6c756500, // name = ServantRetentionPolicyValue
- 2, // member count
- 7, 0x52455441, 0x494e0000, // name = RETAIN
- 11, 0x4e4f4e5f, 0x52455441, 0x494e0000, // name = NON_RETAIN
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ServantRetentionPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ServantRetentionPolicyValue), (char *) &_oc_PortableServer_ServantRetentionPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ServantRetentionPolicyValue = &_tc__tc_PortableServer_ServantRetentionPolicyValue;
-
-PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_duplicate (PortableServer::ServantRetentionPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantRetentionPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ServantRetentionPolicy:1.0", env))
- return PortableServer::ServantRetentionPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::ServantRetentionPolicy_ptr new_obj = new PortableServer::ServantRetentionPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ServantRetentionPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ServantRetentionPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_ServantRetentionPolicy(
- ACE_reinterpret_cast(POA_PortableServer::ServantRetentionPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ServantRetentionPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ServantRetentionPolicy::_nil ();
- }
- return PortableServer::ServantRetentionPolicy::_narrow (objref, env);
-}
-
-PortableServer::ServantRetentionPolicyValue PortableServer::ServantRetentionPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_ServantRetentionPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_ServantRetentionPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_ServantRetentionPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_ServantRetentionPolicy_value_paramdata, 0, 0};
-
- PortableServer::ServantRetentionPolicyValue retval =
- ACE_static_cast (PortableServer::ServantRetentionPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_ServantRetentionPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::ServantRetentionPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantRetentionPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ServantRetentionPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 46, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f53, 0x65727661, 0x6e745265, 0x74656e74, 0x696f6e50, 0x6f6c6963, 0x793a312e, 0x30000000, // repository ID = IDL:PortableServer/ServantRetentionPolicy:1.0
- 23, 0x53657276, 0x616e7452, 0x6574656e, 0x74696f6e, 0x506f6c69, 0x63790000, // name = ServantRetentionPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ServantRetentionPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_ServantRetentionPolicy), (char *) &_oc_PortableServer_ServantRetentionPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ServantRetentionPolicy = &_tc__tc_PortableServer_ServantRetentionPolicy;
-
-
-static const CORBA::Long _oc_PortableServer_RequestProcessingPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 52, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f52, 0x65717565, 0x73745072, 0x6f636573, 0x73696e67, 0x506f6c69, 0x63795661, 0x6c75653a, 0x312e3000, // repository ID = IDL:PortableServer/RequestProcessingPolicyValue:1.0
- 29, 0x52657175, 0x65737450, 0x726f6365, 0x7373696e, 0x67506f6c, 0x69637956, 0x616c7565, 0x0, // name = RequestProcessingPolicyValue
- 3, // member count
- 27, 0x5553455f, 0x41435449, 0x56455f4f, 0x424a4543, 0x545f4d41, 0x505f4f4e, 0x4c590000, // name = USE_ACTIVE_OBJECT_MAP_ONLY
- 20, 0x5553455f, 0x44454641, 0x554c545f, 0x53455256, 0x414e5400, // name = USE_DEFAULT_SERVANT
- 20, 0x5553455f, 0x53455256, 0x414e545f, 0x4d414e41, 0x47455200, // name = USE_SERVANT_MANAGER
-};
-static CORBA::TypeCode _tc__tc_PortableServer_RequestProcessingPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_RequestProcessingPolicyValue), (char *) &_oc_PortableServer_RequestProcessingPolicyValue, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_RequestProcessingPolicyValue = &_tc__tc_PortableServer_RequestProcessingPolicyValue;
-
-PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_duplicate (PortableServer::RequestProcessingPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::RequestProcessingPolicy::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/RequestProcessingPolicy:1.0", env))
- return PortableServer::RequestProcessingPolicy::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::RequestProcessingPolicy_ptr
- new_obj = new PortableServer::RequestProcessingPolicy (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::RequestProcessingPolicy::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/RequestProcessingPolicy:1.0");
- return new POA_PortableServer::_tao_collocated_RequestProcessingPolicy(
- ACE_reinterpret_cast(POA_PortableServer::RequestProcessingPolicy_ptr, servant),
- stub
- );
-}
-
-PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::RequestProcessingPolicy::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::RequestProcessingPolicy::_nil ();
- }
- return PortableServer::RequestProcessingPolicy::_narrow (objref, env);
-}
-
-PortableServer::RequestProcessingPolicyValue PortableServer::RequestProcessingPolicy::value(CORBA::Environment &env)
-{
- static const TAO_Param_Data _get_PortableServer_RequestProcessingPolicy_value_paramdata [] =
- {
- {PortableServer::_tc_RequestProcessingPolicyValue, PARAM_RETURN, 0}};
-
- static const TAO_Call_Data _get_PortableServer_RequestProcessingPolicy_value_calldata =
- {"_get_value", 1, 1, _get_PortableServer_RequestProcessingPolicy_value_paramdata, 0, 0};
-
- PortableServer::RequestProcessingPolicyValue retval =
- ACE_static_cast (PortableServer::RequestProcessingPolicyValue, -1);
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return retval;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &_get_PortableServer_RequestProcessingPolicy_value_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::RequestProcessingPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/RequestProcessingPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_RequestProcessingPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 47, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f52, 0x65717565, 0x73745072, 0x6f636573, 0x73696e67, 0x506f6c69, 0x63793a31, 0x2e300000, // repository ID = IDL:PortableServer/RequestProcessingPolicy:1.0
- 24, 0x52657175, 0x65737450, 0x726f6365, 0x7373696e, 0x67506f6c, 0x69637900, // name = RequestProcessingPolicy,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_RequestProcessingPolicy (CORBA::tk_objref, sizeof (_oc_PortableServer_RequestProcessingPolicy), (char *) &_oc_PortableServer_RequestProcessingPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_RequestProcessingPolicy = &_tc__tc_PortableServer_RequestProcessingPolicy;
-
-PortableServer::POAManager_ptr PortableServer::POAManager::_duplicate (PortableServer::POAManager_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::POAManager_ptr PortableServer::POAManager::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::POAManager::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/POAManager:1.0", env))
- return PortableServer::POAManager::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::POAManager::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::POAManager::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/POAManager:1.0");
- return new POA_PortableServer::_tao_collocated_POAManager(
- ACE_reinterpret_cast(POA_PortableServer::POAManager_ptr, servant),
- stub
- );
-}
-
-PortableServer::POAManager_ptr PortableServer::POAManager::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::POAManager::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::POAManager::_nil ();
- }
- return PortableServer::POAManager::_narrow (objref, env);
-}
-
-// default constructor
-PortableServer::POAManager::AdapterInactive::AdapterInactive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POAManager::_tc_AdapterInactive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POAManager::AdapterInactive::~AdapterInactive (void)
-{
-}
-
-// copy constructor
-PortableServer::POAManager::AdapterInactive::AdapterInactive (const PortableServer::POAManager::AdapterInactive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
- }
-
-// assignment operator
-PortableServer::POAManager::AdapterInactive&
-PortableServer::POAManager::AdapterInactive::operator= (const PortableServer::POAManager::AdapterInactive &_tao_excp)
-{
- this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
- return *this;
-}
-
-// narrow
-PortableServer::POAManager::AdapterInactive_ptr
-PortableServer::POAManager::AdapterInactive::_narrow (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:PortableServer/POAManager/AdapterInactive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POAManager::AdapterInactive_ptr, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POAManager::AdapterInactive::_alloc (void)
-{
- return new PortableServer::POAManager::AdapterInactive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POAManager::AdapterInactive &_tao_elem) // copying
-{
- CORBA::Environment _tao_env;
- _tao_any.replace (PortableServer::POAManager::_tc_AdapterInactive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POAManager::AdapterInactive *_tao_elem) // non copying
-{
- CORBA::Environment _tao_env;
- _tao_any.replace (PortableServer::POAManager::_tc_AdapterInactive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POAManager::AdapterInactive *&_tao_elem)
-{
- CORBA::Environment _tao_env;
- if (!_tao_any.type ()->equal (PortableServer::POAManager::_tc_AdapterInactive, _tao_env)) return 0; // not equal
- if (_tao_any.any_owns_data ())
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POAManager::AdapterInactive, 0);
- TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
- if (stream.decode (PortableServer::POAManager::_tc_AdapterInactive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
- {
- ((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
- }
- else
- {
- delete _tao_elem;
- return 0;
- }
- }
- else
- {
- _tao_elem = (PortableServer::POAManager::AdapterInactive *)_tao_any.value ();
- return 1;
- }
-}
-
-static const CORBA::Long _oc_PortableServer_POAManager_AdapterInactive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 50, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x614d414f, 0x6567616e, 0x64412f72, 0x65747061, 0x616e4972, 0x76697463, 0x2e313a65, 0xfdfd0030, // repository ID = IDL:PortableServer/POAManager/AdapterInactive:1.0
- 16, 0x70616441, 0x49726574, 0x7463616e, 0x657669, // name = AdapterInactive
- 0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POAManager_AdapterInactive (CORBA::tk_except, sizeof (_oc_PortableServer_POAManager_AdapterInactive), (char *) &_oc_PortableServer_POAManager_AdapterInactive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POAManager::_tc_AdapterInactive = &_tc__tc_PortableServer_POAManager_AdapterInactive;
-
-CORBA::Boolean PortableServer::POAManager::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/POAManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_POAManager[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 34, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f50, 0x4f414d61, 0x6e616765, 0x723a312e, 0x30000000, // repository ID = IDL:PortableServer/POAManager:1.0
- 11, 0x504f414d, 0x616e6167, 0x65720000, // name = POAManager,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POAManager (CORBA::tk_objref, sizeof (_oc_PortableServer_POAManager), (char *) &_oc_PortableServer_POAManager, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_POAManager = &_tc__tc_PortableServer_POAManager;
-
-PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_duplicate (PortableServer::AdapterActivator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::AdapterActivator::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/AdapterActivator:1.0", env))
- return PortableServer::AdapterActivator::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::AdapterActivator::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::AdapterActivator::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/AdapterActivator:1.0");
- return new POA_PortableServer::_tao_collocated_AdapterActivator(
- ACE_reinterpret_cast(POA_PortableServer::AdapterActivator_ptr, servant),
- stub
- );
-}
-
-PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::AdapterActivator::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::AdapterActivator::_nil ();
- }
- return PortableServer::AdapterActivator::_narrow (objref, env);
-}
-
-CORBA::Boolean PortableServer::AdapterActivator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/AdapterActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_AdapterActivator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 40, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f41, 0x64617074, 0x65724163, 0x74697661, 0x746f723a, 0x312e3000, // repository ID = IDL:PortableServer/AdapterActivator:1.0
- 17, 0x41646170, 0x74657241, 0x63746976, 0x61746f72, 0x0, // name = AdapterActivator,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_AdapterActivator (CORBA::tk_objref, sizeof (_oc_PortableServer_AdapterActivator), (char *) &_oc_PortableServer_AdapterActivator, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_AdapterActivator = &_tc__tc_PortableServer_AdapterActivator;
-
-PortableServer::ServantManager_ptr PortableServer::ServantManager::_duplicate (PortableServer::ServantManager_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantManager_ptr PortableServer::ServantManager::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantManager::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ServantManager:1.0", env))
- return PortableServer::ServantManager::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::ServantManager::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ServantManager::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ServantManager:1.0");
- return new POA_PortableServer::_tao_collocated_ServantManager(
- ACE_reinterpret_cast(POA_PortableServer::ServantManager_ptr, servant),
- stub
- );
-}
-
-PortableServer::ServantManager_ptr PortableServer::ServantManager::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ServantManager::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ServantManager::_nil ();
- }
- return PortableServer::ServantManager::_narrow (objref, env);
-}
-
-CORBA::Boolean PortableServer::ServantManager::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ServantManager[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 38, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f53, 0x65727661, 0x6e744d61, 0x6e616765, 0x723a312e, 0x30000000, // repository ID = IDL:PortableServer/ServantManager:1.0
- 15, 0x53657276, 0x616e744d, 0x616e6167, 0x65720000, // name = ServantManager,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ServantManager (CORBA::tk_objref, sizeof (_oc_PortableServer_ServantManager), (char *) &_oc_PortableServer_ServantManager, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ServantManager = &_tc__tc_PortableServer_ServantManager;
-
-PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_duplicate (PortableServer::ServantActivator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantActivator::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ServantActivator:1.0", env))
- return PortableServer::ServantActivator::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::ServantActivator::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ServantActivator::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ServantActivator:1.0");
- return new POA_PortableServer::_tao_collocated_ServantActivator(
- ACE_reinterpret_cast(POA_PortableServer::ServantActivator_ptr, servant),
- stub
- );
-}
-
-PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ServantActivator::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ServantActivator::_nil ();
- }
- return PortableServer::ServantActivator::_narrow (objref, env);
-}
-
-CORBA::Boolean PortableServer::ServantActivator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ServantActivator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 40, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f53, 0x65727661, 0x6e744163, 0x74697661, 0x746f723a, 0x312e3000, // repository ID = IDL:PortableServer/ServantActivator:1.0
- 17, 0x53657276, 0x616e7441, 0x63746976, 0x61746f72, 0x0, // name = ServantActivator,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ServantActivator (CORBA::tk_objref, sizeof (_oc_PortableServer_ServantActivator), (char *) &_oc_PortableServer_ServantActivator, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ServantActivator = &_tc__tc_PortableServer_ServantActivator;
-
-PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_duplicate (PortableServer::ServantLocator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantLocator::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/ServantLocator:1.0", env))
- return PortableServer::ServantLocator::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::ServantLocator::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::ServantLocator::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/ServantLocator:1.0");
- return new POA_PortableServer::_tao_collocated_ServantLocator(
- ACE_reinterpret_cast(POA_PortableServer::ServantLocator_ptr, servant),
- stub
- );
-}
-
-PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::ServantLocator::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::ServantLocator::_nil ();
- }
- return PortableServer::ServantLocator::_narrow (objref, env);
-}
-
-CORBA::Boolean PortableServer::ServantLocator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantLocator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_ServantLocator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 38, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f53, 0x65727661, 0x6e744c6f, 0x6361746f, 0x723a312e, 0x30000000, // repository ID = IDL:PortableServer/ServantLocator:1.0
- 15, 0x53657276, 0x616e744c, 0x6f636174, 0x6f720000, // name = ServantLocator,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_ServantLocator (CORBA::tk_objref, sizeof (_oc_PortableServer_ServantLocator), (char *) &_oc_PortableServer_ServantLocator, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_ServantLocator = &_tc__tc_PortableServer_ServantLocator;
-
-PortableServer::POA_ptr PortableServer::POA::_duplicate (PortableServer::POA_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::POA_ptr PortableServer::POA::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::POA::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/POA:1.0", env))
- return PortableServer::POA::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- // This can only be colocated
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::POA::_nil ();
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::POA::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/POA:1.0");
- return new POA_PortableServer::_tao_collocated_POA(
- ACE_reinterpret_cast(POA_PortableServer::POA_ptr, servant),
- stub
- );
-}
-
-PortableServer::POA_ptr PortableServer::POA::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::POA::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::POA::_nil ();
- }
- return PortableServer::POA::_narrow (objref, env);
-}
-
-// default constructor
-PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_AdapterAlreadyExists))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterAlreadyExists::~AdapterAlreadyExists (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (const PortableServer::POA::AdapterAlreadyExists &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterAlreadyExists&
-PortableServer::POA::AdapterAlreadyExists::operator= (const PortableServer::POA::AdapterAlreadyExists &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::AdapterAlreadyExists_ptr
-PortableServer::POA::AdapterAlreadyExists::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/AdapterAlreadyExists:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterAlreadyExists_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterAlreadyExists::_alloc (void)
-{
-return new PortableServer::POA::AdapterAlreadyExists;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterAlreadyExists &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterAlreadyExists, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterAlreadyExists *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterAlreadyExists, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterAlreadyExists *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_AdapterAlreadyExists, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterAlreadyExists, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_AdapterAlreadyExists, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::AdapterAlreadyExists *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterAlreadyExists[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-48, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x412f414f, 0x74706164, 0x6c417265, 0x64616572, 0x69784579, 0x3a737473, 0x302e31, // repository ID = IDL:PortableServer/POA/AdapterAlreadyExists:1.0
-21, 0x70616441, 0x41726574, 0x6165726c, 0x78457964, 0x73747369, 0xfdfdfd00, // name = AdapterAlreadyExists
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_AdapterAlreadyExists (CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterAlreadyExists), (char *) &_oc_PortableServer_POA_AdapterAlreadyExists, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterAlreadyExists = &_tc__tc_PortableServer_POA_AdapterAlreadyExists;
-
-// default constructor
-PortableServer::POA::AdapterInactive::AdapterInactive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_AdapterInactive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterInactive::~AdapterInactive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterInactive::AdapterInactive (const PortableServer::POA::AdapterInactive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterInactive&
-PortableServer::POA::AdapterInactive::operator= (const PortableServer::POA::AdapterInactive &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::AdapterInactive_ptr
-PortableServer::POA::AdapterInactive::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/AdapterInactive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterInactive_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterInactive::_alloc (void)
-{
-return new PortableServer::POA::AdapterInactive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterInactive &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterInactive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterInactive *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterInactive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterInactive *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_AdapterInactive, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterInactive, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_AdapterInactive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::AdapterInactive *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterInactive[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-43, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x412f414f, 0x74706164, 0x6e497265, 0x69746361, 0x313a6576, 0xfd00302e, // repository ID = IDL:PortableServer/POA/AdapterInactive:1.0
-16, 0x70616441, 0x49726574, 0x7463616e, 0x657669, // name = AdapterInactive
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_AdapterInactive (CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterInactive), (char *) &_oc_PortableServer_POA_AdapterInactive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterInactive = &_tc__tc_PortableServer_POA_AdapterInactive;
-
-// default constructor
-PortableServer::POA::AdapterNonExistent::AdapterNonExistent (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_AdapterNonExistent))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterNonExistent::~AdapterNonExistent (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterNonExistent::AdapterNonExistent (const PortableServer::POA::AdapterNonExistent &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterNonExistent&
-PortableServer::POA::AdapterNonExistent::operator= (const PortableServer::POA::AdapterNonExistent &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::AdapterNonExistent_ptr
-PortableServer::POA::AdapterNonExistent::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/AdapterNonExistent:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterNonExistent_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterNonExistent::_alloc (void)
-{
-return new PortableServer::POA::AdapterNonExistent;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterNonExistent &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterNonExistent, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterNonExistent *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_AdapterNonExistent, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterNonExistent *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_AdapterNonExistent, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterNonExistent, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_AdapterNonExistent, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::AdapterNonExistent *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterNonExistent[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-46, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x412f414f, 0x74706164, 0x6f4e7265, 0x6978456e, 0x6e657473, 0x2e313a74, 0xfdfd0030, // repository ID = IDL:PortableServer/POA/AdapterNonExistent:1.0
-19, 0x70616441, 0x4e726574, 0x78456e6f, 0x65747369, 0xfd00746e, // name = AdapterNonExistent
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_AdapterNonExistent (CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterNonExistent), (char *) &_oc_PortableServer_POA_AdapterNonExistent, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterNonExistent = &_tc__tc_PortableServer_POA_AdapterNonExistent;
-
-// default constructor
-PortableServer::POA::InvalidPolicy::InvalidPolicy (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_InvalidPolicy))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::InvalidPolicy::~InvalidPolicy (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::InvalidPolicy::InvalidPolicy (const PortableServer::POA::InvalidPolicy &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-this->index = _tao_excp.index;
-}
-
-// assignment operator
-PortableServer::POA::InvalidPolicy&
-PortableServer::POA::InvalidPolicy::operator= (const PortableServer::POA::InvalidPolicy &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-this->index = _tao_excp.index;
-return *this;
-}
-
-PortableServer::POA::InvalidPolicy::InvalidPolicy(
-CORBA::UShort _tao_index)
-
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_InvalidPolicy))
-{
-this->index = _tao_index;
-}
-
-// narrow
-PortableServer::POA::InvalidPolicy_ptr
-PortableServer::POA::InvalidPolicy::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/InvalidPolicy:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::InvalidPolicy_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::InvalidPolicy::_alloc (void)
-{
-return new PortableServer::POA::InvalidPolicy;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::InvalidPolicy &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_InvalidPolicy, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::InvalidPolicy *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_InvalidPolicy, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::InvalidPolicy *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_InvalidPolicy, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::InvalidPolicy, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_InvalidPolicy, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::InvalidPolicy *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_InvalidPolicy[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-41, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x492f414f, 0x6c61766e, 0x6f506469, 0x7963696c, 0x302e313a, 0xfdfdfd00, // repository ID = IDL:PortableServer/POA/InvalidPolicy:1.0
-14, 0x61766e49, 0x5064696c, 0x63696c6f, 0xfdfd0079, // name = InvalidPolicy
-1, // member count
-6, 0x65646e69, 0xfdfd0078, // name = index
-CORBA::tk_ushort,
-
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_InvalidPolicy (CORBA::tk_except, sizeof (_oc_PortableServer_POA_InvalidPolicy), (char *) &_oc_PortableServer_POA_InvalidPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_InvalidPolicy = &_tc__tc_PortableServer_POA_InvalidPolicy;
-
-// default constructor
-PortableServer::POA::NoServant::NoServant (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_NoServant))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::NoServant::~NoServant (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::NoServant::NoServant (const PortableServer::POA::NoServant &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::NoServant&
-PortableServer::POA::NoServant::operator= (const PortableServer::POA::NoServant &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::NoServant_ptr
-PortableServer::POA::NoServant::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/NoServant:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::NoServant_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::NoServant::_alloc (void)
-{
-return new PortableServer::POA::NoServant;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::NoServant &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_NoServant, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::NoServant *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_NoServant, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::NoServant *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_NoServant, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::NoServant, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_NoServant, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::NoServant *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_NoServant[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-37, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x4e2f414f, 0x7265536f, 0x746e6176, 0x302e313a, 0xfdfdfd00, // repository ID = IDL:PortableServer/POA/NoServant:1.0
-10, 0x65536f4e, 0x6e617672, 0xfdfd0074, // name = NoServant
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_NoServant (CORBA::tk_except, sizeof (_oc_PortableServer_POA_NoServant), (char *) &_oc_PortableServer_POA_NoServant, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_NoServant = &_tc__tc_PortableServer_POA_NoServant;
-
-// default constructor
-PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_ObjectAlreadyActive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ObjectAlreadyActive::~ObjectAlreadyActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (const PortableServer::POA::ObjectAlreadyActive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::ObjectAlreadyActive&
-PortableServer::POA::ObjectAlreadyActive::operator= (const PortableServer::POA::ObjectAlreadyActive &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::ObjectAlreadyActive_ptr
-PortableServer::POA::ObjectAlreadyActive::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ObjectAlreadyActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ObjectAlreadyActive_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ObjectAlreadyActive::_alloc (void)
-{
-return new PortableServer::POA::ObjectAlreadyActive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ObjectAlreadyActive &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ObjectAlreadyActive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ObjectAlreadyActive *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ObjectAlreadyActive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ObjectAlreadyActive *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_ObjectAlreadyActive, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::ObjectAlreadyActive, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_ObjectAlreadyActive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::ObjectAlreadyActive *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ObjectAlreadyActive[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-47, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x4f2f414f, 0x63656a62, 0x726c4174, 0x79646165, 0x69746341, 0x313a6576, 0xfd00302e, // repository ID = IDL:PortableServer/POA/ObjectAlreadyActive:1.0
-20, 0x656a624f, 0x6c417463, 0x64616572, 0x74634179, 0x657669, // name = ObjectAlreadyActive
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_ObjectAlreadyActive (CORBA::tk_except, sizeof (_oc_PortableServer_POA_ObjectAlreadyActive), (char *) &_oc_PortableServer_POA_ObjectAlreadyActive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ObjectAlreadyActive = &_tc__tc_PortableServer_POA_ObjectAlreadyActive;
-
-// default constructor
-PortableServer::POA::ObjectNotActive::ObjectNotActive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_ObjectNotActive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ObjectNotActive::~ObjectNotActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ObjectNotActive::ObjectNotActive (const PortableServer::POA::ObjectNotActive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::ObjectNotActive&
-PortableServer::POA::ObjectNotActive::operator= (const PortableServer::POA::ObjectNotActive &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::ObjectNotActive_ptr
-PortableServer::POA::ObjectNotActive::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ObjectNotActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ObjectNotActive_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ObjectNotActive::_alloc (void)
-{
-return new PortableServer::POA::ObjectNotActive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ObjectNotActive &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ObjectNotActive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ObjectNotActive *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ObjectNotActive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ObjectNotActive *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_ObjectNotActive, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::ObjectNotActive, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_ObjectNotActive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::ObjectNotActive *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ObjectNotActive[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-43, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x4f2f414f, 0x63656a62, 0x746f4e74, 0x69746341, 0x313a6576, 0xfd00302e, // repository ID = IDL:PortableServer/POA/ObjectNotActive:1.0
-16, 0x656a624f, 0x6f4e7463, 0x74634174, 0x657669, // name = ObjectNotActive
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_ObjectNotActive (CORBA::tk_except, sizeof (_oc_PortableServer_POA_ObjectNotActive), (char *) &_oc_PortableServer_POA_ObjectNotActive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ObjectNotActive = &_tc__tc_PortableServer_POA_ObjectNotActive;
-
-// default constructor
-PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_ServantAlreadyActive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ServantAlreadyActive::~ServantAlreadyActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (const PortableServer::POA::ServantAlreadyActive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::ServantAlreadyActive&
-PortableServer::POA::ServantAlreadyActive::operator= (const PortableServer::POA::ServantAlreadyActive &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::ServantAlreadyActive_ptr
-PortableServer::POA::ServantAlreadyActive::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ServantAlreadyActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ServantAlreadyActive_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ServantAlreadyActive::_alloc (void)
-{
-return new PortableServer::POA::ServantAlreadyActive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ServantAlreadyActive &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ServantAlreadyActive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ServantAlreadyActive *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ServantAlreadyActive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ServantAlreadyActive *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_ServantAlreadyActive, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::ServantAlreadyActive, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_ServantAlreadyActive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::ServantAlreadyActive *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ServantAlreadyActive[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-48, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x532f414f, 0x61767265, 0x6c41746e, 0x64616572, 0x74634179, 0x3a657669, 0x302e31, // repository ID = IDL:PortableServer/POA/ServantAlreadyActive:1.0
-21, 0x76726553, 0x41746e61, 0x6165726c, 0x63417964, 0x65766974, 0xfdfdfd00, // name = ServantAlreadyActive
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_ServantAlreadyActive (CORBA::tk_except, sizeof (_oc_PortableServer_POA_ServantAlreadyActive), (char *) &_oc_PortableServer_POA_ServantAlreadyActive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ServantAlreadyActive = &_tc__tc_PortableServer_POA_ServantAlreadyActive;
-
-// default constructor
-PortableServer::POA::ServantNotActive::ServantNotActive (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_ServantNotActive))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ServantNotActive::~ServantNotActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ServantNotActive::ServantNotActive (const PortableServer::POA::ServantNotActive &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::ServantNotActive&
-PortableServer::POA::ServantNotActive::operator= (const PortableServer::POA::ServantNotActive &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::ServantNotActive_ptr
-PortableServer::POA::ServantNotActive::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ServantNotActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ServantNotActive_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ServantNotActive::_alloc (void)
-{
-return new PortableServer::POA::ServantNotActive;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ServantNotActive &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ServantNotActive, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ServantNotActive *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_ServantNotActive, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ServantNotActive *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_ServantNotActive, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::ServantNotActive, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_ServantNotActive, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::ServantNotActive *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ServantNotActive[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-44, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x532f414f, 0x61767265, 0x6f4e746e, 0x74634174, 0x3a657669, 0x302e31, // repository ID = IDL:PortableServer/POA/ServantNotActive:1.0
-17, 0x76726553, 0x4e746e61, 0x6341746f, 0x65766974, 0xfdfdfd00, // name = ServantNotActive
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_ServantNotActive (CORBA::tk_except, sizeof (_oc_PortableServer_POA_ServantNotActive), (char *) &_oc_PortableServer_POA_ServantNotActive, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ServantNotActive = &_tc__tc_PortableServer_POA_ServantNotActive;
-
-// default constructor
-PortableServer::POA::WrongAdapter::WrongAdapter (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_WrongAdapter))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::WrongAdapter::~WrongAdapter (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::WrongAdapter::WrongAdapter (const PortableServer::POA::WrongAdapter &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::WrongAdapter&
-PortableServer::POA::WrongAdapter::operator= (const PortableServer::POA::WrongAdapter &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::WrongAdapter_ptr
-PortableServer::POA::WrongAdapter::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/WrongAdapter:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::WrongAdapter_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::WrongAdapter::_alloc (void)
-{
-return new PortableServer::POA::WrongAdapter;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::WrongAdapter &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_WrongAdapter, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::WrongAdapter *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_WrongAdapter, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::WrongAdapter *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_WrongAdapter, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::WrongAdapter, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_WrongAdapter, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::WrongAdapter *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_WrongAdapter[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-40, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x572f414f, 0x676e6f72, 0x70616441, 0x3a726574, 0x302e31, // repository ID = IDL:PortableServer/POA/WrongAdapter:1.0
-13, 0x6e6f7257, 0x61644167, 0x72657470, 0xfdfdfd00, // name = WrongAdapter
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_WrongAdapter (CORBA::tk_except, sizeof (_oc_PortableServer_POA_WrongAdapter), (char *) &_oc_PortableServer_POA_WrongAdapter, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_WrongAdapter = &_tc__tc_PortableServer_POA_WrongAdapter;
-
-// default constructor
-PortableServer::POA::WrongPolicy::WrongPolicy (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::POA::_tc_WrongPolicy))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::WrongPolicy::~WrongPolicy (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::WrongPolicy::WrongPolicy (const PortableServer::POA::WrongPolicy &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::POA::WrongPolicy&
-PortableServer::POA::WrongPolicy::operator= (const PortableServer::POA::WrongPolicy &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::POA::WrongPolicy_ptr
-PortableServer::POA::WrongPolicy::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/POA/WrongPolicy:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::WrongPolicy_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::WrongPolicy::_alloc (void)
-{
-return new PortableServer::POA::WrongPolicy;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::WrongPolicy &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_WrongPolicy, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::WrongPolicy *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::POA::_tc_WrongPolicy, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::WrongPolicy *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::POA::_tc_WrongPolicy, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::POA::WrongPolicy, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::POA::_tc_WrongPolicy, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::POA::WrongPolicy *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_POA_WrongPolicy[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-39, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x502f7265, 0x572f414f, 0x676e6f72, 0x696c6f50, 0x313a7963, 0xfd00302e, // repository ID = IDL:PortableServer/POA/WrongPolicy:1.0
-12, 0x6e6f7257, 0x6c6f5067, 0x796369, // name = WrongPolicy
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA_WrongPolicy (CORBA::tk_except, sizeof (_oc_PortableServer_POA_WrongPolicy), (char *) &_oc_PortableServer_POA_WrongPolicy, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::POA::_tc_WrongPolicy = &_tc__tc_PortableServer_POA_WrongPolicy;
-
-CORBA::Boolean PortableServer::POA::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/POA:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_POA[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 27, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f50, 0x4f413a31, 0x2e300000, // repository ID = IDL:PortableServer/POA:1.0
- 4, 0x504f4100, // name = POA,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_POA (CORBA::tk_objref, sizeof (_oc_PortableServer_POA), (char *) &_oc_PortableServer_POA, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_POA = &_tc__tc_PortableServer_POA;
-
-PortableServer::Current_ptr PortableServer::Current::_duplicate (PortableServer::Current_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->AddRef ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::Current_ptr PortableServer::Current::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &env
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::Current::_nil ();
- if (!obj->_is_a ("IDL:PortableServer/Current:1.0", env))
- return PortableServer::Current::_nil ();
- if (!obj->_is_collocated () || !obj->_servant())
- {
- PortableServer::Current_ptr
- new_obj = new PortableServer::Current (obj->_get_parent ()); // construct obj ref using the stub object
- return new_obj;
- } // end of if
-
- STUB_Object *stub = obj->_servant ()->_create_stub (env);
- if (env.exception () != 0)
- return PortableServer::Current::_nil ();
- void* servant = obj->_servant ()->_downcast ("IDL:PortableServer/Current:1.0");
- return new POA_PortableServer::_tao_collocated_Current(
- ACE_reinterpret_cast(POA_PortableServer::Current_ptr, servant),
- stub
- );
-}
-
-PortableServer::Current_ptr PortableServer::Current::_bind (const char *host, CORBA::UShort port, const char *key, CORBA::Environment &env)
-{
- IIOP_Object *data = new IIOP_Object (host, port, key);
- if (!data) return PortableServer::Current::_nil ();
- // create the CORBA level proxy
- CORBA::Object_ptr objref = new CORBA_Object (data);
- if (objref == 0)
- {
- data->Release ();
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return PortableServer::Current::_nil ();
- }
- return PortableServer::Current::_narrow (objref, env);
-}
-
-// default constructor
-PortableServer::Current::NoContext::NoContext (void)
- : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::Current::_tc_NoContext))
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::Current::NoContext::~NoContext (void)
-{
-}
-
-// copy constructor
-PortableServer::Current::NoContext::NoContext (const PortableServer::Current::NoContext &_tao_excp)
- :CORBA_UserException (CORBA::TypeCode::_duplicate (_tao_excp._type ()))
-{
-}
-
-// assignment operator
-PortableServer::Current::NoContext&
-PortableServer::Current::NoContext::operator= (const PortableServer::Current::NoContext &_tao_excp)
-{
-this->type_ = CORBA::TypeCode::_duplicate (_tao_excp._type ());
-return *this;
-}
-
-// narrow
-PortableServer::Current::NoContext_ptr
-PortableServer::Current::NoContext::_narrow (CORBA::Exception *exc)
-{
-if (!ACE_OS::strcmp ("IDL:PortableServer/Current/NoContext:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::Current::NoContext_ptr, exc);
-else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::Current::NoContext::_alloc (void)
-{
-return new PortableServer::Current::NoContext;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::Current::NoContext &_tao_elem) // copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::Current::_tc_NoContext, &_tao_elem, 1, _tao_env);
-}
-void operator<<= (CORBA::Any &_tao_any, PortableServer::Current::NoContext *_tao_elem) // non copying
-{
-CORBA::Environment _tao_env;
-_tao_any.replace (PortableServer::Current::_tc_NoContext, _tao_elem, 0, _tao_env);
-}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::Current::NoContext *&_tao_elem)
-{
-CORBA::Environment _tao_env;
-if (!_tao_any.type ()->equal (PortableServer::Current::_tc_NoContext, _tao_env)) return 0; // not equal
-if (_tao_any.any_owns_data ())
-{
-ACE_NEW_RETURN (_tao_elem, PortableServer::Current::NoContext, 0);
-TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());
-if (stream.decode (PortableServer::Current::_tc_NoContext, _tao_elem, 0, _tao_env)
- == CORBA::TypeCode::TRAVERSE_CONTINUE)
-{
-((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), _tao_elem, 1, _tao_env);
- return 1;
-}
-else
-{
-delete _tao_elem;
-return 0;
-}
-}
-else
-{
-_tao_elem = (PortableServer::Current::NoContext *)_tao_any.value ();
-return 1;
-}
-}
-
-static const CORBA::Long _oc_PortableServer_Current_NoContext[] =
-{
-TAO_ENCAP_BYTE_ORDER, // byte order
-41, 0x3a4c4449, 0x74726f50, 0x656c6261, 0x76726553, 0x432f7265, 0x65727275, 0x4e2f746e, 0x6e6f436f, 0x74786574, 0x302e313a, 0xfdfdfd00, // repository ID = IDL:PortableServer/Current/NoContext:1.0
-10, 0x6f436f4e, 0x7865746e, 0xfdfd0074, // name = NoContext
-0, // member count
-};
-static CORBA::TypeCode _tc__tc_PortableServer_Current_NoContext (CORBA::tk_except, sizeof (_oc_PortableServer_Current_NoContext), (char *) &_oc_PortableServer_Current_NoContext, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::Current::_tc_NoContext = &_tc__tc_PortableServer_Current_NoContext;
-
-PortableServer::POA_ptr PortableServer::Current::get_POA (CORBA::Environment &env)
-{
- env.exception (new CORBA::MARSHAL (CORBA::COMPLETED_NO));
- return PortableServer::POA::_nil ();
-}
-
-PortableServer::ObjectId * PortableServer::Current::get_object_id (CORBA::Environment &env)
-{
- static const TAO_Param_Data PortableServer_Current_get_object_id_paramdata [] =
- {
- {PortableServer::_tc_ObjectId, PARAM_RETURN, sizeof (PortableServer::ObjectId)}
- };
-
- static const TAO_Call_Data PortableServer_Current_get_object_id_calldata =
- {"get_object_id", 1, 1, PortableServer_Current_get_object_id_paramdata, 0, 0};
-
- PortableServer::ObjectId *retval = 0;
- STUB_Object *istub;
-
- if (this->QueryInterface (IID_STUB_Object, (void **)&istub) != TAO_NOERROR)
- {
- env.exception (new CORBA::DATA_CONVERSION (CORBA::COMPLETED_NO));
- return 0;
- }
- this->Release (); // QueryInterface has bumped up our refcount
- istub->do_static_call (env, &PortableServer_Current_get_object_id_calldata, &retval);
- return retval;
-
-}
-
-CORBA::Boolean PortableServer::Current::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:PortableServer/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-static const CORBA::Long _oc_PortableServer_Current[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31, 0x49444c3a, 0x506f7274, 0x61626c65, 0x53657276, 0x65722f43, 0x75727265, 0x6e743a31, 0x2e300000, // repository ID = IDL:PortableServer/Current:1.0
- 8, 0x43757272, 0x656e7400, // name = Current,
-};
-static CORBA::TypeCode _tc__tc_PortableServer_Current (CORBA::tk_objref, sizeof (_oc_PortableServer_Current), (char *) &_oc_PortableServer_Current, CORBA::B_FALSE);
-CORBA::TypeCode_ptr PortableServer::_tc_Current = &_tc__tc_PortableServer_Current;
-
-char *
-PortableServer::ObjectId_to_string (const PortableServer::ObjectId &id)
-{
- return TAO_POA::ObjectId_to_string (id);
-}
-
-CORBA::WChar *
-PortableServer::ObjectId_to_wstring (const PortableServer::ObjectId &id)
-{
- return TAO_POA::ObjectId_to_wstring (id);
-}
-
-PortableServer::ObjectId *
-PortableServer::string_to_ObjectId (const char *id)
-{
- return TAO_POA::string_to_ObjectId (id);
-}
-
-PortableServer::ObjectId *
-PortableServer::wstring_to_ObjectId (const CORBA::WChar *id)
-{
- return TAO_POA::wstring_to_ObjectId (id);
-}