diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-08-19 17:23:53 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-08-19 17:23:53 +0000 |
commit | ae351ece30f87ef895c43941ec010f2f55f2be8b (patch) | |
tree | 04c936a321984e1b64cbaf568bb2c93dabb87866 | |
parent | f0718152b15b433c4342ec2d9ff8443d057d8b4d (diff) | |
download | ATCD-ae351ece30f87ef895c43941ec010f2f55f2be8b.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/tao/Interceptor.cpp | 25 | ||||
-rw-r--r-- | TAO/tao/Interceptor.h | 171 | ||||
-rw-r--r-- | TAO/tao/Interceptor.i | 169 | ||||
-rw-r--r-- | TAO/tao/InterceptorC.cpp | 436 | ||||
-rw-r--r-- | TAO/tao/InterceptorC.h | 769 | ||||
-rw-r--r-- | TAO/tao/InterceptorC.i | 1087 |
6 files changed, 0 insertions, 2657 deletions
diff --git a/TAO/tao/Interceptor.cpp b/TAO/tao/Interceptor.cpp deleted file mode 100644 index 04982ef46e6..00000000000 --- a/TAO/tao/Interceptor.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// $Id$ - - -#include "tao/corbafwd.h" -#include "tao/Interceptor.h" - -#if (TAO_HAS_INTERCEPTORS == 1) - -#if !defined (__ACE_INLINE__) -#include "tao/Interceptor.i" -#endif /* defined INLINE */ - -#endif /* TAO_HAS_INTERCEPTORS == 1 */ - -// Followings are the defualt no-op implementation of client-side and -// server-side interceptors. The sole purpose to to let user -// overwrite only the interception operations they are interested in -// without providing others. - -// ** Users should always provide a name by dupping a string. -// char * POA_PortableInterceptor:: -// Interceptor::name (CORBA::Environment &) -// { -// return CORBA::string_dup ("TAO default"); -// } diff --git a/TAO/tao/Interceptor.h b/TAO/tao/Interceptor.h deleted file mode 100644 index 0f7d4f14e30..00000000000 --- a/TAO/tao/Interceptor.h +++ /dev/null @@ -1,171 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = FILENAME -// Interceptor.h -// -// = DESCRIPTION -// This file contains two helper classes to simplify the support of -// interceptors in tao_idl generated code. All the helper classes -// implementations are in Interceptor.i file. -// -// A series of TAO_INTERCEPTOR* macros are also defined in the file. -// These macros allows us to disable/enable support of interceptors -// easily. -// -// I also put some default no-op implementation of the interceptor -// servants. -// -// = AUTHOR -// Nanbor Wang <nanbor@cs.wustl.edu> -// -// ============================================================================ - -#ifndef TAO_INTERCEPTOR_H -#define TAO_INTERCEPTOR_H -#include "ace/pre.h" - -#if (TAO_HAS_INTERCEPTORS == 1) -#include "tao/InterceptorC.h" -#endif /* TAO_HAS_INTERCEPTORS == 1 */ - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#if (TAO_HAS_INTERCEPTORS == 1) -# define TAO_INTERCEPTOR(X) X -# define TAO_INTERCEPTOR_CHECK ACE_TRY_CHECK -# define TAO_INTERCEPTOR_CHECK_RETURN(X) ACE_TRY_CHECK -# define TAO_INTERCEPTOR_THROW(X) ACE_TRY_THROW(X) -# define TAO_INTERCEPTOR_THROW_RETURN(X,Y) ACE_TRY_THROW(X) -#else -# define TAO_INTERCEPTOR(X) -# define TAO_INTERCEPTOR_CHECK ACE_CHECK -# define TAO_INTERCEPTOR_CHECK_RETURN(X) ACE_CHECK_RETURN (X) -# define TAO_INTERCEPTOR_THROW(X) ACE_THROW(X) -# define TAO_INTERCEPTOR_THROW_RETURN(X,Y) ACE_THROW_RETURN(X,Y) -#endif /* TAO_HAS_INTERCEPTORS */ - -#if (TAO_HAS_INTERCEPTORS == 1) -class TAO_Export TAO_ClientRequestInterceptor_Adapter -{ - // = TITLE - // TAO_ClientRequestInterceptor_Adapter - // - // = DESCRIPTION - // A convenient helper class to invoke the client-side request - // interceptor(s) in tao_idl generated code. Currently, TAO only - // supports registerring of one interceptor. The class will only - // invoke the interceptor if there's one. - // - // In the future, when we extend TAO's interceptor registering - // mechanism, this class will be modified to invoke several - // interceptors in series. -public: - TAO_ClientRequestInterceptor_Adapter - (PortableInterceptor::ClientRequestInterceptor_ptr interceptor); - - ~TAO_ClientRequestInterceptor_Adapter (void); - - CORBA::Boolean valid (void) const; - // Check if we have a valid interceptor. - - void preinvoke (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - IOP::ServiceContextList &, - CORBA::NVList_ptr &, - PortableInterceptor::Cookies &, - CORBA::Environment &); - - void postinvoke (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - IOP::ServiceContextList &, - CORBA::NVList_ptr &, - PortableInterceptor::Cookies &, - CORBA::Environment &); - - void exception_occurred (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - //IOP::ServiceContextList &, - //CORBA::Exception *&, - PortableInterceptor::Cookies &, - CORBA::Environment &); - -private: - PortableInterceptor::ClientRequestInterceptor_var interceptor_; -}; - -class TAO_Export TAO_ServerRequestInterceptor_Adapter -{ - // = TITLE - // TAO_ServerRequestInterceptor_Adapter - // - // = DESCRIPTION - // A convenient helper class to invoke the server-side request - // interceptor(s) in tao_idl generated code. Currently, TAO only - // supports registerring of one interceptor. The class will only - // invoke the interceptor if there's one. - // - // In the future, when we extend TAO's interceptor registering - // mechanism, this class will be modified to invoke several - // interceptors in series. -public: - TAO_ServerRequestInterceptor_Adapter - (PortableInterceptor::ServerRequestInterceptor_ptr interceptor); - - ~TAO_ServerRequestInterceptor_Adapter (void); - - CORBA::Boolean valid (void) const; - // Check if we have a valid interceptor. - - void preinvoke (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - IOP::ServiceContextList &, - CORBA::NVList_ptr &, - PortableInterceptor::Cookies &, - CORBA::Environment &); - - void postinvoke (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - IOP::ServiceContextList &, - CORBA::NVList_ptr &, - PortableInterceptor::Cookies &, - CORBA::Environment &); - - void exception_occurred (CORBA::ULong, - CORBA::Boolean, - CORBA::Object_ptr, - const char *, - //IOP::ServiceContextList &, - //CORBA::Exception *&, - PortableInterceptor::Cookies &, - CORBA::Environment &); - -private: - PortableInterceptor::ServerRequestInterceptor_var interceptor_; -}; -#endif /* TAO_HAS_INTERCEPTORS */ - -#if defined (__ACE_INLINE__) -#include "tao/Interceptor.i" -#endif /* defined INLINE */ - -#include "ace/post.h" - -#endif /* TAO_INTERCEPTOR_H */ diff --git a/TAO/tao/Interceptor.i b/TAO/tao/Interceptor.i deleted file mode 100644 index dbc30782d0b..00000000000 --- a/TAO/tao/Interceptor.i +++ /dev/null @@ -1,169 +0,0 @@ -/* -*- C++ -*- $Id$ */ - -#if (TAO_HAS_INTERCEPTORS == 1) -ACE_INLINE -TAO_ClientRequestInterceptor_Adapter::TAO_ClientRequestInterceptor_Adapter - (PortableInterceptor::ClientRequestInterceptor_ptr interceptor) - : interceptor_ (interceptor) -{ -} - -ACE_INLINE -TAO_ClientRequestInterceptor_Adapter::~TAO_ClientRequestInterceptor_Adapter - (void) -{ -} - -ACE_INLINE CORBA::Boolean -TAO_ClientRequestInterceptor_Adapter::valid (void) const -{ - return (! CORBA::is_nil (this->interceptor_.in ())); -} - -ACE_INLINE void -TAO_ClientRequestInterceptor_Adapter:: -preinvoke (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - IOP::ServiceContextList &sc, - CORBA::NVList_ptr &args, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->preinvoke (request_id, - two_way, - objref, - operation, - sc, - args, - cookies, - ACE_TRY_ENV); -} - -ACE_INLINE void -TAO_ClientRequestInterceptor_Adapter:: -postinvoke (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - IOP::ServiceContextList &sc, - CORBA::NVList_ptr &args, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->postinvoke (request_id, - two_way, - objref, - operation, - sc, - args, - cookies, - ACE_TRY_ENV); -} - -ACE_INLINE void -TAO_ClientRequestInterceptor_Adapter:: -exception_occurred (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - //IOP::ServiceContextList &, - //CORBA::Exception *&, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->exception_occurred (request_id, - two_way, - objref, - operation, - cookies, - ACE_TRY_ENV); -} - -ACE_INLINE -TAO_ServerRequestInterceptor_Adapter::TAO_ServerRequestInterceptor_Adapter - (PortableInterceptor::ServerRequestInterceptor_ptr interceptor) - : interceptor_ (interceptor) -{ -} - -ACE_INLINE -TAO_ServerRequestInterceptor_Adapter::~TAO_ServerRequestInterceptor_Adapter - (void) -{ -} - -ACE_INLINE CORBA::Boolean -TAO_ServerRequestInterceptor_Adapter::valid (void) const -{ - return (! CORBA::is_nil (this->interceptor_.in ())); -} - -ACE_INLINE void -TAO_ServerRequestInterceptor_Adapter:: -preinvoke (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - IOP::ServiceContextList &sc, - CORBA::NVList_ptr &args, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->preinvoke (request_id, - two_way, - objref, - operation, - sc, - args, - cookies, - ACE_TRY_ENV); -} - -ACE_INLINE void -TAO_ServerRequestInterceptor_Adapter:: -postinvoke (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - IOP::ServiceContextList &sc, - CORBA::NVList_ptr &args, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->postinvoke (request_id, - two_way, - objref, - operation, - sc, - args, - cookies, - ACE_TRY_ENV); -} - -ACE_INLINE void -TAO_ServerRequestInterceptor_Adapter:: -exception_occurred (CORBA::ULong request_id, - CORBA::Boolean two_way, - CORBA::Object_ptr objref, - const char *operation, - //IOP::ServiceContextList &, - //CORBA::Exception *&, - PortableInterceptor::Cookies &cookies, - CORBA::Environment &ACE_TRY_ENV) -{ - if (this->valid ()) - this->interceptor_->exception_occurred (request_id, - two_way, - objref, - operation, - cookies, - ACE_TRY_ENV); -} -#endif /* TAO_HAS_INTERCEPTORS */ diff --git a/TAO/tao/InterceptorC.cpp b/TAO/tao/InterceptorC.cpp deleted file mode 100644 index 88c33c7c650..00000000000 --- a/TAO/tao/InterceptorC.cpp +++ /dev/null @@ -1,436 +0,0 @@ -/* -*- C++ -*- $Id$ */ - -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO and the TAO IDL Compiler have been developed by the Center for -// Distributed Object Computing at Washington University, St. Louis. -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -#include "InterceptorC.h" - -#if (TAO_HAS_INTERCEPTORS == 1) - -#if !defined (__ACE_INLINE__) -#include "InterceptorC.i" -#endif /* !defined INLINE */ - -PortableInterceptor::Cookie_ptr PortableInterceptor::Cookie::_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV - ) -{ - return Cookie::_unchecked_narrow (obj, ACE_TRY_ENV); -} - -PortableInterceptor::Cookie_ptr PortableInterceptor::Cookie::_unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment & - ) -{ - if (CORBA::is_nil (obj)) - return Cookie::_nil (); - return - ACE_reinterpret_cast - ( - Cookie_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &Cookie::_narrow - ) - ) - ); -} - -PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie::_duplicate (Cookie_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->_add_ref (); - return obj; -} - -void *PortableInterceptor::Cookie::_tao_QueryInterface (ptr_arith_t type) -{ - void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, Cookie)::_narrow)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); - return retv; -} - -const char* PortableInterceptor::Cookie::_interface_repository_id (void) const -{ - return "IDL:TAO/PortableInterceptor/Cookie:1.0"; -} - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CS_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CS_ - - // The Base_Sequence functions, please see tao/Sequence.h - void - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_allocate_buffer (CORBA::ULong length) - { - PortableInterceptor::Cookie **tmp = 0; - tmp = _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (length); - - if (this->buffer_ != 0) - { - PortableInterceptor::Cookie **old = ACE_reinterpret_cast (PortableInterceptor::Cookie**, this->buffer_); - for (CORBA::ULong i = 0; i < this->length_; ++i) - if (!this->release_) - tmp[i] = PortableInterceptor::Cookie::_duplicate (old[i]); - else - tmp[i] = old[i]; - - if (this->release_) - delete[] old; - - } - this->buffer_ = tmp; - } - - void - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_deallocate_buffer (void) - { - if (this->buffer_ == 0 || this->release_ == 0) - return; - PortableInterceptor::Cookie **tmp = ACE_reinterpret_cast (PortableInterceptor::Cookie**, this->buffer_); - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - CORBA::release (tmp[i]); - tmp[i] = PortableInterceptor::Cookie::_nil (); - } - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::freebuf (tmp); - this->buffer_ = 0; - } - - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::~_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (void) - { - this->_deallocate_buffer (); - } - - void - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_shrink_buffer (CORBA::ULong nl, CORBA::ULong ol) - { - PortableInterceptor::Cookie **tmp = ACE_reinterpret_cast (PortableInterceptor::Cookie**, this->buffer_); - - for (CORBA::ULong i = nl; i < ol; ++i) - { - CORBA::release (tmp[i]); - tmp[i] = PortableInterceptor::Cookie::_nil (); - } - } - void - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_downcast ( - void* target, - CORBA_Object *src, - CORBA_Environment &ACE_TRY_ENV - ) - { - PortableInterceptor::Cookie **tmp = ACE_static_cast (PortableInterceptor::Cookie**, target); - *tmp = PortableInterceptor::Cookie::_narrow (src, ACE_TRY_ENV); - } - - CORBA_Object* - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_upcast (void *src) const - { - PortableInterceptor::Cookie **tmp = ACE_static_cast (PortableInterceptor::Cookie**, src); - return *tmp; - } - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_PORTABLEINTERCEPTOR_COOKIES_CS_) -#define _PORTABLEINTERCEPTOR_COOKIES_CS_ - -// ************************************************************* -// PortableInterceptor::Cookies -// ************************************************************* - -PortableInterceptor::Cookies::Cookies (void) -{} -PortableInterceptor::Cookies::Cookies (CORBA::ULong max) // uses max size - : -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies -#else /* TAO_USE_SEQUENCE_TEMPLATES */ - TAO_Unbounded_Object_Sequence<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - (max) -{} -PortableInterceptor::Cookies::Cookies (CORBA::ULong max, CORBA::ULong length, PortableInterceptor::Cookie_ptr *buffer, CORBA::Boolean release) - : -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies -#else /* TAO_USE_SEQUENCE_TEMPLATES */ - TAO_Unbounded_Object_Sequence<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - (max, length, buffer, release) -{} -PortableInterceptor::Cookies::Cookies (const Cookies &seq) // copy ctor - : -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies -#else /* TAO_USE_SEQUENCE_TEMPLATES */ - TAO_Unbounded_Object_Sequence<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - (seq) -{} -PortableInterceptor::Cookies::~Cookies (void) // dtor -{} -void PortableInterceptor::Cookies::_tao_any_destructor (void *x) -{ - Cookies *tmp = ACE_static_cast (Cookies*,x); - delete tmp; -} - - -#endif /* end #if !defined */ - -PortableInterceptor::Interceptor_ptr PortableInterceptor::Interceptor::_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV - ) -{ - return Interceptor::_unchecked_narrow (obj, ACE_TRY_ENV); -} - -PortableInterceptor::Interceptor_ptr PortableInterceptor::Interceptor::_unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment & - ) -{ - if (CORBA::is_nil (obj)) - return Interceptor::_nil (); - return - ACE_reinterpret_cast - ( - Interceptor_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &Interceptor::_narrow - ) - ) - ); -} - -PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor::_duplicate (Interceptor_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->_add_ref (); - return obj; -} - -void *PortableInterceptor::Interceptor::_tao_QueryInterface (ptr_arith_t type) -{ - void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, Interceptor)::_narrow)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); - return retv; -} - -const char* PortableInterceptor::Interceptor::_interface_repository_id (void) const -{ - return "IDL:TAO/PortableInterceptor/Interceptor:1.0"; -} - -PortableInterceptor::ServerRequestInterceptor_ptr PortableInterceptor::ServerRequestInterceptor::_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV - ) -{ - return ServerRequestInterceptor::_unchecked_narrow (obj, ACE_TRY_ENV); -} - -PortableInterceptor::ServerRequestInterceptor_ptr PortableInterceptor::ServerRequestInterceptor::_unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment & - ) -{ - if (CORBA::is_nil (obj)) - return ServerRequestInterceptor::_nil (); - return - ACE_reinterpret_cast - ( - ServerRequestInterceptor_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &ServerRequestInterceptor::_narrow - ) - ) - ); -} - -PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor::_duplicate (ServerRequestInterceptor_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->_add_ref (); - return obj; -} - -void *PortableInterceptor::ServerRequestInterceptor::_tao_QueryInterface (ptr_arith_t type) -{ - void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, ServerRequestInterceptor)::_narrow)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, Interceptor)::_narrow)) - retv = ACE_reinterpret_cast - ( - void *, - ACE_static_cast - ( - PortableInterceptor::Interceptor_ptr, - this - ) - ); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); - return retv; -} - -const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id (void) const -{ - return "IDL:TAO/PortableInterceptor/ServerRequestInterceptor:1.0"; -} - -PortableInterceptor::ClientRequestInterceptor_ptr PortableInterceptor::ClientRequestInterceptor::_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV - ) -{ - return ClientRequestInterceptor::_unchecked_narrow (obj, ACE_TRY_ENV); -} - -PortableInterceptor::ClientRequestInterceptor_ptr PortableInterceptor::ClientRequestInterceptor::_unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment & - ) -{ - if (CORBA::is_nil (obj)) - return ClientRequestInterceptor::_nil (); - return - ACE_reinterpret_cast - ( - ClientRequestInterceptor_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &ClientRequestInterceptor::_narrow - ) - ) - ); -} - -PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor::_duplicate (ClientRequestInterceptor_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->_add_ref (); - return obj; -} - -void *PortableInterceptor::ClientRequestInterceptor::_tao_QueryInterface (ptr_arith_t type) -{ - void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, ClientRequestInterceptor)::_narrow)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::PortableInterceptor, Interceptor)::_narrow)) - retv = ACE_reinterpret_cast - ( - void *, - ACE_static_cast - ( - PortableInterceptor::Interceptor_ptr, - this - ) - ); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); - return retv; -} - -const char* PortableInterceptor::ClientRequestInterceptor::_interface_repository_id (void) const -{ - return "IDL:TAO/PortableInterceptor/ClientRequestInterceptor:1.0"; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO_Object_Manager<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var>; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - # pragma instantiate TAO_Object_Manager<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO_Object_Manager<PortableInterceptor::Interceptor,PortableInterceptor::Interceptor_var>; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - # pragma instantiate TAO_Object_Manager<PortableInterceptor::Interceptor,PortableInterceptor::Interceptor_var> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO_Object_Manager<PortableInterceptor::ServerRequestInterceptor,PortableInterceptor::ServerRequestInterceptor_var>; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - # pragma instantiate TAO_Object_Manager<PortableInterceptor::ServerRequestInterceptor,PortableInterceptor::ServerRequestInterceptor_var> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO_Object_Manager<PortableInterceptor::ClientRequestInterceptor,PortableInterceptor::ClientRequestInterceptor_var>; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - # pragma instantiate TAO_Object_Manager<PortableInterceptor::ClientRequestInterceptor,PortableInterceptor::ClientRequestInterceptor_var> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* TAO_HAS_INTERCEPTORS == 1 */ diff --git a/TAO/tao/InterceptorC.h b/TAO/tao/InterceptorC.h deleted file mode 100644 index 6d6946cb26d..00000000000 --- a/TAO/tao/InterceptorC.h +++ /dev/null @@ -1,769 +0,0 @@ -/* -*- C++ -*- $Id$ */ - -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO and the TAO IDL Compiler have been developed by the Center for -// Distributed Object Computing at Washington University, St. Louis. -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -#ifndef _TAO_IDL_INTERCEPTORC_H_ -#define _TAO_IDL_INTERCEPTORC_H_ - -#include "tao/orbconf.h" -#include "tao/IOPC.h" -#include "tao/Object.h" -#include "tao/Exception.h" -#include "tao/Environment.h" - -#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION) -#include "ace/streams.h" -#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */ - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#if defined (TAO_EXPORT_MACRO) -#undef TAO_EXPORT_MACRO -#endif -#define TAO_EXPORT_MACRO TAO_Export - -#if defined (TAO_EXPORT_NESTED_CLASSES) -# if defined (TAO_EXPORT_NESTED_MACRO) -# undef TAO_EXPORT_NESTED_MACRO -# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ -# define TAO_EXPORT_NESTED_MACRO TAO_Export -#endif /* TAO_EXPORT_NESTED_CLASSES */ - -#if defined(_MSC_VER) -#if (_MSC_VER >= 1200) -#pragma warning(push) -#endif /* _MSC_VER >= 1200 */ -#pragma warning(disable:4250) -#endif /* _MSC_VER */ - -#if (TAO_HAS_INTERCEPTORS == 1) -TAO_NAMESPACE PortableInterceptor -{ - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE___PTR_CH_) -#define _PORTABLEINTERCEPTOR_COOKIE___PTR_CH_ - - class Cookie; - typedef Cookie *Cookie_ptr; - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE___VAR_CH_) -#define _PORTABLEINTERCEPTOR_COOKIE___VAR_CH_ - - class TAO_Export Cookie_var : public TAO_Base_var - { - public: - Cookie_var (void); // default constructor - Cookie_var (Cookie_ptr p) : ptr_ (p) {} - Cookie_var (const Cookie_var &); // copy constructor - ~Cookie_var (void); // destructor - - Cookie_var &operator= (Cookie_ptr); - Cookie_var &operator= (const Cookie_var &); - Cookie_ptr operator-> (void) const; - - operator const Cookie_ptr &() const; - operator Cookie_ptr &(); - // in, inout, out, _retn - Cookie_ptr in (void) const; - Cookie_ptr &inout (void); - Cookie_ptr &out (void); - Cookie_ptr _retn (void); - Cookie_ptr ptr (void) const; - - private: - Cookie_ptr ptr_; - // Unimplemented - prevents widening assignment. - Cookie_var (const TAO_Base_var &rhs); - Cookie_var &operator= (const TAO_Base_var &rhs); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE___OUT_CH_) -#define _PORTABLEINTERCEPTOR_COOKIE___OUT_CH_ - - class TAO_Export Cookie_out - { - public: - Cookie_out (Cookie_ptr &); - Cookie_out (Cookie_var &); - Cookie_out (const Cookie_out &); - Cookie_out &operator= (const Cookie_out &); - Cookie_out &operator= (const Cookie_var &); - Cookie_out &operator= (Cookie_ptr); - operator Cookie_ptr &(); - Cookie_ptr &ptr (void); - Cookie_ptr operator-> (void); - - private: - Cookie_ptr &ptr_; - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE_CH_) -#define _PORTABLEINTERCEPTOR_COOKIE_CH_ - -class TAO_Export Cookie : public virtual CORBA_Object - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef Cookie_ptr _ptr_type; - typedef Cookie_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - // the static operations - static Cookie_ptr _duplicate (Cookie_ptr obj); - static Cookie_ptr _narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static Cookie_ptr _unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static Cookie_ptr _nil (void) - { - return (Cookie_ptr)0; - } - - virtual char * myname ( - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void *_tao_QueryInterface (ptr_arith_t type); - - virtual const char* _interface_repository_id (void) const; - - protected: - Cookie (void); - virtual ~Cookie (void); - private: - Cookie (const Cookie &); - void operator= (const Cookie &); - }; - - -#endif /* end #if !defined */ - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CH_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CH_ - - class _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (void); - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (CORBA::ULong maximum); - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (CORBA::ULong maximum, - CORBA::ULong length, - Cookie* *value, - CORBA::Boolean release = 0); - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies(const _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies &rhs); - virtual ~_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (void); - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies &operator= (const _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies &rhs); - TAO_Object_Manager<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> operator[] (CORBA::ULong index) const; - static Cookie **allocbuf (CORBA::ULong nelems); - static void freebuf (Cookie **buffer); - // The Base_Sequence functions, please see tao/Sequence.h - virtual void _allocate_buffer (CORBA::ULong length); - virtual void _deallocate_buffer (void); - Cookie* *get_buffer (CORBA::Boolean orphan = 0); - const Cookie* *get_buffer (void) const; - virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol); - virtual void _downcast ( - void* target, - CORBA_Object *src, - CORBA_Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - virtual CORBA_Object* _upcast (void *src) const; - - }; - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_PORTABLEINTERCEPTOR_COOKIES_CH_) -#define _PORTABLEINTERCEPTOR_COOKIES_CH_ - - class Cookies; - class Cookies_var; - - // ************************************************************* - // Cookies - // ************************************************************* - - class TAO_Export Cookies : public -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies -#else /* TAO_USE_SEQUENCE_TEMPLATES */ - TAO_Unbounded_Object_Sequence<Cookie,Cookie_var> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - { - public: - Cookies (void); // default ctor - Cookies (CORBA::ULong max); // uses max size - Cookies ( - CORBA::ULong max, - CORBA::ULong length, - Cookie_ptr *buffer, - CORBA::Boolean release=0 - ); - Cookies (const Cookies &); // copy ctor - ~Cookies (void); - static void _tao_any_destructor (void*); - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef Cookies_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - }; - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIES___VAR_CH_) -#define _PORTABLEINTERCEPTOR_COOKIES___VAR_CH_ - - // ************************************************************* - // class PortableInterceptor::Cookies_var - // ************************************************************* - - class TAO_Export Cookies_var - { - public: - Cookies_var (void); // default constructor - Cookies_var (Cookies *); - Cookies_var (const Cookies_var &); // copy constructor - ~Cookies_var (void); // destructor - - Cookies_var &operator= (Cookies *); - Cookies_var &operator= (const Cookies_var &); - Cookies *operator-> (void); - const Cookies *operator-> (void) const; - - operator const Cookies &() const; - operator Cookies &(); - operator Cookies &() const; - operator Cookies *&(); // variable-size base types only - - TAO_Object_Manager<Cookie, Cookie_var> operator[] (CORBA::ULong index); - // in, inout, out, _retn - const Cookies &in (void) const; - Cookies &inout (void); - Cookies *&out (void); - Cookies *_retn (void); - Cookies *ptr (void) const; - - private: - Cookies *ptr_; - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIES___OUT_CH_) -#define _PORTABLEINTERCEPTOR_COOKIES___OUT_CH_ - - class TAO_Export Cookies_out - { - public: - Cookies_out (Cookies *&); - Cookies_out (Cookies_var &); - Cookies_out (const Cookies_out &); - Cookies_out &operator= (const Cookies_out &); - Cookies_out &operator= (Cookies *); - operator Cookies *&(); - Cookies *&ptr (void); - Cookies *operator-> (void); - TAO_Object_Manager<Cookie, Cookie_var> operator[] (CORBA::ULong index); - - private: - Cookies *&ptr_; - // assignment from T_var not allowed - void operator= (const Cookies_var &); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR___PTR_CH_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR___PTR_CH_ - - class Interceptor; - typedef Interceptor *Interceptor_ptr; - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR___VAR_CH_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR___VAR_CH_ - - class TAO_Export Interceptor_var : public TAO_Base_var - { - public: - Interceptor_var (void); // default constructor - Interceptor_var (Interceptor_ptr); - Interceptor_var (const Interceptor_var &); // copy constructor - ~Interceptor_var (void); // destructor - - Interceptor_var &operator= (Interceptor_ptr); - Interceptor_var &operator= (const Interceptor_var &); - Interceptor_ptr operator-> (void) const; - - operator const Interceptor_ptr &() const; - operator Interceptor_ptr &(); - // in, inout, out, _retn - Interceptor_ptr in (void) const; - Interceptor_ptr &inout (void); - Interceptor_ptr &out (void); - Interceptor_ptr _retn (void); - Interceptor_ptr ptr (void) const; - - private: - Interceptor_ptr ptr_; - // Unimplemented - prevents widening assignment. - Interceptor_var (const TAO_Base_var &rhs); - Interceptor_var &operator= (const TAO_Base_var &rhs); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR___OUT_CH_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR___OUT_CH_ - - class TAO_Export Interceptor_out - { - public: - Interceptor_out (Interceptor_ptr &); - Interceptor_out (Interceptor_var &); - Interceptor_out (const Interceptor_out &); - Interceptor_out &operator= (const Interceptor_out &); - Interceptor_out &operator= (const Interceptor_var &); - Interceptor_out &operator= (Interceptor_ptr); - operator Interceptor_ptr &(); - Interceptor_ptr &ptr (void); - Interceptor_ptr operator-> (void); - - private: - Interceptor_ptr &ptr_; - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR_CH_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR_CH_ - -class TAO_Export Interceptor : public virtual CORBA_Object - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef Interceptor_ptr _ptr_type; - typedef Interceptor_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - // the static operations - static Interceptor_ptr _duplicate (Interceptor_ptr obj); - static Interceptor_ptr _narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static Interceptor_ptr _unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static Interceptor_ptr _nil (void) - { - return (Interceptor_ptr)0; - } - - virtual char * name ( - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void *_tao_QueryInterface (ptr_arith_t type); - - virtual const char* _interface_repository_id (void) const; - - protected: - Interceptor (void); - virtual ~Interceptor (void); - private: - Interceptor (const Interceptor &); - void operator= (const Interceptor &); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___PTR_CH_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___PTR_CH_ - - class ServerRequestInterceptor; - typedef ServerRequestInterceptor *ServerRequestInterceptor_ptr; - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___VAR_CH_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___VAR_CH_ - - class TAO_Export ServerRequestInterceptor_var : public TAO_Base_var - { - public: - ServerRequestInterceptor_var (void); // default constructor - ServerRequestInterceptor_var (ServerRequestInterceptor_ptr); - ServerRequestInterceptor_var (const ServerRequestInterceptor_var &); // copy constructor - ~ServerRequestInterceptor_var (void); // destructor - - ServerRequestInterceptor_var &operator= (ServerRequestInterceptor_ptr); - ServerRequestInterceptor_var &operator= (const ServerRequestInterceptor_var &); - ServerRequestInterceptor_ptr operator-> (void) const; - - operator const ServerRequestInterceptor_ptr &() const; - operator ServerRequestInterceptor_ptr &(); - // in, inout, out, _retn - ServerRequestInterceptor_ptr in (void) const; - ServerRequestInterceptor_ptr &inout (void); - ServerRequestInterceptor_ptr &out (void); - ServerRequestInterceptor_ptr _retn (void); - ServerRequestInterceptor_ptr ptr (void) const; - - private: - ServerRequestInterceptor_ptr ptr_; - // Unimplemented - prevents widening assignment. - ServerRequestInterceptor_var (const TAO_Base_var &rhs); - ServerRequestInterceptor_var &operator= (const TAO_Base_var &rhs); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___OUT_CH_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___OUT_CH_ - - class TAO_Export ServerRequestInterceptor_out - { - public: - ServerRequestInterceptor_out (ServerRequestInterceptor_ptr &); - ServerRequestInterceptor_out (ServerRequestInterceptor_var &); - ServerRequestInterceptor_out (const ServerRequestInterceptor_out &); - ServerRequestInterceptor_out &operator= (const ServerRequestInterceptor_out &); - ServerRequestInterceptor_out &operator= (const ServerRequestInterceptor_var &); - ServerRequestInterceptor_out &operator= (ServerRequestInterceptor_ptr); - operator ServerRequestInterceptor_ptr &(); - ServerRequestInterceptor_ptr &ptr (void); - ServerRequestInterceptor_ptr operator-> (void); - - private: - ServerRequestInterceptor_ptr &ptr_; - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR_CH_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR_CH_ - -class TAO_Export ServerRequestInterceptor: public virtual Interceptor - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef ServerRequestInterceptor_ptr _ptr_type; - typedef ServerRequestInterceptor_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - // the static operations - static ServerRequestInterceptor_ptr _duplicate (ServerRequestInterceptor_ptr obj); - static ServerRequestInterceptor_ptr _narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static ServerRequestInterceptor_ptr _unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static ServerRequestInterceptor_ptr _nil (void) - { - return (ServerRequestInterceptor_ptr)0; - } - - virtual void preinvoke ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - IOP::ServiceContextList & sc, - CORBA::NVList_ptr & arguments, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void postinvoke ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - IOP::ServiceContextList & sc, - CORBA::NVList_ptr & arguments, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void exception_occurred ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void *_tao_QueryInterface (ptr_arith_t type); - - virtual const char* _interface_repository_id (void) const; - - protected: - ServerRequestInterceptor (void); - virtual ~ServerRequestInterceptor (void); - private: - ServerRequestInterceptor (const ServerRequestInterceptor &); - void operator= (const ServerRequestInterceptor &); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___PTR_CH_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___PTR_CH_ - - class ClientRequestInterceptor; - typedef ClientRequestInterceptor *ClientRequestInterceptor_ptr; - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___VAR_CH_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___VAR_CH_ - - class TAO_Export ClientRequestInterceptor_var : public TAO_Base_var - { - public: - ClientRequestInterceptor_var (void); // default constructor - ClientRequestInterceptor_var (ClientRequestInterceptor_ptr); - ClientRequestInterceptor_var (const ClientRequestInterceptor_var &); // copy constructor - ~ClientRequestInterceptor_var (void); // destructor - - ClientRequestInterceptor_var &operator= (ClientRequestInterceptor_ptr); - ClientRequestInterceptor_var &operator= (const ClientRequestInterceptor_var &); - ClientRequestInterceptor_ptr operator-> (void) const; - - operator const ClientRequestInterceptor_ptr &() const; - operator ClientRequestInterceptor_ptr &(); - // in, inout, out, _retn - ClientRequestInterceptor_ptr in (void) const; - ClientRequestInterceptor_ptr &inout (void); - ClientRequestInterceptor_ptr &out (void); - ClientRequestInterceptor_ptr _retn (void); - ClientRequestInterceptor_ptr ptr (void) const; - - private: - ClientRequestInterceptor_ptr ptr_; - // Unimplemented - prevents widening assignment. - ClientRequestInterceptor_var (const TAO_Base_var &rhs); - ClientRequestInterceptor_var &operator= (const TAO_Base_var &rhs); - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___OUT_CH_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___OUT_CH_ - - class TAO_Export ClientRequestInterceptor_out - { - public: - ClientRequestInterceptor_out (ClientRequestInterceptor_ptr &); - ClientRequestInterceptor_out (ClientRequestInterceptor_var &); - ClientRequestInterceptor_out (const ClientRequestInterceptor_out &); - ClientRequestInterceptor_out &operator= (const ClientRequestInterceptor_out &); - ClientRequestInterceptor_out &operator= (const ClientRequestInterceptor_var &); - ClientRequestInterceptor_out &operator= (ClientRequestInterceptor_ptr); - operator ClientRequestInterceptor_ptr &(); - ClientRequestInterceptor_ptr &ptr (void); - ClientRequestInterceptor_ptr operator-> (void); - - private: - ClientRequestInterceptor_ptr &ptr_; - }; - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR_CH_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR_CH_ - -class TAO_Export ClientRequestInterceptor: public virtual Interceptor - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef ClientRequestInterceptor_ptr _ptr_type; - typedef ClientRequestInterceptor_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - // the static operations - static ClientRequestInterceptor_ptr _duplicate (ClientRequestInterceptor_ptr obj); - static ClientRequestInterceptor_ptr _narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static ClientRequestInterceptor_ptr _unchecked_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - static ClientRequestInterceptor_ptr _nil (void) - { - return (ClientRequestInterceptor_ptr)0; - } - - virtual void preinvoke ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - IOP::ServiceContextList & sc, - CORBA::NVList_ptr & arguments, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void postinvoke ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - IOP::ServiceContextList & sc, - CORBA::NVList_ptr & arguments, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void exception_occurred ( - CORBA::ULong request_id, - CORBA::Boolean response_expected, - CORBA::Object_ptr objref, - const char * operation_name, - PortableInterceptor::Cookies & ck, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) = 0; - - virtual void *_tao_QueryInterface (ptr_arith_t type); - - virtual const char* _interface_repository_id (void) const; - - protected: - ClientRequestInterceptor (void); - virtual ~ClientRequestInterceptor (void); - private: - ClientRequestInterceptor (const ClientRequestInterceptor &); - void operator= (const ClientRequestInterceptor &); - }; - - -#endif /* end #if !defined */ - - -} -TAO_NAMESPACE_CLOSE // module PortableInterceptor - - -#ifndef __ACE_INLINE__ - - -#endif /* __ACE_INLINE__ */ - - -#if defined (__ACE_INLINE__) -#include "InterceptorC.i" -#endif /* defined INLINE */ - -#endif /* TAO_HAS_INTERCEPTORS == 1 */ - -#if defined(_MSC_VER) && (_MSC_VER >= 1200) -#pragma warning(pop) -#endif /* _MSC_VER */ - -#endif /* ifndef */ diff --git a/TAO/tao/InterceptorC.i b/TAO/tao/InterceptorC.i deleted file mode 100644 index 9d9cbd3c9d1..00000000000 --- a/TAO/tao/InterceptorC.i +++ /dev/null @@ -1,1087 +0,0 @@ -/* -*- C++ -*- $Id$ */ - -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO and the TAO IDL Compiler have been developed by the Center for -// Distributed Object Computing at Washington University, St. Louis. -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -ACE_INLINE -PortableInterceptor::Cookie::Cookie (void) // default constructor -{} - -ACE_INLINE -PortableInterceptor::Cookie::~Cookie (void) // destructor -{} - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE___VAR_CI_) -#define _PORTABLEINTERCEPTOR_COOKIE___VAR_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::Cookie_var -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Cookie_var::Cookie_var (void) // default constructor - : ptr_ (Cookie::_nil ()) -{} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Cookie_var::Cookie_var (const ::PortableInterceptor::Cookie_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (Cookie::_duplicate (p.ptr ())) -{} - -ACE_INLINE -PortableInterceptor::Cookie_var::~Cookie_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE PortableInterceptor::Cookie_var & -PortableInterceptor::Cookie_var::operator= (Cookie_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE PortableInterceptor::Cookie_var & -PortableInterceptor::Cookie_var::operator= (const ::PortableInterceptor::Cookie_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Cookie::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -PortableInterceptor::Cookie_var::operator const ::PortableInterceptor::Cookie_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Cookie_var::operator ::PortableInterceptor::Cookie_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr & -PortableInterceptor::Cookie_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr & -PortableInterceptor::Cookie_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Cookie::_nil (); - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie_var::_retn (void) -{ - // yield ownership of managed obj reference - ::PortableInterceptor::Cookie_ptr val = this->ptr_; - this->ptr_ = ::PortableInterceptor::Cookie::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_COOKIE___OUT_CI_) -#define _PORTABLEINTERCEPTOR_COOKIE___OUT_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::Cookie_out -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Cookie_out::Cookie_out (Cookie_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::PortableInterceptor::Cookie::_nil (); -} - -ACE_INLINE -PortableInterceptor::Cookie_out::Cookie_out (Cookie_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Cookie::_nil (); -} - -ACE_INLINE -PortableInterceptor::Cookie_out::Cookie_out (const ::PortableInterceptor::Cookie_out &p) // copy constructor - : ptr_ (ACE_const_cast (Cookie_out &, p).ptr_) -{} - -ACE_INLINE ::PortableInterceptor::Cookie_out & -PortableInterceptor::Cookie_out::operator= (const ::PortableInterceptor::Cookie_out &p) -{ - this->ptr_ = ACE_const_cast (Cookie_out&, p).ptr_; - return *this; -} - -ACE_INLINE PortableInterceptor::Cookie_out & -PortableInterceptor::Cookie_out::operator= (const ::PortableInterceptor::Cookie_var &p) -{ - this->ptr_ = ::PortableInterceptor::Cookie::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE PortableInterceptor::Cookie_out & -PortableInterceptor::Cookie_out::operator= (Cookie_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -PortableInterceptor::Cookie_out::operator ::PortableInterceptor::Cookie_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr & -PortableInterceptor::Cookie_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookie_ptr -PortableInterceptor::Cookie_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CI_) -#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLEINTERCEPTOR_COOKIES_CI_ - - ACE_INLINE PortableInterceptor::Cookie ** - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (CORBA::ULong nelems) - { - PortableInterceptor::Cookie **buf = 0; - - ACE_NEW_RETURN (buf, PortableInterceptor::Cookie*[nelems], 0); - - for (CORBA::ULong i = 0; i < nelems; i++) - buf[i] = PortableInterceptor::Cookie::_nil (); - - return buf; - } - - ACE_INLINE void - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::freebuf (PortableInterceptor::Cookie **buffer) - { - if (buffer == 0) - return; - delete[] buffer; - } - - ACE_INLINE - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (void) - { - } - - ACE_INLINE - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (CORBA::ULong maximum) - : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (maximum)) - { - } - - ACE_INLINE - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies (CORBA::ULong maximum, - CORBA::ULong length, - PortableInterceptor::Cookie* *value, - CORBA::Boolean release) - : TAO_Unbounded_Base_Sequence (maximum, length, value, release) - { - } - - ACE_INLINE - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies(const _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies &rhs) - : TAO_Unbounded_Base_Sequence (rhs) - { - if (rhs.buffer_ != 0) - { - PortableInterceptor::Cookie **tmp1 = _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (this->maximum_); - PortableInterceptor::Cookie ** const tmp2 = ACE_reinterpret_cast (PortableInterceptor::Cookie ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - tmp1[i] = PortableInterceptor::Cookie::_duplicate (tmp2[i]); - - this->buffer_ = tmp1; - } - else - { - this->buffer_ = 0; - } - } - - ACE_INLINE PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies & - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::operator= (const _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies &rhs) - { - if (this == &rhs) - return *this; - - if (this->release_) - { - PortableInterceptor::Cookie **tmp = ACE_reinterpret_cast (PortableInterceptor::Cookie **, this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - { - CORBA::release (tmp[i]); - tmp[i] = PortableInterceptor::Cookie::_nil (); - } - if (this->maximum_ < rhs.maximum_) - { - _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::freebuf (tmp); - this->buffer_ = _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (rhs.maximum_); - } - } - else - this->buffer_ = _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (rhs.maximum_); - - TAO_Unbounded_Base_Sequence::operator= (rhs); - - PortableInterceptor::Cookie **tmp1 = ACE_reinterpret_cast (PortableInterceptor::Cookie **, this->buffer_); - PortableInterceptor::Cookie ** const tmp2 = ACE_reinterpret_cast (PortableInterceptor::Cookie ** ACE_CAST_CONST, rhs.buffer_); - - for (CORBA::ULong i = 0; i < rhs.length_; ++i) - tmp1[i] = PortableInterceptor::Cookie::_duplicate (tmp2[i]); - - return *this; - } - - ACE_INLINE TAO_Object_Manager<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::operator[] (CORBA::ULong index) const - // read-write accessor - { - ACE_ASSERT (index < this->maximum_); - PortableInterceptor::Cookie ** const tmp = ACE_reinterpret_cast (PortableInterceptor::Cookie ** ACE_CAST_CONST, this->buffer_); - return TAO_Object_Manager<PortableInterceptor::Cookie,PortableInterceptor::Cookie_var> (tmp + index, this->release_); - } - - ACE_INLINE PortableInterceptor::Cookie* * - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::get_buffer (CORBA::Boolean orphan) - { - PortableInterceptor::Cookie **result = 0; - if (orphan == 0) - { - // We retain ownership. - if (this->buffer_ == 0) - { - result = _TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::allocbuf (this->maximum_); - this->buffer_ = result; - this->release_ = 1; - } - else - { - result = ACE_reinterpret_cast (PortableInterceptor::Cookie**, this->buffer_); - } - } - else // if (orphan == 1) - { - if (this->release_ != 0) - { - // We set the state back to default and relinquish - // ownership. - result = ACE_reinterpret_cast(PortableInterceptor::Cookie**,this->buffer_); - this->maximum_ = 0; - this->length_ = 0; - this->buffer_ = 0; - this->release_ = 0; - } - } - return result; - } - - ACE_INLINE const PortableInterceptor::Cookie* * - PortableInterceptor::_TAO_Unbounded_Object_Sequence_PortableInterceptor_Cookies::get_buffer (void) const - { - return ACE_reinterpret_cast(const PortableInterceptor::Cookie ** ACE_CAST_CONST, this->buffer_); - } - - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_PORTABLEINTERCEPTOR_COOKIES_CI_) -#define _PORTABLEINTERCEPTOR_COOKIES_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::Cookies_var -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Cookies_var::Cookies_var (void) // default constructor - : ptr_ (0) -{} - -ACE_INLINE -PortableInterceptor::Cookies_var::Cookies_var (Cookies *p) - : ptr_ (p) -{} - -ACE_INLINE -PortableInterceptor::Cookies_var::Cookies_var (const ::PortableInterceptor::Cookies_var &p) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::PortableInterceptor::Cookies (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -PortableInterceptor::Cookies_var::~Cookies_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE PortableInterceptor::Cookies_var & -PortableInterceptor::Cookies_var::operator= (Cookies *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE PortableInterceptor::Cookies_var & -PortableInterceptor::Cookies_var::operator= (const ::PortableInterceptor::Cookies_var &p) // deep copy -{ - if (this != &p) - { - delete this->ptr_; - ACE_NEW_RETURN (this->ptr_, ::PortableInterceptor::Cookies (*p.ptr_), *this); - } - return *this; -} - -ACE_INLINE const ::PortableInterceptor::Cookies * -PortableInterceptor::Cookies_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookies * -PortableInterceptor::Cookies_var::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Cookies_var::operator const ::PortableInterceptor::Cookies &() const // cast -{ - return *this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Cookies_var::operator ::PortableInterceptor::Cookies &() // cast -{ - return *this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Cookies_var::operator ::PortableInterceptor::Cookies &() const // cast -{ - return *this->ptr_; -} - -// variable-size types only -ACE_INLINE -PortableInterceptor::Cookies_var::operator ::PortableInterceptor::Cookies *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE TAO_Object_Manager<PortableInterceptor::Cookie, PortableInterceptor::Cookie_var> -PortableInterceptor::Cookies_var::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - -ACE_INLINE const ::PortableInterceptor::Cookies & -PortableInterceptor::Cookies_var::in (void) const -{ - return *this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookies & -PortableInterceptor::Cookies_var::inout (void) -{ - return *this->ptr_; -} - -// mapping for variable size -ACE_INLINE ::PortableInterceptor::Cookies *& -PortableInterceptor::Cookies_var::out (void) -{ - delete this->ptr_; - this->ptr_ = 0; - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookies * -PortableInterceptor::Cookies_var::_retn (void) -{ - ::PortableInterceptor::Cookies *tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -ACE_INLINE ::PortableInterceptor::Cookies * -PortableInterceptor::Cookies_var::ptr (void) const -{ - return this->ptr_; -} - -// ************************************************************* -// Inline operations for class PortableInterceptor::Cookies_out -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Cookies_out::Cookies_out (Cookies *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -ACE_INLINE -PortableInterceptor::Cookies_out::Cookies_out (Cookies_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -PortableInterceptor::Cookies_out::Cookies_out (const ::PortableInterceptor::Cookies_out &p) // copy constructor - : ptr_ (ACE_const_cast (Cookies_out&, p).ptr_) -{} - -ACE_INLINE ::PortableInterceptor::Cookies_out & -PortableInterceptor::Cookies_out::operator= (const ::PortableInterceptor::Cookies_out &p) -{ - this->ptr_ = ACE_const_cast (Cookies_out&, p).ptr_; - return *this; -} - -ACE_INLINE ::PortableInterceptor::Cookies_out & -PortableInterceptor::Cookies_out::operator= (Cookies *p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -PortableInterceptor::Cookies_out::operator ::PortableInterceptor::Cookies *&() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookies *& -PortableInterceptor::Cookies_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Cookies * -PortableInterceptor::Cookies_out::operator-> (void) -{ - return this->ptr_; -} - -ACE_INLINE TAO_Object_Manager<PortableInterceptor::Cookie, PortableInterceptor::Cookie_var> -PortableInterceptor::Cookies_out::operator[] (CORBA::ULong index) -{ - return this->ptr_->operator[] (index); -} - - -#endif /* end #if !defined */ - -ACE_INLINE -PortableInterceptor::Interceptor::Interceptor (void) // default constructor -{} - -ACE_INLINE -PortableInterceptor::Interceptor::~Interceptor (void) // destructor -{} - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR___VAR_CI_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR___VAR_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::Interceptor_var -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Interceptor_var::Interceptor_var (void) // default constructor - : ptr_ (Interceptor::_nil ()) -{} - -ACE_INLINE -PortableInterceptor::Interceptor_var::Interceptor_var (Interceptor_ptr p) - : ptr_ (p) -{} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Interceptor_var::Interceptor_var (const ::PortableInterceptor::Interceptor_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (Interceptor::_duplicate (p.ptr ())) -{} - -ACE_INLINE -PortableInterceptor::Interceptor_var::~Interceptor_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE PortableInterceptor::Interceptor_var & -PortableInterceptor::Interceptor_var::operator= (Interceptor_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE PortableInterceptor::Interceptor_var & -PortableInterceptor::Interceptor_var::operator= (const ::PortableInterceptor::Interceptor_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Interceptor::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -PortableInterceptor::Interceptor_var::operator const ::PortableInterceptor::Interceptor_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::Interceptor_var::operator ::PortableInterceptor::Interceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr & -PortableInterceptor::Interceptor_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr & -PortableInterceptor::Interceptor_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Interceptor::_nil (); - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor_var::_retn (void) -{ - // yield ownership of managed obj reference - ::PortableInterceptor::Interceptor_ptr val = this->ptr_; - this->ptr_ = ::PortableInterceptor::Interceptor::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR___OUT_CI_) -#define _PORTABLEINTERCEPTOR_INTERCEPTOR___OUT_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::Interceptor_out -// ************************************************************* - -ACE_INLINE -PortableInterceptor::Interceptor_out::Interceptor_out (Interceptor_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::PortableInterceptor::Interceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::Interceptor_out::Interceptor_out (Interceptor_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::Interceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::Interceptor_out::Interceptor_out (const ::PortableInterceptor::Interceptor_out &p) // copy constructor - : ptr_ (ACE_const_cast (Interceptor_out &, p).ptr_) -{} - -ACE_INLINE ::PortableInterceptor::Interceptor_out & -PortableInterceptor::Interceptor_out::operator= (const ::PortableInterceptor::Interceptor_out &p) -{ - this->ptr_ = ACE_const_cast (Interceptor_out&, p).ptr_; - return *this; -} - -ACE_INLINE PortableInterceptor::Interceptor_out & -PortableInterceptor::Interceptor_out::operator= (const ::PortableInterceptor::Interceptor_var &p) -{ - this->ptr_ = ::PortableInterceptor::Interceptor::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE PortableInterceptor::Interceptor_out & -PortableInterceptor::Interceptor_out::operator= (Interceptor_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -PortableInterceptor::Interceptor_out::operator ::PortableInterceptor::Interceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr & -PortableInterceptor::Interceptor_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::Interceptor_ptr -PortableInterceptor::Interceptor_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void) // default constructor -{} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor (void) // destructor -{} - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___VAR_CI_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___VAR_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::ServerRequestInterceptor_var -// ************************************************************* - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::ServerRequestInterceptor_var (void) // default constructor - : ptr_ (ServerRequestInterceptor::_nil ()) -{} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::ServerRequestInterceptor_var (ServerRequestInterceptor_ptr p) - : ptr_ (p) -{} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::ServerRequestInterceptor_var (const ::PortableInterceptor::ServerRequestInterceptor_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (ServerRequestInterceptor::_duplicate (p.ptr ())) -{} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::~ServerRequestInterceptor_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE PortableInterceptor::ServerRequestInterceptor_var & -PortableInterceptor::ServerRequestInterceptor_var::operator= (ServerRequestInterceptor_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE PortableInterceptor::ServerRequestInterceptor_var & -PortableInterceptor::ServerRequestInterceptor_var::operator= (const ::PortableInterceptor::ServerRequestInterceptor_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::operator const ::PortableInterceptor::ServerRequestInterceptor_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_var::operator ::PortableInterceptor::ServerRequestInterceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr & -PortableInterceptor::ServerRequestInterceptor_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr & -PortableInterceptor::ServerRequestInterceptor_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_nil (); - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor_var::_retn (void) -{ - // yield ownership of managed obj reference - ::PortableInterceptor::ServerRequestInterceptor_ptr val = this->ptr_; - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___OUT_CI_) -#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR___OUT_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::ServerRequestInterceptor_out -// ************************************************************* - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_out::ServerRequestInterceptor_out (ServerRequestInterceptor_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_out::ServerRequestInterceptor_out (ServerRequestInterceptor_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_out::ServerRequestInterceptor_out (const ::PortableInterceptor::ServerRequestInterceptor_out &p) // copy constructor - : ptr_ (ACE_const_cast (ServerRequestInterceptor_out &, p).ptr_) -{} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_out & -PortableInterceptor::ServerRequestInterceptor_out::operator= (const ::PortableInterceptor::ServerRequestInterceptor_out &p) -{ - this->ptr_ = ACE_const_cast (ServerRequestInterceptor_out&, p).ptr_; - return *this; -} - -ACE_INLINE PortableInterceptor::ServerRequestInterceptor_out & -PortableInterceptor::ServerRequestInterceptor_out::operator= (const ::PortableInterceptor::ServerRequestInterceptor_var &p) -{ - this->ptr_ = ::PortableInterceptor::ServerRequestInterceptor::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE PortableInterceptor::ServerRequestInterceptor_out & -PortableInterceptor::ServerRequestInterceptor_out::operator= (ServerRequestInterceptor_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -PortableInterceptor::ServerRequestInterceptor_out::operator ::PortableInterceptor::ServerRequestInterceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr & -PortableInterceptor::ServerRequestInterceptor_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ServerRequestInterceptor_ptr -PortableInterceptor::ServerRequestInterceptor_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor::ClientRequestInterceptor (void) // default constructor -{} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor::~ClientRequestInterceptor (void) // destructor -{} - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___VAR_CI_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___VAR_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::ClientRequestInterceptor_var -// ************************************************************* - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::ClientRequestInterceptor_var (void) // default constructor - : ptr_ (ClientRequestInterceptor::_nil ()) -{} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::ClientRequestInterceptor_var (ClientRequestInterceptor_ptr p) - : ptr_ (p) -{} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor_var::ptr (void) const -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::ClientRequestInterceptor_var (const ::PortableInterceptor::ClientRequestInterceptor_var &p) // copy constructor - : TAO_Base_var (), - ptr_ (ClientRequestInterceptor::_duplicate (p.ptr ())) -{} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::~ClientRequestInterceptor_var (void) // destructor -{ - CORBA::release (this->ptr_); -} - -ACE_INLINE PortableInterceptor::ClientRequestInterceptor_var & -PortableInterceptor::ClientRequestInterceptor_var::operator= (ClientRequestInterceptor_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -ACE_INLINE PortableInterceptor::ClientRequestInterceptor_var & -PortableInterceptor::ClientRequestInterceptor_var::operator= (const ::PortableInterceptor::ClientRequestInterceptor_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_duplicate (p.ptr ()); - } - return *this; -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::operator const ::PortableInterceptor::ClientRequestInterceptor_ptr &() const // cast -{ - return this->ptr_; -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_var::operator ::PortableInterceptor::ClientRequestInterceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor_var::operator-> (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor_var::in (void) const -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr & -PortableInterceptor::ClientRequestInterceptor_var::inout (void) -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr & -PortableInterceptor::ClientRequestInterceptor_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_nil (); - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor_var::_retn (void) -{ - // yield ownership of managed obj reference - ::PortableInterceptor::ClientRequestInterceptor_ptr val = this->ptr_; - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_nil (); - return val; -} - - -#endif /* end #if !defined */ - - -#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___OUT_CI_) -#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR___OUT_CI_ - -// ************************************************************* -// Inline operations for class PortableInterceptor::ClientRequestInterceptor_out -// ************************************************************* - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_out::ClientRequestInterceptor_out (ClientRequestInterceptor_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_out::ClientRequestInterceptor_out (ClientRequestInterceptor_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_nil (); -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_out::ClientRequestInterceptor_out (const ::PortableInterceptor::ClientRequestInterceptor_out &p) // copy constructor - : ptr_ (ACE_const_cast (ClientRequestInterceptor_out &, p).ptr_) -{} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_out & -PortableInterceptor::ClientRequestInterceptor_out::operator= (const ::PortableInterceptor::ClientRequestInterceptor_out &p) -{ - this->ptr_ = ACE_const_cast (ClientRequestInterceptor_out&, p).ptr_; - return *this; -} - -ACE_INLINE PortableInterceptor::ClientRequestInterceptor_out & -PortableInterceptor::ClientRequestInterceptor_out::operator= (const ::PortableInterceptor::ClientRequestInterceptor_var &p) -{ - this->ptr_ = ::PortableInterceptor::ClientRequestInterceptor::_duplicate (p.ptr ()); - return *this; -} - -ACE_INLINE PortableInterceptor::ClientRequestInterceptor_out & -PortableInterceptor::ClientRequestInterceptor_out::operator= (ClientRequestInterceptor_ptr p) -{ - this->ptr_ = p; - return *this; -} - -ACE_INLINE -PortableInterceptor::ClientRequestInterceptor_out::operator ::PortableInterceptor::ClientRequestInterceptor_ptr &() // cast -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr & -PortableInterceptor::ClientRequestInterceptor_out::ptr (void) // ptr -{ - return this->ptr_; -} - -ACE_INLINE ::PortableInterceptor::ClientRequestInterceptor_ptr -PortableInterceptor::ClientRequestInterceptor_out::operator-> (void) -{ - return this->ptr_; -} - - -#endif /* end #if !defined */ - |