diff options
Diffstat (limited to 'TAO/orbsvcs/IFR_Service/IFR_BaseS_T.i')
-rw-r--r-- | TAO/orbsvcs/IFR_Service/IFR_BaseS_T.i | 1232 |
1 files changed, 1232 insertions, 0 deletions
diff --git a/TAO/orbsvcs/IFR_Service/IFR_BaseS_T.i b/TAO/orbsvcs/IFR_Service/IFR_BaseS_T.i new file mode 100644 index 00000000000..2dd1632a3b6 --- /dev/null +++ b/TAO/orbsvcs/IFR_Service/IFR_BaseS_T.i @@ -0,0 +1,1232 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +#if defined (ACE_HAS_USING_KEYWORD) + +template <class T> ACE_INLINE +POA_CORBA_IRObject_tie<T>::POA_CORBA_IRObject_tie (T &t) + : ptr_ (&t), + poa_ (PortableServer::POA::_nil ()), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_IRObject_tie<T>::POA_CORBA_IRObject_tie (T &t, PortableServer::POA_ptr poa) + : ptr_ (&t), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_IRObject_tie<T>::POA_CORBA_IRObject_tie (T *tp, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_nil ()), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_IRObject_tie<T>::POA_CORBA_IRObject_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_IRObject_tie<T>::~POA_CORBA_IRObject_tie (void) +{ + if (this->rel_) delete this->ptr_; +} + +template <class T> ACE_INLINE T * +POA_CORBA_IRObject_tie<T>::_tied_object (void) +{ + return this->ptr_; +} + +template <class T> ACE_INLINE void +POA_CORBA_IRObject_tie<T>::_tied_object (T &obj) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = &obj; + this->rel_ = 0; +} + +template <class T> ACE_INLINE void +POA_CORBA_IRObject_tie<T>::_tied_object (T *obj, CORBA::Boolean release) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = obj; + this->rel_ = release; +} + +template <class T> ACE_INLINE CORBA::Boolean +POA_CORBA_IRObject_tie<T>::_is_owner (void) +{ + return this->rel_; +} + +template <class T> ACE_INLINE void +POA_CORBA_IRObject_tie<T>::_is_owner (CORBA::Boolean b) +{ + this->rel_ = b; +} + +template <class T> ACE_INLINE PortableServer::POA_ptr +POA_CORBA_IRObject_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL) +{ + if (!CORBA::is_nil (this->poa_.in ())) + return PortableServer::POA::_duplicate (this->poa_.in ()); + + return this->POA_CORBA_IRObject::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +template <class T> ACE_INLINE +CORBA::DefinitionKind POA_CORBA_IRObject_tie<T>::def_kind ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->def_kind ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_IRObject_tie<T>::destroy ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->destroy ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +POA_CORBA_Contained_tie<T>::POA_CORBA_Contained_tie (T &t) + : ptr_ (&t), + poa_ (PortableServer::POA::_nil ()), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_Contained_tie<T>::POA_CORBA_Contained_tie (T &t, PortableServer::POA_ptr poa) + : ptr_ (&t), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_Contained_tie<T>::POA_CORBA_Contained_tie (T *tp, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_nil ()), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_Contained_tie<T>::POA_CORBA_Contained_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_Contained_tie<T>::~POA_CORBA_Contained_tie (void) +{ + if (this->rel_) delete this->ptr_; +} + +template <class T> ACE_INLINE T * +POA_CORBA_Contained_tie<T>::_tied_object (void) +{ + return this->ptr_; +} + +template <class T> ACE_INLINE void +POA_CORBA_Contained_tie<T>::_tied_object (T &obj) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = &obj; + this->rel_ = 0; +} + +template <class T> ACE_INLINE void +POA_CORBA_Contained_tie<T>::_tied_object (T *obj, CORBA::Boolean release) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = obj; + this->rel_ = release; +} + +template <class T> ACE_INLINE CORBA::Boolean +POA_CORBA_Contained_tie<T>::_is_owner (void) +{ + return this->rel_; +} + +template <class T> ACE_INLINE void +POA_CORBA_Contained_tie<T>::_is_owner (CORBA::Boolean b) +{ + this->rel_ = b; +} + +template <class T> ACE_INLINE PortableServer::POA_ptr +POA_CORBA_Contained_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL) +{ + if (!CORBA::is_nil (this->poa_.in ())) + return PortableServer::POA::_duplicate (this->poa_.in ()); + + return this->POA_CORBA_Contained::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +template <class T> ACE_INLINE +char * POA_CORBA_Contained_tie<T>::id ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->id ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Contained_tie<T>::id ( + const char * id + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->id ( +id + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_Contained_tie<T>::name ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->name ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Contained_tie<T>::name ( + const char * name + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->name ( +name + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_Contained_tie<T>::version ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->version ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Contained_tie<T>::version ( + const char * version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->version ( +version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Container_ptr POA_CORBA_Contained_tie<T>::defined_in ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->defined_in ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_Contained_tie<T>::absolute_name ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->absolute_name ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Repository_ptr POA_CORBA_Contained_tie<T>::containing_repository ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->containing_repository ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Contained::Description * POA_CORBA_Contained_tie<T>::describe ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->describe ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Contained_tie<T>::move ( + CORBA_Container_ptr new_container, + const char * new_name, + const char * new_version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->move ( +new_container, + new_name, + new_version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA::DefinitionKind POA_CORBA_Contained_tie<T>::def_kind ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->def_kind ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Contained_tie<T>::destroy ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->destroy ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +POA_CORBA_Container_tie<T>::POA_CORBA_Container_tie (T &t) + : ptr_ (&t), + poa_ (PortableServer::POA::_nil ()), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_Container_tie<T>::POA_CORBA_Container_tie (T &t, PortableServer::POA_ptr poa) + : ptr_ (&t), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_Container_tie<T>::POA_CORBA_Container_tie (T *tp, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_nil ()), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_Container_tie<T>::POA_CORBA_Container_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_Container_tie<T>::~POA_CORBA_Container_tie (void) +{ + if (this->rel_) delete this->ptr_; +} + +template <class T> ACE_INLINE T * +POA_CORBA_Container_tie<T>::_tied_object (void) +{ + return this->ptr_; +} + +template <class T> ACE_INLINE void +POA_CORBA_Container_tie<T>::_tied_object (T &obj) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = &obj; + this->rel_ = 0; +} + +template <class T> ACE_INLINE void +POA_CORBA_Container_tie<T>::_tied_object (T *obj, CORBA::Boolean release) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = obj; + this->rel_ = release; +} + +template <class T> ACE_INLINE CORBA::Boolean +POA_CORBA_Container_tie<T>::_is_owner (void) +{ + return this->rel_; +} + +template <class T> ACE_INLINE void +POA_CORBA_Container_tie<T>::_is_owner (CORBA::Boolean b) +{ + this->rel_ = b; +} + +template <class T> ACE_INLINE PortableServer::POA_ptr +POA_CORBA_Container_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL) +{ + if (!CORBA::is_nil (this->poa_.in ())) + return PortableServer::POA::_duplicate (this->poa_.in ()); + + return this->POA_CORBA_Container::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +template <class T> ACE_INLINE +CORBA_Contained_ptr POA_CORBA_Container_tie<T>::lookup ( + const char * search_name + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->lookup ( +search_name + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ContainedSeq * POA_CORBA_Container_tie<T>::contents ( + CORBA::DefinitionKind limit_type, + CORBA::Boolean exclude_inherited + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->contents ( +limit_type, + exclude_inherited + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ContainedSeq * POA_CORBA_Container_tie<T>::lookup_name ( + const char * search_name, + CORBA::Long levels_to_search, + CORBA::DefinitionKind limit_type, + CORBA::Boolean exclude_inherited + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->lookup_name ( +search_name, + levels_to_search, + limit_type, + exclude_inherited + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Container::DescriptionSeq * POA_CORBA_Container_tie<T>::describe_contents ( + CORBA::DefinitionKind limit_type, + CORBA::Boolean exclude_inherited, + CORBA::Long max_returned_objs + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->describe_contents ( +limit_type, + exclude_inherited, + max_returned_objs + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ModuleDef_ptr POA_CORBA_Container_tie<T>::create_module ( + const char * id, + const char * name, + const char * version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_module ( +id, + name, + version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ConstantDef_ptr POA_CORBA_Container_tie<T>::create_constant ( + const char * id, + const char * name, + const char * version, + CORBA_IDLType_ptr type, + const CORBA::Any & value + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_constant ( +id, + name, + version, + type, + value + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_StructDef_ptr POA_CORBA_Container_tie<T>::create_struct ( + const char * id, + const char * name, + const char * version, + const CORBA_StructMemberSeq & members + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_struct ( +id, + name, + version, + members + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_UnionDef_ptr POA_CORBA_Container_tie<T>::create_union ( + const char * id, + const char * name, + const char * version, + CORBA_IDLType_ptr discriminator_type, + const CORBA_UnionMemberSeq & members + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_union ( +id, + name, + version, + discriminator_type, + members + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_EnumDef_ptr POA_CORBA_Container_tie<T>::create_enum ( + const char * id, + const char * name, + const char * version, + const CORBA_EnumMemberSeq & members + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_enum ( +id, + name, + version, + members + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_AliasDef_ptr POA_CORBA_Container_tie<T>::create_alias ( + const char * id, + const char * name, + const char * version, + CORBA_IDLType_ptr original_type + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_alias ( +id, + name, + version, + original_type + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_InterfaceDef_ptr POA_CORBA_Container_tie<T>::create_interface ( + const char * id, + const char * name, + const char * version, + const CORBA_InterfaceDefSeq & base_interfaces + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_interface ( +id, + name, + version, + base_interfaces + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ValueDef_ptr POA_CORBA_Container_tie<T>::create_value ( + const char * id, + const char * name, + const char * version, + CORBA::Boolean is_custom, + CORBA::Boolean is_abstract, + CORBA_ValueDef_ptr base_value, + CORBA::Boolean is_truncatable, + const CORBA_ValueDefSeq & abstract_base_values, + const CORBA_InterfaceDefSeq & supported_interfaces, + const CORBA_InitializerSeq & initializers + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_value ( +id, + name, + version, + is_custom, + is_abstract, + base_value, + is_truncatable, + abstract_base_values, + supported_interfaces, + initializers + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ValueBoxDef_ptr POA_CORBA_Container_tie<T>::create_value_box ( + const char * id, + const char * name, + const char * version, + CORBA_IDLType_ptr original_type_def + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_value_box ( +id, + name, + version, + original_type_def + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_ExceptionDef_ptr POA_CORBA_Container_tie<T>::create_exception ( + const char * id, + const char * name, + const char * version, + const CORBA_StructMemberSeq & members + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_exception ( +id, + name, + version, + members + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_NativeDef_ptr POA_CORBA_Container_tie<T>::create_native ( + const char * id, + const char * name, + const char * version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_native ( +id, + name, + version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_AbstractInterfaceDef_ptr POA_CORBA_Container_tie<T>::create_abstract_interface ( + const char * id, + const char * name, + const char * version, + const CORBA_AbstractInterfaceDefSeq & base_interfaces + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_abstract_interface ( +id, + name, + version, + base_interfaces + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_LocalInterfaceDef_ptr POA_CORBA_Container_tie<T>::create_local_interface ( + const char * id, + const char * name, + const char * version, + const CORBA_InterfaceDefSeq & base_interfaces + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->create_local_interface ( +id, + name, + version, + base_interfaces + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA::DefinitionKind POA_CORBA_Container_tie<T>::def_kind ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->def_kind ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_Container_tie<T>::destroy ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->destroy ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +POA_CORBA_IDLType_tie<T>::POA_CORBA_IDLType_tie (T &t) + : ptr_ (&t), + poa_ (PortableServer::POA::_nil ()), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_IDLType_tie<T>::POA_CORBA_IDLType_tie (T &t, PortableServer::POA_ptr poa) + : ptr_ (&t), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_IDLType_tie<T>::POA_CORBA_IDLType_tie (T *tp, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_nil ()), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_IDLType_tie<T>::POA_CORBA_IDLType_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_IDLType_tie<T>::~POA_CORBA_IDLType_tie (void) +{ + if (this->rel_) delete this->ptr_; +} + +template <class T> ACE_INLINE T * +POA_CORBA_IDLType_tie<T>::_tied_object (void) +{ + return this->ptr_; +} + +template <class T> ACE_INLINE void +POA_CORBA_IDLType_tie<T>::_tied_object (T &obj) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = &obj; + this->rel_ = 0; +} + +template <class T> ACE_INLINE void +POA_CORBA_IDLType_tie<T>::_tied_object (T *obj, CORBA::Boolean release) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = obj; + this->rel_ = release; +} + +template <class T> ACE_INLINE CORBA::Boolean +POA_CORBA_IDLType_tie<T>::_is_owner (void) +{ + return this->rel_; +} + +template <class T> ACE_INLINE void +POA_CORBA_IDLType_tie<T>::_is_owner (CORBA::Boolean b) +{ + this->rel_ = b; +} + +template <class T> ACE_INLINE PortableServer::POA_ptr +POA_CORBA_IDLType_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL) +{ + if (!CORBA::is_nil (this->poa_.in ())) + return PortableServer::POA::_duplicate (this->poa_.in ()); + + return this->POA_CORBA_IDLType::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +template <class T> ACE_INLINE +CORBA::TypeCode_ptr POA_CORBA_IDLType_tie<T>::type ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->type ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA::DefinitionKind POA_CORBA_IDLType_tie<T>::def_kind ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->def_kind ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_IDLType_tie<T>::destroy ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->destroy ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +POA_CORBA_TypedefDef_tie<T>::POA_CORBA_TypedefDef_tie (T &t) + : ptr_ (&t), + poa_ (PortableServer::POA::_nil ()), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_TypedefDef_tie<T>::POA_CORBA_TypedefDef_tie (T &t, PortableServer::POA_ptr poa) + : ptr_ (&t), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (0) +{} + +template <class T> ACE_INLINE +POA_CORBA_TypedefDef_tie<T>::POA_CORBA_TypedefDef_tie (T *tp, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_nil ()), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_TypedefDef_tie<T>::POA_CORBA_TypedefDef_tie (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release) + : ptr_ (tp), + poa_ (PortableServer::POA::_duplicate (poa)), + rel_ (release) +{} + +template <class T> ACE_INLINE +POA_CORBA_TypedefDef_tie<T>::~POA_CORBA_TypedefDef_tie (void) +{ + if (this->rel_) delete this->ptr_; +} + +template <class T> ACE_INLINE T * +POA_CORBA_TypedefDef_tie<T>::_tied_object (void) +{ + return this->ptr_; +} + +template <class T> ACE_INLINE void +POA_CORBA_TypedefDef_tie<T>::_tied_object (T &obj) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = &obj; + this->rel_ = 0; +} + +template <class T> ACE_INLINE void +POA_CORBA_TypedefDef_tie<T>::_tied_object (T *obj, CORBA::Boolean release) +{ + if (this->rel_) delete this->ptr_; + this->ptr_ = obj; + this->rel_ = release; +} + +template <class T> ACE_INLINE CORBA::Boolean +POA_CORBA_TypedefDef_tie<T>::_is_owner (void) +{ + return this->rel_; +} + +template <class T> ACE_INLINE void +POA_CORBA_TypedefDef_tie<T>::_is_owner (CORBA::Boolean b) +{ + this->rel_ = b; +} + +template <class T> ACE_INLINE PortableServer::POA_ptr +POA_CORBA_TypedefDef_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL) +{ + if (!CORBA::is_nil (this->poa_.in ())) + return PortableServer::POA::_duplicate (this->poa_.in ()); + + return this->POA_CORBA_TypedefDef::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +template <class T> ACE_INLINE +char * POA_CORBA_TypedefDef_tie<T>::id ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->id ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_TypedefDef_tie<T>::id ( + const char * id + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->id ( +id + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_TypedefDef_tie<T>::name ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->name ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_TypedefDef_tie<T>::name ( + const char * name + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->name ( +name + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_TypedefDef_tie<T>::version ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->version ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_TypedefDef_tie<T>::version ( + const char * version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->version ( +version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Container_ptr POA_CORBA_TypedefDef_tie<T>::defined_in ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->defined_in ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +char * POA_CORBA_TypedefDef_tie<T>::absolute_name ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->absolute_name ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Repository_ptr POA_CORBA_TypedefDef_tie<T>::containing_repository ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->containing_repository ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA_Contained::Description * POA_CORBA_TypedefDef_tie<T>::describe ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->describe ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_TypedefDef_tie<T>::move ( + CORBA_Container_ptr new_container, + const char * new_name, + const char * new_version + ACE_ENV_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->move ( +new_container, + new_name, + new_version + ACE_ENV_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA::TypeCode_ptr POA_CORBA_TypedefDef_tie<T>::type ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->type ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +CORBA::DefinitionKind POA_CORBA_TypedefDef_tie<T>::def_kind ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + return this->ptr_->def_kind ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +template <class T> ACE_INLINE +void POA_CORBA_TypedefDef_tie<T>::destroy ( + ACE_ENV_SINGLE_ARG_DECL + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) +{ + this->ptr_->destroy ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); +} + +#endif /* ACE_HAS_USING_KEYWORD */ |