diff options
Diffstat (limited to 'TAO/tao/PI/ORBInitializerA.cpp')
-rw-r--r-- | TAO/tao/PI/ORBInitializerA.cpp | 87 |
1 files changed, 80 insertions, 7 deletions
diff --git a/TAO/tao/PI/ORBInitializerA.cpp b/TAO/tao/PI/ORBInitializerA.cpp index 14a39962574..8c9660f49c3 100644 --- a/TAO/tao/PI/ORBInitializerA.cpp +++ b/TAO/tao/PI/ORBInitializerA.cpp @@ -25,17 +25,15 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -#include "tao/PI/ORBInitializerA.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/Any.h" -#include "tao/CDR.h" -#include "tao/AnyTypeCode/Any.h" #include "tao/AnyTypeCode/Any_Impl_T.h" -TAO_BEGIN_VERSIONED_NAMESPACE_DECL +#include "ORBInitializerC.h" +#include "tao/CDR.h" // TAO_IDL - Generated from // be\be_visitor_typecode/objref_typecode.cpp:76 @@ -43,14 +41,89 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL static TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy> _tao_tc_PortableInterceptor_ORBInitializer ( - ::CORBA::tk_local_interface, + CORBA::tk_local_interface, "IDL:omg.org/PortableInterceptor/ORBInitializer:1.0", "ORBInitializer"); - + namespace PortableInterceptor { ::CORBA::TypeCode_ptr const _tc_ORBInitializer = &_tao_tc_PortableInterceptor_ORBInitializer; } -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::ORBInitializer>::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::ORBInitializer>::marshal_value (TAO_OutputCDR &) + { + return false; + } + + template<> + CORBA::Boolean + Any_Impl_T<PortableInterceptor::ORBInitializer>::demarshal_value (TAO_InputCDR &) + { + return false; + } +} + +// Copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + PortableInterceptor::ORBInitializer_ptr _tao_elem + ) +{ + PortableInterceptor::ORBInitializer_ptr _tao_objptr = + PortableInterceptor::ORBInitializer::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; +} + +// Non-copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + PortableInterceptor::ORBInitializer_ptr *_tao_elem + ) +{ + TAO::Any_Impl_T<PortableInterceptor::ORBInitializer>::insert ( + _tao_any, + PortableInterceptor::ORBInitializer::_tao_any_destructor, + PortableInterceptor::_tc_ORBInitializer, + *_tao_elem + ); +} + +CORBA::Boolean +operator>>= ( + const CORBA::Any &_tao_any, + PortableInterceptor::ORBInitializer_ptr &_tao_elem + ) +{ + return + TAO::Any_Impl_T<PortableInterceptor::ORBInitializer>::extract ( + _tao_any, + PortableInterceptor::ORBInitializer::_tao_any_destructor, + PortableInterceptor::_tc_ORBInitializer, + _tao_elem + ); +} |