diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-10-28 18:31:01 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-10-28 18:31:01 +0000 |
commit | c20c95d4d526d887c9782960a3ff73f63c3c1c85 (patch) | |
tree | fd6ae8c3db752254802dfaafd1543974a4741e47 /TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp | |
parent | 3d20d6aedf2b56b86fe2a386777c7afbf1c19c93 (diff) | |
download | ATCD-c20c95d4d526d887c9782960a3ff73f63c3c1c85.tar.gz |
ChangeLogTag:Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp')
-rw-r--r-- | TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp | 659 |
1 files changed, 329 insertions, 330 deletions
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp index b3914924d90..7e4c500a073 100644 --- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp +++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp @@ -26,20 +26,19 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:344 +// be/be_codegen.cpp:302 #include "ObjectReferenceTemplateC.h" -#include "tao/Stub.h" -#include "tao/Invocation.h" -#include "tao/PortableInterceptor.h" - -#if TAO_HAS_INTERCEPTORS == 1 -#include "tao/RequestInfo_Util.h" -#include "tao/ClientRequestInfo_i.h" -#include "tao/ClientInterceptorAdapter.h" -#endif /* TAO_HAS_INTERCEPTORS == 1 */ - +#include "tao/Exception_Data.h" +#include "tao/Invocation_Adapter.h" +#include "tao/Valuetype/ValueFactory.h" +#include "tao/Typecode.h" +#include "tao/Any_Impl_T.h" +#include "tao/Any_Dual_Impl_T.h" +#include "tao/Basic_Arguments.h" +#include "tao/UB_String_Arguments.h" +#include "tao/Var_Size_Argument_T.h" #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig @@ -50,7 +49,34 @@ #endif /* !defined INLINE */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 +// be/be_visitor_arg_traits.cpp:60 + +// Arg traits specializations. +namespace TAO +{ + + // TAO_IDL - Generated from + // be/be_visitor_arg_traits.cpp:263 + +#if !defined (_CORBA_STRINGSEQ__ARG_TRAITS_CS_) +#define _CORBA_STRINGSEQ__ARG_TRAITS_CS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_ORT_Export Arg_Traits<CORBA::StringSeq> + : public + Var_Size_Arg_Traits_T< + CORBA::StringSeq, + CORBA::StringSeq_var, + CORBA::StringSeq_out + > + { + }; + +#endif /* end #if !defined */ +}; + +// TAO_IDL - Generated from +// be/be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_PortableInterceptor_ObjectReferenceFactory[] = { @@ -92,20 +118,17 @@ static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ObjectReferenceFactory ( sizeof (PortableInterceptor::ObjectReferenceFactory) ); -TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) -TAO_NAMESPACE_BEGIN (PortableInterceptor) -TAO_NAMESPACE_DEFINE ( - ::CORBA::TypeCode_ptr, - _tc_ObjectReferenceFactory, - &_tc_TAO_tc_PortableInterceptor_ObjectReferenceFactory - ) -TAO_NAMESPACE_END +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ObjectReferenceFactory = + &_tc_TAO_tc_PortableInterceptor_ObjectReferenceFactory; +} // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/valuetype_cs.cpp:94 +// be/be_visitor_valuetype/valuetype_cs.cpp:66 void -PortableInterceptor::tao_ObjectReferenceFactory_life::tao_add_ref ( +TAO::Value_Traits<PortableInterceptor::ObjectReferenceFactory>::tao_add_ref ( PortableInterceptor::ObjectReferenceFactory * p ) { @@ -113,37 +136,13 @@ PortableInterceptor::tao_ObjectReferenceFactory_life::tao_add_ref ( } void -PortableInterceptor::tao_ObjectReferenceFactory_life::tao_remove_ref ( +TAO::Value_Traits<PortableInterceptor::ObjectReferenceFactory>::tao_remove_ref ( PortableInterceptor::ObjectReferenceFactory * p ) { CORBA::remove_ref (p); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class - TAO_Value_Var_T< - PortableInterceptor::ObjectReferenceFactory, - PortableInterceptor::tao_ObjectReferenceFactory_life - >; - template class - TAO_Value_Out_T< - PortableInterceptor::ObjectReferenceFactory, - PortableInterceptor::tao_ObjectReferenceFactory_life - >; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate \ - TAO_Value_Var_T< \ - PortableInterceptor::ObjectReferenceFactory, \ - PortableInterceptor::tao_ObjectReferenceFactory_life \ - > -# pragma instantiate \ - TAO_Value_Out_T< \ - PortableInterceptor::ObjectReferenceFactory, \ - PortableInterceptor::tao_ObjectReferenceFactory_life \ - > -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory::_downcast (CORBA::ValueBase *v) { @@ -152,7 +151,7 @@ PortableInterceptor::ObjectReferenceFactory::_downcast (CORBA::ValueBase *v) return 0; } - return (ObjectReferenceFactory *) v->_tao_obv_narrow ((ptrdiff_t) &_downcast); + return dynamic_cast<PortableInterceptor::ObjectReferenceFactory *> (v); } const char * @@ -160,41 +159,15 @@ PortableInterceptor::ObjectReferenceFactory::_tao_obv_repository_id (void) const { return this->_tao_obv_static_repository_id (); } - -void * -#if defined (_MSC_VER) -PortableInterceptor::ObjectReferenceFactory::PortableInterceptor_ObjectReferenceFactory_tao_obv_narrow (ptrdiff_t type_id) -#else -PortableInterceptor::ObjectReferenceFactory::_tao_obv_narrow (ptrdiff_t type_id) -#endif /* _MSC_VER */ -{ - if (type_id == (ptrdiff_t) &_downcast) - { - return this; - } - - void *rval = 0; - - return rval; -} - -#if defined (_MSC_VER) -void * -PortableInterceptor::ObjectReferenceFactory::_tao_obv_narrow (ptrdiff_t type_id) -{ - return this->PortableInterceptor_ObjectReferenceFactory_tao_obv_narrow (type_id); -} -#endif /* _MSC_VER */ - void PortableInterceptor::ObjectReferenceFactory::_tao_any_destructor (void *_tao_void_pointer) { - ObjectReferenceFactory *tmp = + ObjectReferenceFactory *_tao_tmp_pointer = ACE_static_cast ( ObjectReferenceFactory *, _tao_void_pointer ); - delete tmp; + CORBA::remove_ref (_tao_tmp_pointer); } CORBA::Boolean PortableInterceptor::ObjectReferenceFactory::_tao_unmarshal ( @@ -241,7 +214,7 @@ CORBA::Boolean PortableInterceptor::ObjectReferenceFactory::_tao_unmarshal ( } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 +// be/be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_PortableInterceptor_ObjectReferenceTemplate[] = { @@ -283,20 +256,17 @@ static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplate ( sizeof (PortableInterceptor::ObjectReferenceTemplate) ); -TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) -TAO_NAMESPACE_BEGIN (PortableInterceptor) -TAO_NAMESPACE_DEFINE ( - ::CORBA::TypeCode_ptr, - _tc_ObjectReferenceTemplate, - &_tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplate - ) -TAO_NAMESPACE_END +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ObjectReferenceTemplate = + &_tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplate; +} // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/valuetype_cs.cpp:94 +// be/be_visitor_valuetype/valuetype_cs.cpp:66 void -PortableInterceptor::tao_ObjectReferenceTemplate_life::tao_add_ref ( +TAO::Value_Traits<PortableInterceptor::ObjectReferenceTemplate>::tao_add_ref ( PortableInterceptor::ObjectReferenceTemplate * p ) { @@ -304,37 +274,13 @@ PortableInterceptor::tao_ObjectReferenceTemplate_life::tao_add_ref ( } void -PortableInterceptor::tao_ObjectReferenceTemplate_life::tao_remove_ref ( +TAO::Value_Traits<PortableInterceptor::ObjectReferenceTemplate>::tao_remove_ref ( PortableInterceptor::ObjectReferenceTemplate * p ) { CORBA::remove_ref (p); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class - TAO_Value_Var_T< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::tao_ObjectReferenceTemplate_life - >; - template class - TAO_Value_Out_T< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::tao_ObjectReferenceTemplate_life - >; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate \ - TAO_Value_Var_T< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > -# pragma instantiate \ - TAO_Value_Out_T< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - PortableInterceptor::ObjectReferenceTemplate * PortableInterceptor::ObjectReferenceTemplate::_downcast (CORBA::ValueBase *v) { @@ -343,7 +289,7 @@ PortableInterceptor::ObjectReferenceTemplate::_downcast (CORBA::ValueBase *v) return 0; } - return (ObjectReferenceTemplate *) v->_tao_obv_narrow ((ptrdiff_t) &_downcast); + return dynamic_cast<PortableInterceptor::ObjectReferenceTemplate *> (v); } const char * @@ -351,50 +297,15 @@ PortableInterceptor::ObjectReferenceTemplate::_tao_obv_repository_id (void) cons { return this->_tao_obv_static_repository_id (); } - -void * -#if defined (_MSC_VER) -PortableInterceptor::ObjectReferenceTemplate::PortableInterceptor_ObjectReferenceTemplate_tao_obv_narrow (ptrdiff_t type_id) -#else -PortableInterceptor::ObjectReferenceTemplate::_tao_obv_narrow (ptrdiff_t type_id) -#endif /* _MSC_VER */ -{ - if (type_id == (ptrdiff_t) &_downcast) - { - return this; - } - - void *rval = 0; - - if (rval == 0) - { -#if defined (_MSC_VER) - rval = this->PortableInterceptor_ObjectReferenceFactory_tao_obv_narrow (type_id); -#else - rval = this->PortableInterceptor::ObjectReferenceFactory::_tao_obv_narrow (type_id); -#endif /* _MSC_VER */ - } - - return rval; -} - -#if defined (_MSC_VER) -void * -PortableInterceptor::ObjectReferenceTemplate::_tao_obv_narrow (ptrdiff_t type_id) -{ - return this->PortableInterceptor_ObjectReferenceTemplate_tao_obv_narrow (type_id); -} -#endif /* _MSC_VER */ - void PortableInterceptor::ObjectReferenceTemplate::_tao_any_destructor (void *_tao_void_pointer) { - ObjectReferenceTemplate *tmp = + ObjectReferenceTemplate *_tao_tmp_pointer = ACE_static_cast ( ObjectReferenceTemplate *, _tao_void_pointer ); - delete tmp; + CORBA::remove_ref (_tao_tmp_pointer); } CORBA::Boolean PortableInterceptor::ObjectReferenceTemplate::_tao_unmarshal ( @@ -441,7 +352,7 @@ CORBA::Boolean PortableInterceptor::ObjectReferenceTemplate::_tao_unmarshal ( } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:72 +// be/be_visitor_sequence/sequence_cs.cpp:66 #if !defined (_PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ_CS_) #define _PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ_CS_ @@ -454,8 +365,7 @@ PortableInterceptor::ObjectReferenceTemplateSeq::ObjectReferenceTemplateSeq ( ) : TAO_Unbounded_Valuetype_Sequence< PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life + PortableInterceptor::ObjectReferenceTemplate_var > (max) {} @@ -468,8 +378,7 @@ PortableInterceptor::ObjectReferenceTemplateSeq::ObjectReferenceTemplateSeq ( ) : TAO_Unbounded_Valuetype_Sequence< PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life + PortableInterceptor::ObjectReferenceTemplate_var > (max, length, buffer, release) {} @@ -479,8 +388,7 @@ PortableInterceptor::ObjectReferenceTemplateSeq::ObjectReferenceTemplateSeq ( ) : TAO_Unbounded_Valuetype_Sequence< PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life + PortableInterceptor::ObjectReferenceTemplate_var > (seq) {} @@ -492,129 +400,15 @@ void PortableInterceptor::ObjectReferenceTemplateSeq::_tao_any_destructor ( void * _tao_void_pointer ) { - ObjectReferenceTemplateSeq * tmp = - ACE_static_cast ( - ObjectReferenceTemplateSeq *, - _tao_void_pointer - ); - delete tmp; + ObjectReferenceTemplateSeq * _tao_tmp_pointer = + ACE_static_cast (ObjectReferenceTemplateSeq *, _tao_void_pointer); + delete _tao_tmp_pointer; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class - TAO_Valuetype_Manager< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - >; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -# pragma instantiate \ - TAO_Valuetype_Manager< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::ObjectReferenceTemplate_var, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > - -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class - TAO_MngSeq_Var_T< - PortableInterceptor::ObjectReferenceTemplateSeq, - TAO_Valuetype_Manager< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - > - >; - -template class - TAO_Seq_Var_Base_T< - PortableInterceptor::ObjectReferenceTemplateSeq, - TAO_Valuetype_Manager< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - > - >; - -template class - TAO_MngSeq_Out_T< - PortableInterceptor::ObjectReferenceTemplateSeq, - PortableInterceptor::ObjectReferenceTemplateSeq_var, - TAO_Valuetype_Manager< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - > - >; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -# pragma instantiate \ - TAO_MngSeq_Var_T< \ - PortableInterceptor::ObjectReferenceTemplateSeq, \ - TAO_Valuetype_Manager< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::ObjectReferenceTemplate_var, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > \ - > - -# pragma instantiate \ - TAO_Seq_Var_Base_T< \ - PortableInterceptor::ObjectReferenceTemplateSeq, \ - TAO_Valuetype_Manager< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::ObjectReferenceTemplate_var, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > \ - > - -# pragma instantiate \ - TAO_MngSeq_Out_T< \ - PortableInterceptor::ObjectReferenceTemplateSeq, \ - PortableInterceptor::ObjectReferenceTemplateSeq_var, \ - TAO_Valuetype_Manager< \ - PortableInterceptor::ObjectReferenceTemplate, \ - PortableInterceptor::ObjectReferenceTemplate_var, \ - PortableInterceptor::tao_ObjectReferenceTemplate_life \ - > \ - > - -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if !defined (__TAO_UNBOUNDED_VALUETYPE_SEQUENCE_OBJECTREFERENCETEMPLATE_CS_) -#define __TAO_UNBOUNDED_VALUETYPE_SEQUENCE_OBJECTREFERENCETEMPLATE_CS_ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class TAO_Unbounded_Valuetype_Sequence< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - >; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate TAO_Unbounded_Valuetype_Sequence< - PortableInterceptor::ObjectReferenceTemplate, - PortableInterceptor::ObjectReferenceTemplate_var, - PortableInterceptor::tao_ObjectReferenceTemplate_life - > - -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* end #if !defined */ - #endif /* end #if !defined */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 +// be/be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_PortableInterceptor_ObjectReferenceTemplateSeq[] = { @@ -690,17 +484,14 @@ static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplateSeq sizeof (PortableInterceptor::ObjectReferenceTemplateSeq) ); -TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) -TAO_NAMESPACE_BEGIN (PortableInterceptor) -TAO_NAMESPACE_DEFINE ( - ::CORBA::TypeCode_ptr, - _tc_ObjectReferenceTemplateSeq, - &_tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplateSeq - ) -TAO_NAMESPACE_END +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ObjectReferenceTemplateSeq = + &_tc_TAO_tc_PortableInterceptor_ObjectReferenceTemplateSeq; +} // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 +// be/be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_PortableInterceptor_AdapterManagerId[] = { @@ -738,17 +529,14 @@ static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterManagerId ( sizeof (PortableInterceptor::AdapterManagerId) ); -TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) -TAO_NAMESPACE_BEGIN (PortableInterceptor) -TAO_NAMESPACE_DEFINE ( - ::CORBA::TypeCode_ptr, - _tc_AdapterManagerId, - &_tc_TAO_tc_PortableInterceptor_AdapterManagerId - ) -TAO_NAMESPACE_END +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_AdapterManagerId = + &_tc_TAO_tc_PortableInterceptor_AdapterManagerId; +} // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 +// be/be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_PortableInterceptor_AdapterState[] = { @@ -784,19 +572,28 @@ static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterState ( sizeof (PortableInterceptor::AdapterState) ); -TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) -TAO_NAMESPACE_BEGIN (PortableInterceptor) -TAO_NAMESPACE_DEFINE ( - ::CORBA::TypeCode_ptr, - _tc_AdapterState, - &_tc_TAO_tc_PortableInterceptor_AdapterState - ) -TAO_NAMESPACE_END +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_AdapterState = + &_tc_TAO_tc_PortableInterceptor_AdapterState; +} // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/any_op_cs.cpp:57 +// be/be_visitor_valuetype/any_op_cs.cpp:57 -// Copying insertion. + + +template<> +ACE_INLINE +CORBA::Boolean +TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceFactory>::to_value ( + CORBA::ValueBase *&_tao_elem + ) const +{ + CORBA::add_ref (this->value_); + _tao_elem = this->value_; + return 1; +}// Copying insertion. void operator<<= ( CORBA::Any &_tao_any, @@ -837,17 +634,24 @@ operator>>= ( ); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceFactory>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceFactory> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/any_op_cs.cpp:57 +// be/be_visitor_valuetype/any_op_cs.cpp:57 -// Copying insertion. + + +template<> +ACE_INLINE +CORBA::Boolean +TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceTemplate>::to_value ( + CORBA::ValueBase *&_tao_elem + ) const +{ + CORBA::add_ref (this->value_); + _tao_elem = this->value_; + return 1; +}// Copying insertion. void operator<<= ( CORBA::Any &_tao_any, @@ -888,15 +692,10 @@ operator>>= ( ); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceTemplate>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate TAO::Any_Impl_T<PortableInterceptor::ObjectReferenceTemplate> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 +// be/be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -953,15 +752,8 @@ CORBA::Boolean operator>>= ( ); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - template class TAO::Any_Dual_Impl_T<PortableInterceptor::ObjectReferenceTemplateSeq>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate TAO::Any_Dual_Impl_T<PortableInterceptor::ObjectReferenceTemplateSeq> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:248 +// be/be_valuetype.cpp:490 void CORBA::add_ref (PortableInterceptor::ObjectReferenceFactory * vt) @@ -982,7 +774,7 @@ CORBA::remove_ref (PortableInterceptor::ObjectReferenceFactory * vt) } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/cdr_op_cs.cpp:73 +// be/be_visitor_valuetype/cdr_op_cs.cpp:73 CORBA::Boolean operator<< ( @@ -1013,7 +805,7 @@ operator>> ( // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:248 +// be/be_valuetype.cpp:490 void CORBA::add_ref (PortableInterceptor::ObjectReferenceTemplate * vt) @@ -1034,7 +826,7 @@ CORBA::remove_ref (PortableInterceptor::ObjectReferenceTemplate * vt) } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/cdr_op_cs.cpp:73 +// be/be_visitor_valuetype/cdr_op_cs.cpp:73 CORBA::Boolean operator<< ( @@ -1065,7 +857,7 @@ operator>> ( // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:80 +// be/be_visitor_sequence/cdr_op_cs.cpp:95 #if !defined _TAO_CDR_OP_PortableInterceptor_ObjectReferenceTemplateSeq_CPP_ #define _TAO_CDR_OP_PortableInterceptor_ObjectReferenceTemplateSeq_CPP_ @@ -1136,3 +928,210 @@ CORBA::Boolean operator>> ( #endif /* _TAO_CDR_OP_PortableInterceptor_ObjectReferenceTemplateSeq_CPP_ */ +// TAO_IDL - Generated from +// be/be_visitor_root/root.cpp:1702 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + +#if !defined (_CORBA_SEQUENCE__ARG_TRAITS_TMPLINST_CS_) +#define _CORBA_SEQUENCE__ARG_TRAITS_TMPLINST_CS_ + + template class TAO::Arg_Traits<CORBA::StringSeq>; + + template class + TAO::Var_Size_Arg_Traits_T< + CORBA::StringSeq, + CORBA::StringSeq_var, + CORBA::StringSeq_out + >; + +#endif /* end #if !defined */ + + template class TAO::Value_Traits<PortableInterceptor::ObjectReferenceFactory>; + + template class + TAO_Value_Var_T< + PortableInterceptor::ObjectReferenceFactory + + >; + + template class + TAO_Value_Out_T< + PortableInterceptor::ObjectReferenceFactory + + >; + + template class + TAO::Any_Impl_T< + PortableInterceptor::ObjectReferenceFactory + >; + + template class TAO::Value_Traits<PortableInterceptor::ObjectReferenceTemplate>; + + template class + TAO_Value_Var_T< + PortableInterceptor::ObjectReferenceTemplate + + >; + + template class + TAO_Value_Out_T< + PortableInterceptor::ObjectReferenceTemplate + + >; + + template class + TAO::Any_Impl_T< + PortableInterceptor::ObjectReferenceTemplate + >; + + template class + TAO_Valuetype_Manager< + PortableInterceptor::ObjectReferenceTemplate, + PortableInterceptor::ObjectReferenceTemplate_var + >; + + template class + TAO_MngSeq_Var_T< + PortableInterceptor::ObjectReferenceTemplateSeq, + TAO_Valuetype_Manager< + PortableInterceptor::ObjectReferenceTemplate, + PortableInterceptor::ObjectReferenceTemplate_var + > + >; + + template class + TAO_Seq_Var_Base_T< + PortableInterceptor::ObjectReferenceTemplateSeq, + TAO_Valuetype_Manager< + PortableInterceptor::ObjectReferenceTemplate, + PortableInterceptor::ObjectReferenceTemplate_var + > + >; + + template class + TAO_MngSeq_Out_T< + PortableInterceptor::ObjectReferenceTemplateSeq, + PortableInterceptor::ObjectReferenceTemplateSeq_var, + TAO_Valuetype_Manager< + PortableInterceptor::ObjectReferenceTemplate, + PortableInterceptor::ObjectReferenceTemplate_var + > + >; + +#if !defined (_PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ__EXPLICIT_CS_) +#define _PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ__EXPLICIT_CS_ + + template class + TAO_Unbounded_Valuetype_Sequence< + PortableInterceptor::ObjectReferenceTemplate, + PortableInterceptor::ObjectReferenceTemplate_var + >; + +#endif /* end #if !defined */ + + template class + TAO::Any_Dual_Impl_T< + PortableInterceptor::ObjectReferenceTemplateSeq + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#if !defined (_CORBA_SEQUENCE__ARG_TRAITS_TMPLINST_CS_) +#define _CORBA_SEQUENCE__ARG_TRAITS_TMPLINST_CS_ + +# pragma instantiate TAO::Arg_Traits<CORBA::StringSeq> + +# pragma instantiate \ + TAO::Var_Size_Arg_Traits_T< \ + CORBA::StringSeq, \ + CORBA::StringSeq_var, \ + CORBA::StringSeq_out \ + > + +#endif /* end #if !defined */ + +# pragma instantiate TAO::Value_Traits<PortableInterceptor::ObjectReferenceFactory> + +# pragma instantiate \ + TAO_Value_Var_T< \ + PortableInterceptor::ObjectReferenceFactory \ + + > + +# pragma instantiate \ + TAO_Value_Out_T< \ + PortableInterceptor::ObjectReferenceFactory \ + + > + +# pragma instantiate \ + TAO::Any_Impl_T< \ + PortableInterceptor::ObjectReferenceFactory \ + > + +# pragma instantiate TAO::Value_Traits<PortableInterceptor::ObjectReferenceTemplate> + +# pragma instantiate \ + TAO_Value_Var_T< \ + PortableInterceptor::ObjectReferenceTemplate \ + + > + +# pragma instantiate \ + TAO_Value_Out_T< \ + PortableInterceptor::ObjectReferenceTemplate \ + + > + +# pragma instantiate \ + TAO::Any_Impl_T< \ + PortableInterceptor::ObjectReferenceTemplate \ + > + +# pragma instantiate \ + TAO_MngSeq_Var_T< \ + PortableInterceptor::ObjectReferenceTemplateSeq, \ + TAO_Valuetype_Manager< \ + PortableInterceptor::ObjectReferenceTemplate, \ + PortableInterceptor::ObjectReferenceTemplate_var \ + > \ + > + +# pragma instantiate \ + TAO_Seq_Var_Base_T< \ + PortableInterceptor::ObjectReferenceTemplateSeq, \ + TAO_Valuetype_Manager< \ + PortableInterceptor::ObjectReferenceTemplate, \ + PortableInterceptor::ObjectReferenceTemplate_var \ + > \ + > + +# pragma instantiate \ + TAO_MngSeq_Out_T< \ + PortableInterceptor::ObjectReferenceTemplateSeq, \ + PortableInterceptor::ObjectReferenceTemplateSeq_var, \ + TAO_Valuetype_Manager< \ + PortableInterceptor::ObjectReferenceTemplate, \ + PortableInterceptor::ObjectReferenceTemplate_var \ + > \ + > + +#if !defined (_PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ__EXPLICIT_CS_) +#define _PORTABLEINTERCEPTOR_OBJECTREFERENCETEMPLATESEQ__EXPLICIT_CS_ + +# pragma instantiate \ + TAO_Unbounded_Valuetype_Sequence< \ + PortableInterceptor::ObjectReferenceTemplate, \ + PortableInterceptor::ObjectReferenceTemplate_var \ + > + +#endif /* end #if !defined */ + +# pragma instantiate \ + TAO::Any_Dual_Impl_T< \ + PortableInterceptor::ObjectReferenceTemplateSeq \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + |