diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-07-15 07:12:23 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-07-15 07:12:23 +0000 |
commit | 2281118bc17bba31e1c40ae569f26dc467331a2c (patch) | |
tree | 3a1c89a29f46e9f16bc90bb83706d54df27e66d8 | |
parent | 1019edf0ecfb4821e3eba95a8528582f13ab0986 (diff) | |
download | ATCD-2281118bc17bba31e1c40ae569f26dc467331a2c.tar.gz |
Fri Jul 15 07:11:02 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* tao/IFR_Client/IFR_Client_Adapter_Impl.h:
* tao/IFR_Client/IFR_Client_Adapter_Impl.cpp:
Layout changes, removed hardcrafted arg_trait
-rw-r--r-- | TAO/ChangeLog | 6 | ||||
-rw-r--r-- | TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp | 61 | ||||
-rw-r--r-- | TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h | 23 |
3 files changed, 25 insertions, 65 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index b48c098f928..27c3a424a78 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 15 07:11:02 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl> + + * tao/IFR_Client/IFR_Client_Adapter_Impl.h: + * tao/IFR_Client/IFR_Client_Adapter_Impl.cpp: + Layout changes, removed hardcrafted arg_trait + Thu Jul 14 19:49:02 UTC 2011 Jeff Parsons <j.parsons@vanderbilt.edu> * tao/PolicyC.cpp: diff --git a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp index 8cf76e4d536..2c9da81e5e6 100644 --- a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp +++ b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp @@ -13,22 +13,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -namespace TAO -{ - template<> - class TAO_IFR_Client_Export Arg_Traits<CORBA::InterfaceDef> - : public - Object_Arg_Traits_T< - CORBA::InterfaceDef_ptr, - CORBA::InterfaceDef_var, - CORBA::InterfaceDef_out, - TAO::Objref_Traits<CORBA::InterfaceDef>, - TAO::Any_Insert_Policy_Stream - > - { - }; -} - TAO_IFR_Client_Adapter_Impl::~TAO_IFR_Client_Adapter_Impl (void) { } @@ -36,8 +20,7 @@ TAO_IFR_Client_Adapter_Impl::~TAO_IFR_Client_Adapter_Impl (void) CORBA::Boolean TAO_IFR_Client_Adapter_Impl::interfacedef_cdr_insert ( TAO_OutputCDR &cdr, - CORBA::InterfaceDef_ptr object_type - ) + CORBA::InterfaceDef_ptr object_type) { return cdr << object_type; } @@ -45,16 +28,13 @@ TAO_IFR_Client_Adapter_Impl::interfacedef_cdr_insert ( void TAO_IFR_Client_Adapter_Impl::interfacedef_any_insert ( CORBA::Any *any, - CORBA::InterfaceDef_ptr object_type - ) + CORBA::InterfaceDef_ptr object_type) { (*any) <<= object_type; } void -TAO_IFR_Client_Adapter_Impl::dispose ( - CORBA::InterfaceDef_ptr orphan - ) +TAO_IFR_Client_Adapter_Impl::dispose (CORBA::InterfaceDef_ptr orphan) { ::CORBA::release (orphan); } @@ -62,13 +42,10 @@ TAO_IFR_Client_Adapter_Impl::dispose ( CORBA::InterfaceDef_ptr TAO_IFR_Client_Adapter_Impl::get_interface ( CORBA::ORB_ptr orb, - const char *repo_id - - ) + const char *repo_id) { CORBA::Object_var obj = - orb->resolve_initial_references ("InterfaceRepository" - ); + orb->resolve_initial_references ("InterfaceRepository"); if (CORBA::is_nil (obj.in ())) { @@ -84,8 +61,7 @@ TAO_IFR_Client_Adapter_Impl::get_interface ( throw ::CORBA::INTF_REPOS (); } - CORBA::Contained_var result = repo->lookup_id (repo_id - ); + CORBA::Contained_var result = repo->lookup_id (repo_id); if (CORBA::is_nil (result.in ())) { @@ -93,16 +69,13 @@ TAO_IFR_Client_Adapter_Impl::get_interface ( } else { - return CORBA::InterfaceDef::_narrow (result.in () - ); + return CORBA::InterfaceDef::_narrow (result.in ()); } } CORBA::InterfaceDef_ptr TAO_IFR_Client_Adapter_Impl::get_interface_remote ( - CORBA::Object_ptr target - - ) + CORBA::Object_ptr target) { TAO::Arg_Traits<CORBA::InterfaceDef>::ret_val _tao_retval; @@ -117,8 +90,7 @@ TAO_IFR_Client_Adapter_Impl::get_interface_remote ( 1, "_interface", 10, - 0 - ); + 0); try { @@ -137,19 +109,14 @@ void TAO_IFR_Client_Adapter_Impl::create_operation_list ( CORBA::ORB_ptr orb, CORBA::OperationDef_ptr opDef, - CORBA::NVList_ptr &result - - ) + CORBA::NVList_ptr &result) { // Create an empty NVList. - orb->create_list (0, - result - ); + orb->create_list (0, result); // Get the parameters (if any) from the OperationDef, and for each // parameter add a corresponding entry to the result. - CORBA::ParDescriptionSeq_var params = - opDef->params (); + CORBA::ParDescriptionSeq_var params = opDef->params (); CORBA::ULong paramCount = params->length (); @@ -180,9 +147,7 @@ TAO_IFR_Client_Adapter_Impl::create_operation_list ( } // Add an argument to the NVList. - result->add_value (params[i].name.in (), - value, - flags); + result->add_value (params[i].name.in (), value, flags); } } diff --git a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h index 5cca998b2ea..b1dcfe1e2f8 100644 --- a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h +++ b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h @@ -45,36 +45,26 @@ public: virtual CORBA::Boolean interfacedef_cdr_insert ( TAO_OutputCDR &cdr, - CORBA::InterfaceDef_ptr object_type - ); + CORBA::InterfaceDef_ptr object_type); virtual void interfacedef_any_insert ( CORBA::Any *any, - CORBA::InterfaceDef_ptr object_type - ); + CORBA::InterfaceDef_ptr object_type); - virtual void dispose ( - CORBA::InterfaceDef_ptr orphan - ); + virtual void dispose (CORBA::InterfaceDef_ptr orphan); virtual CORBA::InterfaceDef_ptr get_interface ( CORBA::ORB_ptr orb, - const char *repo_id - - ); + const char *repo_id); virtual CORBA::InterfaceDef_ptr get_interface_remote ( - CORBA::Object_ptr target - - ); + CORBA::Object_ptr target); #if (TAO_HAS_MINIMUM_CORBA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) virtual void create_operation_list ( CORBA::ORB_ptr orb, CORBA::OperationDef_ptr, - CORBA::NVList_ptr& - - ); + CORBA::NVList_ptr&); #endif /*TAO_HAS_MINIMUM_CORBA*/ // Used to force the initialization of the ORB code. @@ -90,7 +80,6 @@ ACE_STATIC_SVC_DECLARE (TAO_IFR_Client_Adapter_Impl) ACE_FACTORY_DECLARE (TAO_IFR_Client, TAO_IFR_Client_Adapter_Impl) TAO_END_VERSIONED_NAMESPACE_DECL - #include /**/ "ace/post.h" #endif /* TAO_IFR_CLIENT_ADAPTER_IMPL_H */ |