summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-03-25 23:13:15 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-03-25 23:13:15 +0000
commit06e0662f8a50838bb56922c36453bc554bb38597 (patch)
treef06bf0b172b12232b124ac837e0e891a9ba1a06e
parent6b949433935039c34644e0b5cc9e6ca0b4bb627f (diff)
downloadATCD-06e0662f8a50838bb56922c36453bc554bb38597.tar.gz
ChangeLogTag: Mon Mar 24 18:15:51 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
-rw-r--r--TAO/tao/ChangeLog4
-rw-r--r--TAO/tao/Domain/DomainS.cpp363
2 files changed, 186 insertions, 181 deletions
diff --git a/TAO/tao/ChangeLog b/TAO/tao/ChangeLog
index d9038827d1c..796b6b977d7 100644
--- a/TAO/tao/ChangeLog
+++ b/TAO/tao/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 25 17:14:22 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
+
+ * tao/Domain/DomainS.cpp: Fixed compile errors.
+
Tue Mar 25 16:11:39 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Merged with main trunk!
diff --git a/TAO/tao/Domain/DomainS.cpp b/TAO/tao/Domain/DomainS.cpp
index 08e219655e6..9b8a6c1129c 100644
--- a/TAO/tao/Domain/DomainS.cpp
+++ b/TAO/tao/Domain/DomainS.cpp
@@ -20,7 +20,7 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:670
#ifndef _TAO_IDL_ORIG_DOMAINS_CPP_
@@ -35,6 +35,7 @@
#include "tao/Stub.h"
#include "tao/IFR_Client_Adapter.h"
#include "tao/PortableInterceptor.h"
+#include "tao/Profile.h"
#if TAO_HAS_INTERCEPTORS == 1
#include "tao/RequestInfo_Util.h"
#include "tao/PICurrent.h"
@@ -145,7 +146,7 @@ TAO_CORBA_DomainManager_Perfect_Hash_OpTable::lookup (const char *str, unsigned
{"",0},
{"_interface", &POA_CORBA::DomainManager::_interface_skel},
{"",0},
- {"get_domain_policy", &POA_CORBA::DomainManager::get_domain_policy_skel},
+ {"get_domain_policy", &POA_CORBA::DomainManager::get_domain_policy_skel},
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
@@ -182,47 +183,47 @@ public:
const CORBA::PolicyType & policy_type
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual Dynamic::ParameterList * arguments (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual Dynamic::ExceptionList * exceptions (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual CORBA::Any * result (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual char * target_most_derived_interface (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual CORBA::Boolean target_is_a (
const char * id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
void result (::CORBA::Policy_ptr result);
private:
TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy (
const TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy &
);
-
+
void operator= (
const TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy &
);
-
+
private:
POA_CORBA::DomainManager *_tao_impl;
-
+
const CORBA::PolicyType & policy_type_;::CORBA::Policy_ptr _result;
};
@@ -251,15 +252,15 @@ TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::arguments (
Dynamic::ParameterList *parameter_list =
TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
Dynamic::ParameterList_var safe_parameter_list = parameter_list;
parameter_list->length (1);
CORBA::ULong len = 0;
-
+
(*parameter_list)[len].argument <<= policy_type_;
(*parameter_list)[len].mode = CORBA::PARAM_IN;
len++;
-
+
return safe_parameter_list._retn ();
}
@@ -273,11 +274,11 @@ TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::exceptions (
Dynamic::ExceptionList *exception_list =
TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
return exception_list;
}
-CORBA::Any *
+CORBA::Any *
TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::result (
ACE_ENV_SINGLE_ARG_DECL
)
@@ -288,11 +289,11 @@ TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::result (
CORBA::Any *result_any =
TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
CORBA::Any_var safe_result_any = result_any;
-
+
(*result_any) <<= this->_result;
-
+
return safe_result_any._retn ();
}
@@ -316,7 +317,7 @@ TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::target_is_a (
return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER);
}
-void
+void
TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy::result (::CORBA::Policy_ptr result)
{
// Update the result.
@@ -352,7 +353,7 @@ POA_CORBA::_TAO_DomainManager_Strategized_Proxy_Broker::~_TAO_DomainManager_Stra
for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i)
{
delete this->proxy_cache_[i];
-
+
// Hack to prevent bug mentioned in 1204. Refer to 1204
// for details..
this->proxy_cache_[i] = 0;
@@ -368,26 +369,26 @@ POA_CORBA::_TAO_DomainManager_Strategized_Proxy_Broker::select_proxy (
int strategy =
TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (*this->proxy_cache_[strategy]);
-
+
if (this->proxy_cache_[strategy] != 0)
{
return *this->proxy_cache_[strategy];
}
-
+
this->create_proxy (strategy ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (*this->proxy_cache_[strategy]);
-
+
return *this->proxy_cache_[strategy];
}
-void
+void
POA_CORBA::_TAO_DomainManager_Strategized_Proxy_Broker::create_proxy (
int strategy
ACE_ENV_ARG_DECL
)
{
ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_);
-
+
if (this->proxy_cache_[strategy] == 0)
{
switch (strategy)
@@ -400,7 +401,7 @@ POA_CORBA::_TAO_DomainManager_Strategized_Proxy_Broker::create_proxy (
);
ACE_CHECK;
break;
-
+
case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY:
ACE_NEW_THROW_EX (
this->proxy_cache_[strategy],
@@ -409,7 +410,7 @@ POA_CORBA::_TAO_DomainManager_Strategized_Proxy_Broker::create_proxy (
);
ACE_CHECK;
break;
-
+
case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY:
default:
ACE_NEW_THROW_EX (
@@ -440,13 +441,13 @@ CORBA__TAO_DomainManager_Proxy_Broker_Factory_function (CORBA::Object_ptr obj)
int
CORBA__TAO_DomainManager_Proxy_Broker_Factory_Initializer (long)
{
- CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer =
+ CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer =
CORBA__TAO_DomainManager_Proxy_Broker_Factory_function;
-
+
return 0;
}
-static int CORBA__TAO_DomainManager_Proxy_Broker_Stub_Factory_Initializer_Scarecrow =
+static int CORBA__TAO_DomainManager_Proxy_Broker_Stub_Factory_Initializer_Scarecrow =
CORBA__TAO_DomainManager_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, CORBA__TAO_DomainManager_Proxy_Broker_Factory_Initializer));
@@ -462,7 +463,7 @@ POA_CORBA::_TAO_DomainManager_ThruPOA_Proxy_Impl::_TAO_DomainManager_ThruPOA_Pro
// ThruPOA Implementation of the IDL interface methods
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67
::CORBA::Policy_ptr POA_CORBA::_TAO_DomainManager_ThruPOA_Proxy_Impl::get_domain_policy (
@@ -481,25 +482,25 @@ POA_CORBA::_TAO_DomainManager_ThruPOA_Proxy_Impl::_TAO_DomainManager_ThruPOA_Pro
);
CORBA::Object_var forward_to;
servant_upcall.prepare_for_upcall (
- _collocated_tao_target_->_object_key (),
+ _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (),
"get_domain_policy",
forward_to.out ()
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK_RETURN (_tao_retval._retn ());
-
+
servant_upcall.pre_invoke_collocated_request (
ACE_ENV_SINGLE_ARG_PARAMETER
);
ACE_CHECK_RETURN (_tao_retval._retn ());
-
+
return ACE_reinterpret_cast (
POA_CORBA::DomainManager_ptr,
servant_upcall.servant ()->_downcast (
"IDL:omg.org/CORBA/DomainManager:1.0"
)
)->get_domain_policy (
-
+
policy_type
ACE_ENV_ARG_PARAMETER
);
@@ -525,11 +526,11 @@ POA_CORBA::_TAO_DomainManager_Direct_Proxy_Impl::_TAO_DomainManager_Direct_Proxy
POA_CORBA::DomainManager_ptr,
_collocated_tao_target_->_servant ()->_downcast ("IDL:omg.org/CORBA/DomainManager:1.0")
)->get_domain_policy (
-
+
policy_type
ACE_ENV_ARG_PARAMETER
);
-
+
}
@@ -538,7 +539,7 @@ POA_CORBA::_TAO_DomainManager_Direct_Proxy_Impl::_TAO_DomainManager_Direct_Proxy
///////////////////////////////////////////////////////////////////////
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:98
POA_CORBA::DomainManager::DomainManager (void)
@@ -554,7 +555,7 @@ POA_CORBA::DomainManager::~DomainManager (void)
{
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100
void POA_CORBA::DomainManager::get_domain_policy_skel (
@@ -572,7 +573,7 @@ void POA_CORBA::DomainManager::get_domain_policy_skel (
);
::CORBA::Policy_var _tao_retval;
CORBA::PolicyType policy_type;
-
+
if (!(
(_tao_in >> policy_type)
))
@@ -581,47 +582,47 @@ void POA_CORBA::DomainManager::get_domain_policy_skel (
#if (TAO_HAS_INTERCEPTORS == 1)
TAO_Object_Adapter::Servant_Upcall *_tao_upcall =
ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall);
-
+
TAO_ServerRequestInterceptor_Adapter _tao_vfr (
_tao_server_request.orb_core ()->server_request_interceptors (),
_tao_server_request.interceptor_count ()
);
-
+
TAO_ServerRequestInfo_CORBA_DomainManager_get_domain_policy _tao_ri (
_tao_server_request,
_tao_upcall,
_tao_impl,
-
+
policy_type
ACE_ENV_ARG_PARAMETER
);
-
+
ACE_TRY
{
{
TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (),
1 /* Copy TSC to RSC */);
-
+
_tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (!_tao_vfr.location_forwarded ())
{
-
+
#endif /* TAO_HAS_INTERCEPTORS */
- _tao_retval =
+ _tao_retval =
_tao_impl->get_domain_policy (
-
+
policy_type
ACE_ENV_ARG_PARAMETER
);
TAO_INTERCEPTOR_CHECK;
#if (TAO_HAS_INTERCEPTORS == 1)
-
+
}
}
-
+
if (!_tao_vfr.location_forwarded ())
{
::CORBA::Policy_ptr _tao_retval_info = _tao_retval._retn ();
@@ -640,62 +641,62 @@ void POA_CORBA::DomainManager::get_domain_policy_skel (
ACE_ENV_ARG_PARAMETER
);
ACE_TRY_CHECK;
-
+
PortableInterceptor::ReplyStatus _tao_status =
_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION
|| _tao_status == PortableInterceptor::USER_EXCEPTION)
{
ACE_RE_THROW;
}
}
-
+
# if defined (ACE_HAS_EXCEPTIONS) \
&& defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS)
ACE_CATCHALL
{
CORBA::UNKNOWN ex;
-
+
_tao_ri.exception (&ex);
_tao_vfr.send_exception (
&_tao_ri
ACE_ENV_ARG_PARAMETER
);
ACE_TRY_CHECK;
-
+
PortableInterceptor::ReplyStatus _tao_status =
_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION)
ACE_TRY_THROW (ex);
}
# endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */
-
+
ACE_ENDTRY;
ACE_CHECK;
#endif /* TAO_HAS_INTERCEPTORS */
-
+
_tao_server_request.init_reply ();
-
+
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(
(_tao_out << _tao_retval.in ())
))
ACE_THROW (CORBA::MARSHAL ());
-
+
// In case _tao_servant_upcall is not used in this function
ACE_UNUSED_ARG (_tao_servant_upcall);
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:163
void POA_CORBA::DomainManager::_is_a_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -705,22 +706,22 @@ void POA_CORBA::DomainManager::_is_a_skel (
POA_CORBA::DomainManager *_tao_impl = (POA_CORBA::DomainManager *) _tao_servant;
CORBA::Boolean _tao_retval = 0;
CORBA::String_var value;
-
+
if (!(_tao_in >> value.out ()))
ACE_THROW (CORBA::MARSHAL ());
-
+
_tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
void POA_CORBA::DomainManager::_non_existent_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -730,16 +731,16 @@ void POA_CORBA::DomainManager::_non_existent_skel (
CORBA::Boolean _tao_retval =
_tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
void POA_CORBA::DomainManager::_interface_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -748,27 +749,27 @@ void POA_CORBA::DomainManager::_interface_skel (
POA_CORBA::DomainManager *_tao_impl = (POA_CORBA::DomainManager *) _tao_servant;
CORBA::InterfaceDef_ptr _tao_retval = 0;
CORBA::Boolean _tao_result = 0;
-
+
TAO_IFR_Client_Adapter *_tao_adapter =
ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance (
TAO_ORB_Core::ifr_client_adapter_name ()
);
-
+
if (_tao_adapter == 0)
{
ACE_THROW (CORBA::INTF_REPOS ());
}
-
+
ACE_TRY
{
- _tao_retval =
+ _tao_retval =
_tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
_tao_server_request.init_reply ();
-
+
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
_tao_result =
_tao_adapter->interfacedef_cdr_insert (
_tao_out,
@@ -780,7 +781,7 @@ void POA_CORBA::DomainManager::_interface_skel (
_tao_adapter->dispose (_tao_retval);
}
ACE_ENDTRY;
-
+
if (_tao_result == 0)
{
ACE_THROW (CORBA::MARSHAL ());
@@ -788,7 +789,7 @@ void POA_CORBA::DomainManager::_interface_skel (
}
void POA_CORBA::DomainManager::_component_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_object_reference,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -798,10 +799,10 @@ void POA_CORBA::DomainManager::_component_skel (
CORBA::Object_var _tao_retval =
_tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << _tao_retval._retn ()))
ACE_THROW (CORBA::MARSHAL ());
}
@@ -839,13 +840,13 @@ void* POA_CORBA::DomainManager::_downcast (
{
return ACE_static_cast (POA_CORBA::DomainManager_ptr, this);
}
-
+
if (ACE_OS::strcmp (logical_type_id,
"IDL:omg.org/CORBA/Object:1.0") == 0)
{
return ACE_static_cast(PortableServer::Servant, this);
}
-
+
return 0;
}
@@ -877,10 +878,10 @@ POA_CORBA::DomainManager::_this (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
TAO_Stub_Auto_Ptr safe_stub (stub);
CORBA::Object_ptr tmp = CORBA::Object::_nil ();
-
+
if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ())
{
ACE_NEW_RETURN (
@@ -905,7 +906,7 @@ POA_CORBA::DomainManager::_this (ACE_ENV_SINGLE_ARG_DECL)
0
);
}
-
+
CORBA::Object_var obj = tmp;
(void) safe_stub.release ();
return ::CORBA::DomainManager::_unchecked_narrow (obj.in ());
@@ -993,10 +994,10 @@ TAO_CORBA_ConstructionPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsi
static const class TAO_operation_db_entry wordlist[] =
{
{"",0},{"",0},{"",0},{"",0},
- {"copy", &POA_CORBA::ConstructionPolicy::copy_skel},
+ {"copy", &POA_CORBA::ConstructionPolicy::copy_skel},
{"_is_a", &POA_CORBA::ConstructionPolicy::_is_a_skel},
{"",0},
- {"destroy", &POA_CORBA::ConstructionPolicy::destroy_skel},
+ {"destroy", &POA_CORBA::ConstructionPolicy::destroy_skel},
{"",0},{"",0},
{"_component", &POA_CORBA::ConstructionPolicy::_component_skel},
{"",0},{"",0},
@@ -1004,9 +1005,9 @@ TAO_CORBA_ConstructionPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsi
{"",0},
{"_interface", &POA_CORBA::ConstructionPolicy::_interface_skel},
{"",0},{"",0},{"",0},
- {"make_domain_manager", &POA_CORBA::ConstructionPolicy::make_domain_manager_skel},
+ {"make_domain_manager", &POA_CORBA::ConstructionPolicy::make_domain_manager_skel},
{"",0},
- {"_get_policy_type", &POA_CORBA::ConstructionPolicy::_get_policy_type_skel},
+ {"_get_policy_type", &POA_CORBA::ConstructionPolicy::_get_policy_type_skel},
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
@@ -1044,45 +1045,45 @@ public:
const CORBA::Boolean & constr_policy
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual Dynamic::ParameterList * arguments (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual Dynamic::ExceptionList * exceptions (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual CORBA::Any * result (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual char * target_most_derived_interface (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual CORBA::Boolean target_is_a (
const char * id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
private:
TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager (
const TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager &
);
-
+
void operator= (
const TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager &
);
-
+
private:
POA_CORBA::ConstructionPolicy *_tao_impl;
-
+
CORBA::InterfaceDef_ptr object_type_;
const CORBA::Boolean & constr_policy_;
};
@@ -1114,19 +1115,19 @@ TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager::arguments (
Dynamic::ParameterList *parameter_list =
TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
Dynamic::ParameterList_var safe_parameter_list = parameter_list;
parameter_list->length (2);
CORBA::ULong len = 0;
-
+
(*parameter_list)[len].argument <<= this->object_type_;
(*parameter_list)[len].mode = CORBA::PARAM_IN;
len++;
-
+
(*parameter_list)[len].argument <<= CORBA::Any::from_boolean (this->constr_policy_);
(*parameter_list)[len].mode = CORBA::PARAM_IN;
len++;
-
+
return safe_parameter_list._retn ();
}
@@ -1140,11 +1141,11 @@ TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager::exceptions (
Dynamic::ExceptionList *exception_list =
TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
return exception_list;
}
-CORBA::Any *
+CORBA::Any *
TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager::result (
ACE_ENV_SINGLE_ARG_DECL
)
@@ -1155,7 +1156,7 @@ TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager::result (
CORBA::Any *result_any =
TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
return result_any;
}
@@ -1208,7 +1209,7 @@ POA_CORBA::_TAO_ConstructionPolicy_Strategized_Proxy_Broker::~_TAO_ConstructionP
for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i)
{
delete this->proxy_cache_[i];
-
+
// Hack to prevent bug mentioned in 1204. Refer to 1204
// for details..
this->proxy_cache_[i] = 0;
@@ -1224,26 +1225,26 @@ POA_CORBA::_TAO_ConstructionPolicy_Strategized_Proxy_Broker::select_proxy (
int strategy =
TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (*this->proxy_cache_[strategy]);
-
+
if (this->proxy_cache_[strategy] != 0)
{
return *this->proxy_cache_[strategy];
}
-
+
this->create_proxy (strategy ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (*this->proxy_cache_[strategy]);
-
+
return *this->proxy_cache_[strategy];
}
-void
+void
POA_CORBA::_TAO_ConstructionPolicy_Strategized_Proxy_Broker::create_proxy (
int strategy
ACE_ENV_ARG_DECL
)
{
ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_);
-
+
if (this->proxy_cache_[strategy] == 0)
{
switch (strategy)
@@ -1256,7 +1257,7 @@ POA_CORBA::_TAO_ConstructionPolicy_Strategized_Proxy_Broker::create_proxy (
);
ACE_CHECK;
break;
-
+
case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY:
ACE_NEW_THROW_EX (
this->proxy_cache_[strategy],
@@ -1265,7 +1266,7 @@ POA_CORBA::_TAO_ConstructionPolicy_Strategized_Proxy_Broker::create_proxy (
);
ACE_CHECK;
break;
-
+
case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY:
default:
ACE_NEW_THROW_EX (
@@ -1296,13 +1297,13 @@ CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_function (CORBA::Object_ptr o
int
CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_Initializer (long)
{
- CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_function_pointer =
+ CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_function_pointer =
CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_function;
-
+
return 0;
}
-static int CORBA__TAO_ConstructionPolicy_Proxy_Broker_Stub_Factory_Initializer_Scarecrow =
+static int CORBA__TAO_ConstructionPolicy_Proxy_Broker_Stub_Factory_Initializer_Scarecrow =
CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_Initializer));
@@ -1318,7 +1319,7 @@ POA_CORBA::_TAO_ConstructionPolicy_ThruPOA_Proxy_Impl::_TAO_ConstructionPolicy_T
// ThruPOA Implementation of the IDL interface methods
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67
void POA_CORBA::_TAO_ConstructionPolicy_ThruPOA_Proxy_Impl::make_domain_manager (
@@ -1331,31 +1332,31 @@ void POA_CORBA::_TAO_ConstructionPolicy_ThruPOA_Proxy_Impl::make_domain_manager
CORBA::SystemException
))
{
-
+
TAO_Object_Adapter::Servant_Upcall servant_upcall (
_collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core ()
);
CORBA::Object_var forward_to;
servant_upcall.prepare_for_upcall (
- _collocated_tao_target_->_object_key (),
+ _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (),
"make_domain_manager",
forward_to.out ()
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
-
+
servant_upcall.pre_invoke_collocated_request (
ACE_ENV_SINGLE_ARG_PARAMETER
);
ACE_CHECK;
-
+
ACE_reinterpret_cast (
POA_CORBA::ConstructionPolicy_ptr,
servant_upcall.servant ()->_downcast (
"IDL:omg.org/CORBA/ConstructionPolicy:1.0"
)
)->make_domain_manager (
-
+
object_type,
constr_policy
ACE_ENV_ARG_PARAMETER
@@ -1383,12 +1384,12 @@ void POA_CORBA::_TAO_ConstructionPolicy_Direct_Proxy_Impl::make_domain_manager
POA_CORBA::ConstructionPolicy_ptr,
_collocated_tao_target_->_servant ()->_downcast ("IDL:omg.org/CORBA/ConstructionPolicy:1.0")
)->make_domain_manager (
-
+
object_type,
constr_policy
ACE_ENV_ARG_PARAMETER
);
-
+
}
@@ -1397,7 +1398,7 @@ void POA_CORBA::_TAO_ConstructionPolicy_Direct_Proxy_Impl::make_domain_manager
///////////////////////////////////////////////////////////////////////
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:98
POA_CORBA::ConstructionPolicy::ConstructionPolicy (void)
@@ -1414,7 +1415,7 @@ POA_CORBA::ConstructionPolicy::~ConstructionPolicy (void)
{
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100
void POA_CORBA::ConstructionPolicy::make_domain_manager_skel (
@@ -1431,10 +1432,10 @@ void POA_CORBA::ConstructionPolicy::make_domain_manager_skel (
_tao_servant
);
_tao_server_request.argument_flag (0);
-
+
CORBA::InterfaceDef_var object_type;
CORBA::Boolean constr_policy;
-
+
if (!(
(_tao_in >> object_type.out ()) &&
(_tao_in >> CORBA::Any::to_boolean (constr_policy))
@@ -1444,51 +1445,51 @@ void POA_CORBA::ConstructionPolicy::make_domain_manager_skel (
#if (TAO_HAS_INTERCEPTORS == 1)
TAO_Object_Adapter::Servant_Upcall *_tao_upcall =
ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall);
-
+
TAO_ServerRequestInterceptor_Adapter _tao_vfr (
_tao_server_request.orb_core ()->server_request_interceptors (),
_tao_server_request.interceptor_count ()
);
-
+
TAO_ServerRequestInfo_CORBA_ConstructionPolicy_make_domain_manager _tao_ri (
_tao_server_request,
_tao_upcall,
_tao_impl,
-
+
object_type.in (),
-
+
constr_policy
ACE_ENV_ARG_PARAMETER
);
-
+
ACE_TRY
{
{
TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (),
1 /* Copy TSC to RSC */);
-
+
_tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (!_tao_vfr.location_forwarded ())
{
-
+
#endif /* TAO_HAS_INTERCEPTORS */
-
+
_tao_impl->make_domain_manager (
-
+
object_type.in (),
-
+
constr_policy
ACE_ENV_ARG_PARAMETER
);
TAO_INTERCEPTOR_CHECK;
#if (TAO_HAS_INTERCEPTORS == 1)
-
+
}
}
-
+
if (!_tao_vfr.location_forwarded ())
{
_tao_ri.reply_status (PortableInterceptor::SUCCESSFUL);
@@ -1504,55 +1505,55 @@ void POA_CORBA::ConstructionPolicy::make_domain_manager_skel (
ACE_ENV_ARG_PARAMETER
);
ACE_TRY_CHECK;
-
+
PortableInterceptor::ReplyStatus _tao_status =
_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION
|| _tao_status == PortableInterceptor::USER_EXCEPTION)
{
ACE_RE_THROW;
}
}
-
+
# if defined (ACE_HAS_EXCEPTIONS) \
&& defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS)
ACE_CATCHALL
{
CORBA::UNKNOWN ex;
-
+
_tao_ri.exception (&ex);
_tao_vfr.send_exception (
&_tao_ri
ACE_ENV_ARG_PARAMETER
);
ACE_TRY_CHECK;
-
+
PortableInterceptor::ReplyStatus _tao_status =
_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION)
ACE_TRY_THROW (ex);
}
# endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */
-
+
ACE_ENDTRY;
ACE_CHECK;
#endif /* TAO_HAS_INTERCEPTORS */
-
+
_tao_server_request.init_reply ();
-
+
// In case _tao_servant_upcall is not used in this function
ACE_UNUSED_ARG (_tao_servant_upcall);
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:163
void POA_CORBA::ConstructionPolicy::_is_a_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -1562,22 +1563,22 @@ void POA_CORBA::ConstructionPolicy::_is_a_skel (
POA_CORBA::ConstructionPolicy *_tao_impl = (POA_CORBA::ConstructionPolicy *) _tao_servant;
CORBA::Boolean _tao_retval = 0;
CORBA::String_var value;
-
+
if (!(_tao_in >> value.out ()))
ACE_THROW (CORBA::MARSHAL ());
-
+
_tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
void POA_CORBA::ConstructionPolicy::_non_existent_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -1587,16 +1588,16 @@ void POA_CORBA::ConstructionPolicy::_non_existent_skel (
CORBA::Boolean _tao_retval =
_tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
void POA_CORBA::ConstructionPolicy::_interface_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_servant,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -1605,27 +1606,27 @@ void POA_CORBA::ConstructionPolicy::_interface_skel (
POA_CORBA::ConstructionPolicy *_tao_impl = (POA_CORBA::ConstructionPolicy *) _tao_servant;
CORBA::InterfaceDef_ptr _tao_retval = 0;
CORBA::Boolean _tao_result = 0;
-
+
TAO_IFR_Client_Adapter *_tao_adapter =
ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance (
TAO_ORB_Core::ifr_client_adapter_name ()
);
-
+
if (_tao_adapter == 0)
{
ACE_THROW (CORBA::INTF_REPOS ());
}
-
+
ACE_TRY
{
- _tao_retval =
+ _tao_retval =
_tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
_tao_server_request.init_reply ();
-
+
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
_tao_result =
_tao_adapter->interfacedef_cdr_insert (
_tao_out,
@@ -1637,7 +1638,7 @@ void POA_CORBA::ConstructionPolicy::_interface_skel (
_tao_adapter->dispose (_tao_retval);
}
ACE_ENDTRY;
-
+
if (_tao_result == 0)
{
ACE_THROW (CORBA::MARSHAL ());
@@ -1645,7 +1646,7 @@ void POA_CORBA::ConstructionPolicy::_interface_skel (
}
void POA_CORBA::ConstructionPolicy::_component_skel (
- TAO_ServerRequest &_tao_server_request,
+ TAO_ServerRequest &_tao_server_request,
void * _tao_object_reference,
void * /* Servant_Upcall */
ACE_ENV_ARG_DECL
@@ -1655,10 +1656,10 @@ void POA_CORBA::ConstructionPolicy::_component_skel (
CORBA::Object_var _tao_retval =
_tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
-
+
_tao_server_request.init_reply ();
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
-
+
if (!(_tao_out << _tao_retval._retn ()))
ACE_THROW (CORBA::MARSHAL ());
}
@@ -1700,19 +1701,19 @@ void* POA_CORBA::ConstructionPolicy::_downcast (
{
return ACE_static_cast (POA_CORBA::ConstructionPolicy_ptr, this);
}
-
+
if (ACE_OS::strcmp (logical_type_id,
"IDL:omg.org/CORBA/Policy:1.0") == 0)
{
return ACE_static_cast (POA_CORBA::Policy_ptr, this);
}
-
+
if (ACE_OS::strcmp (logical_type_id,
"IDL:omg.org/CORBA/Object:1.0") == 0)
{
return ACE_static_cast(PortableServer::Servant, this);
}
-
+
return 0;
}
@@ -1744,10 +1745,10 @@ POA_CORBA::ConstructionPolicy::_this (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
+
TAO_Stub_Auto_Ptr safe_stub (stub);
CORBA::Object_ptr tmp = CORBA::Object::_nil ();
-
+
if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ())
{
ACE_NEW_RETURN (
@@ -1772,7 +1773,7 @@ POA_CORBA::ConstructionPolicy::_this (ACE_ENV_SINGLE_ARG_DECL)
0
);
}
-
+
CORBA::Object_var obj = tmp;
(void) safe_stub.release ();
return ::CORBA::ConstructionPolicy::_unchecked_narrow (obj.in ());