diff options
Diffstat (limited to 'TAO/tao/PI/ClientRequestInterceptorA.cpp')
-rw-r--r-- | TAO/tao/PI/ClientRequestInterceptorA.cpp | 86 |
1 files changed, 79 insertions, 7 deletions
diff --git a/TAO/tao/PI/ClientRequestInterceptorA.cpp b/TAO/tao/PI/ClientRequestInterceptorA.cpp index b3c99cc3579..7a1f1aca023 100644 --- a/TAO/tao/PI/ClientRequestInterceptorA.cpp +++ b/TAO/tao/PI/ClientRequestInterceptorA.cpp @@ -25,18 +25,16 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -#include "tao/PI/ClientRequestInterceptorA.h" #include "tao/AnyTypeCode/Null_RefCount_Policy.h" #include "tao/AnyTypeCode/TypeCode_Constants.h" #include "tao/AnyTypeCode/Alias_TypeCode_Static.h" #include "tao/AnyTypeCode/Objref_TypeCode_Static.h" #include "tao/AnyTypeCode/String_TypeCode_Static.h" #include "tao/AnyTypeCode/Any.h" -#include "tao/CDR.h" -#include "tao/AnyTypeCode/Any.h" #include "tao/AnyTypeCode/Any_Impl_T.h" -TAO_BEGIN_VERSIONED_NAMESPACE_DECL +#include "ClientRequestInterceptorC.h" +#include "tao/CDR.h" // TAO_IDL - Generated from // be\be_visitor_typecode/objref_typecode.cpp:76 @@ -44,10 +42,10 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL static TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy> _tao_tc_PortableInterceptor_ClientRequestInterceptor ( - ::CORBA::tk_local_interface, + CORBA::tk_local_interface, "IDL:omg.org/PortableInterceptor/ClientRequestInterceptor:1.0", "ClientRequestInterceptor"); - + namespace PortableInterceptor { ::CORBA::TypeCode_ptr const _tc_ClientRequestInterceptor = @@ -55,4 +53,78 @@ namespace PortableInterceptor } -TAO_END_VERSIONED_NAMESPACE_DECL + +// TAO_IDL - Generated from +// be\be_visitor_interface/any_op_cs.cpp:50 + +namespace TAO +{ + template<> + CORBA::Boolean + Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::to_object ( + CORBA::Object_ptr &_tao_elem + ) const + { + _tao_elem = CORBA::Object::_duplicate (this->value_); + return true; + } +} + +namespace TAO +{ + template<> + CORBA::Boolean + Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::marshal_value (TAO_OutputCDR &) + { + return false; + } + + template<> + CORBA::Boolean + Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::demarshal_value (TAO_InputCDR &) + { + return false; + } +} + +// Copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + PortableInterceptor::ClientRequestInterceptor_ptr _tao_elem + ) +{ + PortableInterceptor::ClientRequestInterceptor_ptr _tao_objptr = + PortableInterceptor::ClientRequestInterceptor::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; +} + +// Non-copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + PortableInterceptor::ClientRequestInterceptor_ptr *_tao_elem + ) +{ + TAO::Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::insert ( + _tao_any, + PortableInterceptor::ClientRequestInterceptor::_tao_any_destructor, + PortableInterceptor::_tc_ClientRequestInterceptor, + *_tao_elem + ); +} + +CORBA::Boolean +operator>>= ( + const CORBA::Any &_tao_any, + PortableInterceptor::ClientRequestInterceptor_ptr &_tao_elem + ) +{ + return + TAO::Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::extract ( + _tao_any, + PortableInterceptor::ClientRequestInterceptor::_tao_any_destructor, + PortableInterceptor::_tc_ClientRequestInterceptor, + _tao_elem + ); +} |