diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-03-12 16:18:58 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-03-12 16:18:58 +0000 |
commit | 311d9d74b593b8b8856151e3e1358df3f00feb0f (patch) | |
tree | bf1c5cdcd20e3d61ed9d590adfaef8b5fce061df /TAO/tao/IOPC.cpp | |
parent | f5bacbe21762d818bb4e4f70961040e26061e840 (diff) | |
download | ATCD-311d9d74b593b8b8856151e3e1358df3f00feb0f.tar.gz |
ChangeLogTag: Wed Mar 12 09:49:00 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tao/IOPC.cpp')
-rw-r--r-- | TAO/tao/IOPC.cpp | 4503 |
1 files changed, 1971 insertions, 2532 deletions
diff --git a/TAO/tao/IOPC.cpp b/TAO/tao/IOPC.cpp index 4054502091b..196a19e9b22 100644 --- a/TAO/tao/IOPC.cpp +++ b/TAO/tao/IOPC.cpp @@ -19,8 +19,11 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -#include "IOPC.h" +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314 + +#include "IOPC.h" #include "tao/Stub.h" #include "tao/Invocation.h" #include "tao/PortableInterceptor.h" @@ -31,6 +34,8 @@ #include "tao/ClientInterceptorAdapter.h" #endif /* TAO_HAS_INTERCEPTORS == 1 */ + + #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig #endif /* __BORLANDC__ */ @@ -39,23 +44,26 @@ #include "IOPC.i" #endif /* !defined INLINE */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_ProfileId[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ProfileId:1.0 - 10, - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), + 10, + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), ACE_NTOHL (0x64000000), // name = ProfileId - CORBA::tk_ulong, + CORBA::tk_ulong, }; @@ -69,63 +77,62 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_ProfileId ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ProfileId, &_tc_TAO_tc_IOP_ProfileId) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_ProfileId, + &_tc_TAO_tc_IOP_ProfileId + ) TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_INTERNET_IOP, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_MULTIPLE_COMPONENTS, 1U) -TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_TaggedProfile[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 34, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x65645072), - ACE_NTOHL (0x6f66696c), - ACE_NTOHL (0x653a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), + ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/TaggedProfile:1.0 - 14, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x65645072), - ACE_NTOHL (0x6f66696c), + 14, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), ACE_NTOHL (0x65000000), // name = TaggedProfile 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ProfileId:1.0 - 10, - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), + 10, + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), ACE_NTOHL (0x64000000), // name = ProfileId - CORBA::tk_ulong, + CORBA::tk_ulong, 13, - ACE_NTOHL (0x70726f66), - ACE_NTOHL (0x696c655f), - ACE_NTOHL (0x64617461), + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c655f), + ACE_NTOHL (0x64617461), ACE_NTOHL (0x0), // name = profile_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -144,134 +151,161 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedProfile ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_TaggedProfile, &_tc_TAO_tc_IOP_TaggedProfile) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_TaggedProfile, + &_tc_TAO_tc_IOP_TaggedProfile + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_cs.cpp:67 + void IOP::TaggedProfile::_tao_any_destructor (void *_tao_void_pointer) { TaggedProfile *tmp = ACE_static_cast (TaggedProfile*, _tao_void_pointer); delete tmp; } - #if !defined (_IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CS_) #define _IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::TaggedProfile::_tao_seq_Octet // ************************************************************* IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (void) {} -IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : + +IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max, CORBA::ULong length, CORBA::Octet *buffer, CORBA::Boolean release) - : + +IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) // copy ctor - : + +IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::TaggedProfile::_tao_seq_Octet::~_tao_seq_Octet (void) // dtor {} + void IOP::TaggedProfile::_tao_seq_Octet::_tao_any_destructor (void *_tao_void_pointer) { _tao_seq_Octet *tmp = ACE_static_cast (_tao_seq_Octet*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_IOR[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 24, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x494f523a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x494f523a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/IOR:1.0 - 4, + 4, ACE_NTOHL (0x494f5200), // name = IOR 2, // member count - 8, - ACE_NTOHL (0x74797065), + 8, + ACE_NTOHL (0x74797065), ACE_NTOHL (0x5f696400), // name = type_id - CORBA::tk_string, + CORBA::tk_string, 0U, // string length 9, - ACE_NTOHL (0x70726f66), - ACE_NTOHL (0x696c6573), + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c6573), ACE_NTOHL (0x0), // name = profiles - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 200, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_struct, // typecode kind 184, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 34, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x65645072), - ACE_NTOHL (0x6f66696c), - ACE_NTOHL (0x653a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), + ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/TaggedProfile:1.0 - 14, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x65645072), - ACE_NTOHL (0x6f66696c), + 14, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), ACE_NTOHL (0x65000000), // name = TaggedProfile 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ProfileId:1.0 - 10, - ACE_NTOHL (0x50726f66), - ACE_NTOHL (0x696c6549), + 10, + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), ACE_NTOHL (0x64000000), // name = ProfileId - CORBA::tk_ulong, + CORBA::tk_ulong, 13, - ACE_NTOHL (0x70726f66), - ACE_NTOHL (0x696c655f), - ACE_NTOHL (0x64617461), + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c655f), + ACE_NTOHL (0x64617461), ACE_NTOHL (0x0), // name = profile_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -293,15 +327,24 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_IOR ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_IOR, &_tc_TAO_tc_IOP_IOR) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_IOR, + &_tc_TAO_tc_IOP_IOR + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_cs.cpp:67 + void IOP::IOR::_tao_any_destructor (void *_tao_void_pointer) { IOR *tmp = ACE_static_cast (IOR*, _tao_void_pointer); delete tmp; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 #if !defined (TAO_USE_SEQUENCE_TEMPLATES) @@ -313,18 +356,23 @@ IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_allocate_buff { IOP::TaggedProfile* tmp = 0; tmp = _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (length); - + if (this->buffer_ != 0) - { - IOP::TaggedProfile *old = ACE_reinterpret_cast (IOP::TaggedProfile *,this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp[i] = old[i]; - - if (this->release_) - _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (old); - - } + { + IOP::TaggedProfile *old = + ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp[i] = old[i]; + } + + if (this->release_) + { + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (old); + } + } + this->buffer_ = tmp; } @@ -332,89 +380,110 @@ void IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_deallocate_buffer (void) { if (this->buffer_ == 0 || this->release_ == 0) - return; - - IOP::TaggedProfile *tmp = ACE_reinterpret_cast (IOP::TaggedProfile *,this->buffer_); - + { + return; + } + + IOP::TaggedProfile *tmp = + ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (tmp); this->buffer_ = 0; -} +} -IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::~_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void) // Dtor. +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::~_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void) { this->_deallocate_buffer (); } - #endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ #if !defined (_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_) #define _IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::IOR::_tao_seq_TaggedProfile // ************************************************************* IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (void) {} -IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (CORBA::ULong max) // uses max size - : + +IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedProfile> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (CORBA::ULong max, CORBA::ULong length, IOP::TaggedProfile *buffer, CORBA::Boolean release) - : + +IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedProfile *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedProfile> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (const _tao_seq_TaggedProfile &seq) // copy ctor - : + +IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (const _tao_seq_TaggedProfile &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedProfile> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::IOR::_tao_seq_TaggedProfile::~_tao_seq_TaggedProfile (void) // dtor {} + void IOP::IOR::_tao_seq_TaggedProfile::_tao_any_destructor (void *_tao_void_pointer) { _tao_seq_TaggedProfile *tmp = ACE_static_cast (_tao_seq_TaggedProfile*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_ComponentId[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7449643a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 - 12, - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), ACE_NTOHL (0x74496400), // name = ComponentId - CORBA::tk_ulong, + CORBA::tk_ulong, }; @@ -428,55 +497,62 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_ComponentId ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ComponentId, &_tc_TAO_tc_IOP_ComponentId) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_ComponentId, + &_tc_TAO_tc_IOP_ComponentId + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_TaggedComponent[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 36, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 - 16, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e7400), // name = TaggedComponent 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7449643a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 - 12, - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), ACE_NTOHL (0x74496400), // name = ComponentId - CORBA::tk_ulong, + CORBA::tk_ulong, 15, - ACE_NTOHL (0x636f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), ACE_NTOHL (0x74610000), // name = component_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -495,63 +571,89 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponent ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_TaggedComponent, &_tc_TAO_tc_IOP_TaggedComponent) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_TaggedComponent, + &_tc_TAO_tc_IOP_TaggedComponent + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_cs.cpp:67 + void IOP::TaggedComponent::_tao_any_destructor (void *_tao_void_pointer) { TaggedComponent *tmp = ACE_static_cast (TaggedComponent*, _tao_void_pointer); delete tmp; } - #if !defined (_IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CS_) #define _IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::TaggedComponent::_tao_seq_Octet // ************************************************************* IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (void) {} -IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : + +IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max, CORBA::ULong length, CORBA::Octet *buffer, CORBA::Boolean release) - : + +IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) // copy ctor - : + +IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::TaggedComponent::_tao_seq_Octet::~_tao_seq_Octet (void) // dtor {} + void IOP::TaggedComponent::_tao_seq_Octet::_tao_any_destructor (void *_tao_void_pointer) { _tao_seq_Octet *tmp = ACE_static_cast (_tao_seq_Octet*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 #if !defined (TAO_USE_SEQUENCE_TEMPLATES) @@ -563,18 +665,23 @@ IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_allocate_buffer (COR { IOP::TaggedComponent* tmp = 0; tmp = _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (length); - + if (this->buffer_ != 0) - { - IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp[i] = old[i]; - - if (this->release_) - _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (old); - - } + { + IOP::TaggedComponent *old = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp[i] = old[i]; + } + + if (this->release_) + { + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (old); + } + } + this->buffer_ = tmp; } @@ -582,145 +689,166 @@ void IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_deallocate_buffer (void) { if (this->buffer_ == 0 || this->release_ == 0) - return; - - IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - + { + return; + } + + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); this->buffer_ = 0; -} +} -IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::~_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) // Dtor. +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::~_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) { this->_deallocate_buffer (); } - #endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ #if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CS_) #define _IOP_MULTIPLECOMPONENTPROFILE_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::MultipleComponentProfile // ************************************************************* IOP::MultipleComponentProfile::MultipleComponentProfile (void) {} -IOP::MultipleComponentProfile::MultipleComponentProfile (CORBA::ULong max) // uses max size - : + +IOP::MultipleComponentProfile::MultipleComponentProfile (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::MultipleComponentProfile::MultipleComponentProfile (CORBA::ULong max, CORBA::ULong length, IOP::TaggedComponent *buffer, CORBA::Boolean release) - : + +IOP::MultipleComponentProfile::MultipleComponentProfile ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::MultipleComponentProfile::MultipleComponentProfile (const MultipleComponentProfile &seq) // copy ctor - : + +IOP::MultipleComponentProfile::MultipleComponentProfile (const MultipleComponentProfile &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::MultipleComponentProfile::~MultipleComponentProfile (void) // dtor {} + void IOP::MultipleComponentProfile::_tao_any_destructor (void *_tao_void_pointer) { MultipleComponentProfile *tmp = ACE_static_cast (MultipleComponentProfile*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_MultipleComponentProfile[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 45, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x4d756c74), - ACE_NTOHL (0x69706c65), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7450726f), - ACE_NTOHL (0x66696c65), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x4d756c74), + ACE_NTOHL (0x69706c65), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7450726f), + ACE_NTOHL (0x66696c65), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/MultipleComponentProfile:1.0 - 25, - ACE_NTOHL (0x4d756c74), - ACE_NTOHL (0x69706c65), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7450726f), - ACE_NTOHL (0x66696c65), + 25, + ACE_NTOHL (0x4d756c74), + ACE_NTOHL (0x69706c65), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7450726f), + ACE_NTOHL (0x66696c65), ACE_NTOHL (0x0), // name = MultipleComponentProfile - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 200, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_struct, // typecode kind 184, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 36, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 - 16, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e7400), // name = TaggedComponent 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7449643a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 - 12, - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), ACE_NTOHL (0x74496400), // name = ComponentId - CORBA::tk_ulong, + CORBA::tk_ulong, 15, - ACE_NTOHL (0x636f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), ACE_NTOHL (0x74610000), // name = component_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -742,9 +870,15 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_MultipleComponentProfile ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_MultipleComponentProfile, &_tc_TAO_tc_IOP_MultipleComponentProfile) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_MultipleComponentProfile, + &_tc_TAO_tc_IOP_MultipleComponentProfile + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 #if !defined (TAO_USE_SEQUENCE_TEMPLATES) @@ -756,18 +890,23 @@ IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_allocate_buffer (CORBA::U { IOP::TaggedComponent* tmp = 0; tmp = _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (length); - + if (this->buffer_ != 0) - { - IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp[i] = old[i]; - - if (this->release_) - _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (old); - - } + { + IOP::TaggedComponent *old = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp[i] = old[i]; + } + + if (this->release_) + { + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (old); + } + } + this->buffer_ = tmp; } @@ -775,141 +914,162 @@ void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_deallocate_buffer (void) { if (this->buffer_ == 0 || this->release_ == 0) - return; - - IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - + { + return; + } + + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); this->buffer_ = 0; -} +} -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::~_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) // Dtor. +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::~_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) { this->_deallocate_buffer (); } - #endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ #if !defined (_IOP_TAGGEDCOMPONENTLIST_CS_) #define _IOP_TAGGEDCOMPONENTLIST_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::TaggedComponentList // ************************************************************* IOP::TaggedComponentList::TaggedComponentList (void) {} -IOP::TaggedComponentList::TaggedComponentList (CORBA::ULong max) // uses max size - : + +IOP::TaggedComponentList::TaggedComponentList (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::TaggedComponentList::TaggedComponentList (CORBA::ULong max, CORBA::ULong length, IOP::TaggedComponent *buffer, CORBA::Boolean release) - : + +IOP::TaggedComponentList::TaggedComponentList ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::TaggedComponentList::TaggedComponentList (const TaggedComponentList &seq) // copy ctor - : + +IOP::TaggedComponentList::TaggedComponentList (const TaggedComponentList &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::TaggedComponentList::~TaggedComponentList (void) // dtor {} + void IOP::TaggedComponentList::_tao_any_destructor (void *_tao_void_pointer) { TaggedComponentList *tmp = ACE_static_cast (TaggedComponentList*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_TaggedComponentList[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 40, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e744c), - ACE_NTOHL (0x6973743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e744c), + ACE_NTOHL (0x6973743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponentList:1.0 - 20, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e744c), + 20, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e744c), ACE_NTOHL (0x69737400), // name = TaggedComponentList - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 200, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_struct, // typecode kind 184, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 36, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 - 16, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e7400), // name = TaggedComponent 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7449643a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 - 12, - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), ACE_NTOHL (0x74496400), // name = ComponentId - CORBA::tk_ulong, + CORBA::tk_ulong, 15, - ACE_NTOHL (0x636f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), ACE_NTOHL (0x74610000), // name = component_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -931,9 +1091,15 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponentList ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_TaggedComponentList, &_tc_TAO_tc_IOP_TaggedComponentList) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_TaggedComponentList, + &_tc_TAO_tc_IOP_TaggedComponentList + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 #if !defined (TAO_USE_SEQUENCE_TEMPLATES) @@ -945,18 +1111,23 @@ IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_allocate_buffer (CORBA::UL { IOP::TaggedComponent* tmp = 0; tmp = _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (length); - + if (this->buffer_ != 0) - { - IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp[i] = old[i]; - - if (this->release_) - _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (old); - - } + { + IOP::TaggedComponent *old = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp[i] = old[i]; + } + + if (this->release_) + { + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (old); + } + } + this->buffer_ = tmp; } @@ -964,141 +1135,162 @@ void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_deallocate_buffer (void) { if (this->buffer_ == 0 || this->release_ == 0) - return; - - IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_); - + { + return; + } + + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (tmp); this->buffer_ = 0; -} +} -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void) // Dtor. +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void) { this->_deallocate_buffer (); } - #endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ #if !defined (_IOP_TAGGEDCOMPONENTSEQ_CS_) #define _IOP_TAGGEDCOMPONENTSEQ_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::TaggedComponentSeq // ************************************************************* IOP::TaggedComponentSeq::TaggedComponentSeq (void) {} -IOP::TaggedComponentSeq::TaggedComponentSeq (CORBA::ULong max) // uses max size - : + +IOP::TaggedComponentSeq::TaggedComponentSeq (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::TaggedComponentSeq::TaggedComponentSeq (CORBA::ULong max, CORBA::ULong length, IOP::TaggedComponent *buffer, CORBA::Boolean release) - : + +IOP::TaggedComponentSeq::TaggedComponentSeq ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::TaggedComponentSeq::TaggedComponentSeq (const TaggedComponentSeq &seq) // copy ctor - : + +IOP::TaggedComponentSeq::TaggedComponentSeq (const TaggedComponentSeq &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::TaggedComponent> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::TaggedComponentSeq::~TaggedComponentSeq (void) // dtor {} + void IOP::TaggedComponentSeq::_tao_any_destructor (void *_tao_void_pointer) { TaggedComponentSeq *tmp = ACE_static_cast (TaggedComponentSeq*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_TaggedComponentSeq[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 39, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e7453), - ACE_NTOHL (0x65713a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7453), + ACE_NTOHL (0x65713a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/TaggedComponentSeq:1.0 - 19, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e7453), + 19, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7453), ACE_NTOHL (0x65710000), // name = TaggedComponentSeq - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 200, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_struct, // typecode kind 184, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 36, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), - ACE_NTOHL (0x656e743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 - 16, - ACE_NTOHL (0x54616767), - ACE_NTOHL (0x6564436f), - ACE_NTOHL (0x6d706f6e), + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e7400), // name = TaggedComponent 2, // member count - 4, + 4, ACE_NTOHL (0x74616700), // name = tag - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x7449643a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 - 12, - ACE_NTOHL (0x436f6d70), - ACE_NTOHL (0x6f6e656e), + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), ACE_NTOHL (0x74496400), // name = ComponentId - CORBA::tk_ulong, + CORBA::tk_ulong, 15, - ACE_NTOHL (0x636f6d70), - ACE_NTOHL (0x6f6e656e), - ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), ACE_NTOHL (0x74610000), // name = component_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -1120,66 +1312,33 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponentSeq ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_TaggedComponentSeq, &_tc_TAO_tc_IOP_TaggedComponentSeq) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_TaggedComponentSeq, + &_tc_TAO_tc_IOP_TaggedComponentSeq + ) TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ORB_TYPE, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_CODE_SETS, 1U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_POLICIES, 2U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ALTERNATE_IIOP_ADDRESS, 3U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_COMPLETE_OBJECT_KEY, 5U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ENDPOINT_ID_POSITION, 6U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_LOCATION_POLICY, 12U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_STRING_BINDING, 100U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_BINDING_NAME, 101U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_NO_PIPES, 102U) -TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_ServiceId[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ServiceId:1.0 - 10, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), + 10, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), ACE_NTOHL (0x64000000), // name = ServiceId - CORBA::tk_ulong, + CORBA::tk_ulong, }; @@ -1193,57 +1352,64 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceId ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ServiceId, &_tc_TAO_tc_IOP_ServiceId) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_ServiceId, + &_tc_TAO_tc_IOP_ServiceId + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_ServiceContext[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 35, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), - ACE_NTOHL (0x78743a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), + ACE_NTOHL (0x78743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContext:1.0 - 15, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), + 15, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), ACE_NTOHL (0x78740000), // name = ServiceContext 2, // member count - 11, - ACE_NTOHL (0x636f6e74), - ACE_NTOHL (0x6578745f), + 11, + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), ACE_NTOHL (0x69640000), // name = context_id - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ServiceId:1.0 - 10, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), + 10, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), ACE_NTOHL (0x64000000), // name = ServiceId - CORBA::tk_ulong, + CORBA::tk_ulong, 13, - ACE_NTOHL (0x636f6e74), - ACE_NTOHL (0x6578745f), - ACE_NTOHL (0x64617461), + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), + ACE_NTOHL (0x64617461), ACE_NTOHL (0x0), // name = context_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -1262,63 +1428,89 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceContext ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ServiceContext, &_tc_TAO_tc_IOP_ServiceContext) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_ServiceContext, + &_tc_TAO_tc_IOP_ServiceContext + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_cs.cpp:67 + void IOP::ServiceContext::_tao_any_destructor (void *_tao_void_pointer) { ServiceContext *tmp = ACE_static_cast (ServiceContext*, _tao_void_pointer); delete tmp; } - #if !defined (_IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CS_) #define _IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::ServiceContext::_tao_seq_Octet // ************************************************************* IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (void) {} -IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : + +IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max, CORBA::ULong length, CORBA::Octet *buffer, CORBA::Boolean release) - : + +IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) // copy ctor - : + +IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (const _tao_seq_Octet &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) TAO_Unbounded_Sequence<CORBA::Octet> #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<CORBA::Octet> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::ServiceContext::_tao_seq_Octet::~_tao_seq_Octet (void) // dtor {} + void IOP::ServiceContext::_tao_seq_Octet::_tao_any_destructor (void *_tao_void_pointer) { _tao_seq_Octet *tmp = ACE_static_cast (_tao_seq_Octet*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 #if !defined (TAO_USE_SEQUENCE_TEMPLATES) @@ -1330,18 +1522,23 @@ IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_allocate_buffer (CORBA::UL { IOP::ServiceContext* tmp = 0; tmp = _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (length); - + if (this->buffer_ != 0) - { - IOP::ServiceContext *old = ACE_reinterpret_cast (IOP::ServiceContext *,this->buffer_); - - for (CORBA::ULong i = 0; i < this->length_; ++i) - tmp[i] = old[i]; - - if (this->release_) - _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (old); - - } + { + IOP::ServiceContext *old = + ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp[i] = old[i]; + } + + if (this->release_) + { + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (old); + } + } + this->buffer_ = tmp; } @@ -1349,143 +1546,164 @@ void IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_deallocate_buffer (void) { if (this->buffer_ == 0 || this->release_ == 0) - return; - - IOP::ServiceContext *tmp = ACE_reinterpret_cast (IOP::ServiceContext *,this->buffer_); - + { + return; + } + + IOP::ServiceContext *tmp = + ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); this->buffer_ = 0; -} +} -IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::~_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) // Dtor. +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::~_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) { this->_deallocate_buffer (); } - #endif /* end #if !defined */ - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ #if !defined (_IOP_SERVICECONTEXTLIST_CS_) #define _IOP_SERVICECONTEXTLIST_CS_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:250 + // ************************************************************* // IOP::ServiceContextList // ************************************************************* IOP::ServiceContextList::ServiceContextList (void) {} -IOP::ServiceContextList::ServiceContextList (CORBA::ULong max) // uses max size - : + +IOP::ServiceContextList::ServiceContextList (CORBA::ULong max) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_ServiceContextList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::ServiceContext> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max) {} -IOP::ServiceContextList::ServiceContextList (CORBA::ULong max, CORBA::ULong length, IOP::ServiceContext *buffer, CORBA::Boolean release) - : + +IOP::ServiceContextList::ServiceContextList ( + CORBA::ULong max, + CORBA::ULong length, + IOP::ServiceContext *buffer, + CORBA::Boolean release + ) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_ServiceContextList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::ServiceContext> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (max, length, buffer, release) {} -IOP::ServiceContextList::ServiceContextList (const ServiceContextList &seq) // copy ctor - : + +IOP::ServiceContextList::ServiceContextList (const ServiceContextList &seq) + : + #if !defined (TAO_USE_SEQUENCE_TEMPLATES) _TAO_Unbounded_Sequence_IOP_ServiceContextList #else /* TAO_USE_SEQUENCE_TEMPLATES */ TAO_Unbounded_Sequence<IOP::ServiceContext> -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ (seq) {} + IOP::ServiceContextList::~ServiceContextList (void) // dtor {} + void IOP::ServiceContextList::_tao_any_destructor (void *_tao_void_pointer) { ServiceContextList *tmp = ACE_static_cast (ServiceContextList*, _tao_void_pointer); delete tmp; } - #endif /* end #if !defined */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_ServiceContextList[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 39, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), - ACE_NTOHL (0x78744c69), - ACE_NTOHL (0x73743a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), + ACE_NTOHL (0x78744c69), + ACE_NTOHL (0x73743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContextList:1.0 - 19, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), - ACE_NTOHL (0x78744c69), + 19, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), + ACE_NTOHL (0x78744c69), ACE_NTOHL (0x73740000), // name = ServiceContextList - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 208, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_struct, // typecode kind 192, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 35, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), - ACE_NTOHL (0x78743a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), + ACE_NTOHL (0x78743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContext:1.0 - 15, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636543), - ACE_NTOHL (0x6f6e7465), + 15, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), ACE_NTOHL (0x78740000), // name = ServiceContext 2, // member count - 11, - ACE_NTOHL (0x636f6e74), - ACE_NTOHL (0x6578745f), + 11, + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), ACE_NTOHL (0x69640000), // name = context_id - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 60, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 30, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), - ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), + ACE_NTOHL (0x643a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/ServiceId:1.0 - 10, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x69636549), + 10, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), ACE_NTOHL (0x64000000), // name = ServiceId - CORBA::tk_ulong, + CORBA::tk_ulong, 13, - ACE_NTOHL (0x636f6e74), - ACE_NTOHL (0x6578745f), - ACE_NTOHL (0x64617461), + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), + ACE_NTOHL (0x64617461), ACE_NTOHL (0x0), // name = context_data - CORBA::tk_sequence, // typecode kind + CORBA::tk_sequence, // typecode kind 12, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order CORBA::tk_octet, @@ -1507,88 +1725,15 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceContextList ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ServiceContextList, &_tc_TAO_tc_IOP_ServiceContextList) -TAO_NAMESPACE_END - -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TransactionService, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, CodeSets, 1U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, ChainBypassCheck, 2U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, ChainBypassInfo, 3U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, LogicalThreadId, 4U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, BI_DIR_IIOP, 5U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, SendingContextRunTime, 6U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, INVOCATION_POLICIES, 7U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, UnknownExceptionInfo, 9U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, RTCorbaPriority, 10U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, RTCorbaPriorityRange, 11U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_GROUP, 27U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_PRIMARY, 28U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_HEARTBEAT_ENABLED, 29U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, FT_GROUP_VERSION, 12U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, FT_REQUEST, 13U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_UIPMC, 1413566220U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_GROUP, 1413566211U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_GROUP_IIOP, 1413566212U) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_ServiceContextList, + &_tc_TAO_tc_IOP_ServiceContextList + ) TAO_NAMESPACE_END // TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:67 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 int IOP::Codec::_tao_class_id = 0; @@ -1635,13 +1780,23 @@ tao_IOP_Codec_upcast ( return *tmp; } +CORBA::Boolean +tao_IOP_Codec_marshal ( + IOP::Codec_ptr p, + TAO_OutputCDR &strm + ) +{ + return p->marshal (strm); +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:721 + // ************************************************************* // IOP::Codec_var -// TAO_IDL - Generated from -// be/be_interface.cpp:654 // ************************************************************* -IOP::Codec_var::Codec_var (void) // default constructor +IOP::Codec_var::Codec_var (void) : ptr_ (Codec::_nil ()) {} @@ -1651,12 +1806,12 @@ IOP::Codec_var::ptr (void) const return this->ptr_; } -IOP::Codec_var::Codec_var (const ::IOP::Codec_var &p) // copy constructor +IOP::Codec_var::Codec_var (const ::IOP::Codec_var &p) : TAO_Base_var (), ptr_ (Codec::_duplicate (p.ptr ())) {} -IOP::Codec_var::~Codec_var (void) // destructor +IOP::Codec_var::~Codec_var (void) { CORBA::release (this->ptr_); } @@ -1685,7 +1840,7 @@ IOP::Codec_var::operator const ::IOP::Codec_ptr &() const // cast return this->ptr_; } -IOP::Codec_var::operator ::IOP::Codec_ptr &() // cast +IOP::Codec_var::operator ::IOP::Codec_ptr &() // cast { return this->ptr_; } @@ -1760,10 +1915,11 @@ IOP::Codec_var::tao_upcast (void *src) return *tmp; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1030 + // ************************************************************* // IOP::Codec_out -// TAO_IDL - Generated from -// be/be_interface.cpp:932 // ************************************************************* IOP::Codec_out::Codec_out (Codec_ptr &p) @@ -1772,14 +1928,14 @@ IOP::Codec_out::Codec_out (Codec_ptr &p) this->ptr_ = ::IOP::Codec::_nil (); } -IOP::Codec_out::Codec_out (Codec_var &p) // constructor from _var +IOP::Codec_out::Codec_out (Codec_var &p) : ptr_ (p.out ()) { CORBA::release (this->ptr_); this->ptr_ = ::IOP::Codec::_nil (); } -IOP::Codec_out::Codec_out (const ::IOP::Codec_out &p) // copy constructor +IOP::Codec_out::Codec_out (const ::IOP::Codec_out &p) : ptr_ (ACE_const_cast (Codec_out &, p).ptr_) {} @@ -1810,7 +1966,7 @@ IOP::Codec_out::operator ::IOP::Codec_ptr &() // cast } ::IOP::Codec_ptr & -IOP::Codec_out::ptr (void) // ptr +IOP::Codec_out::ptr (void) { return this->ptr_; } @@ -1821,9 +1977,8 @@ IOP::Codec_out::operator-> (void) return this->ptr_; } - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:198 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:235 IOP::Codec::Codec (void) {} @@ -1831,13 +1986,15 @@ IOP::Codec::Codec (void) IOP::Codec::~Codec (void) {} -void IOP::Codec::_tao_any_destructor (void *_tao_void_pointer) +void +IOP::Codec::_tao_any_destructor (void *_tao_void_pointer) { - Codec *tmp = ACE_static_cast (Codec*, _tao_void_pointer); + Codec *tmp = ACE_static_cast (Codec *, _tao_void_pointer); CORBA::release (tmp); } -IOP::Codec_ptr IOP::Codec::_narrow ( +IOP::Codec_ptr +IOP::Codec::_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) @@ -1845,50 +2002,68 @@ IOP::Codec_ptr IOP::Codec::_narrow ( return Codec::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } -IOP::Codec_ptr +IOP::Codec_ptr IOP::Codec::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (obj)) - return Codec::_nil (); + { + return Codec::_nil (); + } + return - ACE_reinterpret_cast - ( + ACE_reinterpret_cast ( Codec_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &Codec::_tao_class_id - ) - ) + obj->_tao_QueryInterface ( + ACE_reinterpret_cast ( + ptr_arith_t, + &Codec::_tao_class_id + ) + ) ); } IOP::Codec_ptr IOP::Codec::_duplicate (Codec_ptr obj) { - if (!CORBA::is_nil (obj)) - obj->_add_ref (); + if (! CORBA::is_nil (obj)) + { + obj->_add_ref (); + } + return obj; } void *IOP::Codec::_tao_QueryInterface (ptr_arith_t type) { void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::IOP, Codec)::_tao_class_id)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_tao_class_id)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); + + if (type == ACE_reinterpret_cast ( + ptr_arith_t, + &ACE_NESTED_CLASS (::IOP, Codec)::_tao_class_id) + ) + { + retv = ACE_reinterpret_cast (void*, this); + } + else if (type == ACE_reinterpret_cast ( + ptr_arith_t, + &CORBA::Object::_tao_class_id) + ) + { + retv = + ACE_reinterpret_cast ( + void *, + ACE_static_cast (CORBA::Object_ptr, this) + ); + } + + if (retv != 0) + { + this->_add_ref (); + } + return retv; } @@ -1897,26 +2072,27 @@ const char* IOP::Codec::_interface_repository_id (void) const return "IDL:omg.org/IOP/Codec:1.0"; } -// Default constructor. +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 + IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", - "InvalidTypeForEncoding") + : CORBA::UserException ( + "IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", + "InvalidTypeForEncoding" + ) { } -// Destructor - all members are of self managing types. IOP::Codec::InvalidTypeForEncoding::~InvalidTypeForEncoding (void) { } -// Copy constructor. IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) : CORBA::UserException (_tao_excp._rep_id (), _tao_excp._name ()) { } -// Assignment operator. IOP::Codec::InvalidTypeForEncoding& IOP::Codec::InvalidTypeForEncoding::operator= (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) { @@ -1931,11 +2107,11 @@ void IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor (void *_tao_void_po } IOP::Codec::InvalidTypeForEncoding * -IOP::Codec::InvalidTypeForEncoding::_downcast (CORBA::Exception *exc) +IOP::Codec::InvalidTypeForEncoding::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", exc->_rep_id ())) + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", _tao_excp->_rep_id ())) { - return ACE_dynamic_cast (InvalidTypeForEncoding *, exc); + return ACE_dynamic_cast (InvalidTypeForEncoding *, _tao_excp); } else { @@ -1962,7 +2138,7 @@ IOP::Codec::InvalidTypeForEncoding::_tao_duplicate (void) const return result; } -void IOP::Codec::InvalidTypeForEncoding::_raise () +void IOP::Codec::InvalidTypeForEncoding::_raise (void) { TAO_RAISE (*this); } @@ -1983,32 +2159,41 @@ void IOP::Codec::InvalidTypeForEncoding::_tao_decode ( ACE_THROW (CORBA::MARSHAL ()); } +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr IOP::Codec::InvalidTypeForEncoding::_type (void) const +{ + return ::IOP::Codec::_tc_InvalidTypeForEncoding; +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_Codec_InvalidTypeForEncoding[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 49, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x632f496e), - ACE_NTOHL (0x76616c69), - ACE_NTOHL (0x64547970), - ACE_NTOHL (0x65466f72), - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x632f496e), + ACE_NTOHL (0x76616c69), + ACE_NTOHL (0x64547970), + ACE_NTOHL (0x65466f72), + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0 - 23, - ACE_NTOHL (0x496e7661), - ACE_NTOHL (0x6c696454), - ACE_NTOHL (0x79706546), - ACE_NTOHL (0x6f72456e), - ACE_NTOHL (0x636f6469), + 23, + ACE_NTOHL (0x496e7661), + ACE_NTOHL (0x6c696454), + ACE_NTOHL (0x79706546), + ACE_NTOHL (0x6f72456e), + ACE_NTOHL (0x636f6469), ACE_NTOHL (0x6e670000), // name = InvalidTypeForEncoding 0, // member count -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_InvalidTypeForEncoding ( CORBA::tk_except, @@ -2021,33 +2206,29 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_InvalidTypeForEncoding ( ::CORBA::TypeCode_ptr IOP::Codec::_tc_InvalidTypeForEncoding = &_tc_TAO_tc_IOP_Codec_InvalidTypeForEncoding; +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 -// TAO extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::InvalidTypeForEncoding::_type (void) const -{ - return ::IOP::Codec::_tc_InvalidTypeForEncoding; -} - -// Default constructor. IOP::Codec::FormatMismatch::FormatMismatch (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", - "FormatMismatch") + : CORBA::UserException ( + "IDL:omg.org/IOP/Codec/FormatMismatch:1.0", + "FormatMismatch" + ) { } -// Destructor - all members are of self managing types. IOP::Codec::FormatMismatch::~FormatMismatch (void) { } -// Copy constructor. IOP::Codec::FormatMismatch::FormatMismatch (const ::IOP::Codec::FormatMismatch &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) { } -// Assignment operator. IOP::Codec::FormatMismatch& IOP::Codec::FormatMismatch::operator= (const ::IOP::Codec::FormatMismatch &_tao_excp) { @@ -2062,11 +2243,11 @@ void IOP::Codec::FormatMismatch::_tao_any_destructor (void *_tao_void_pointer) } IOP::Codec::FormatMismatch * -IOP::Codec::FormatMismatch::_downcast (CORBA::Exception *exc) +IOP::Codec::FormatMismatch::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", exc->_rep_id ())) + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", _tao_excp->_rep_id ())) { - return ACE_dynamic_cast (FormatMismatch *, exc); + return ACE_dynamic_cast (FormatMismatch *, _tao_excp); } else { @@ -2093,7 +2274,7 @@ IOP::Codec::FormatMismatch::_tao_duplicate (void) const return result; } -void IOP::Codec::FormatMismatch::_raise () +void IOP::Codec::FormatMismatch::_raise (void) { TAO_RAISE (*this); } @@ -2114,28 +2295,37 @@ void IOP::Codec::FormatMismatch::_tao_decode ( ACE_THROW (CORBA::MARSHAL ()); } +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr IOP::Codec::FormatMismatch::_type (void) const +{ + return ::IOP::Codec::_tc_FormatMismatch; +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_Codec_FormatMismatch[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 41, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x632f466f), - ACE_NTOHL (0x726d6174), - ACE_NTOHL (0x4d69736d), - ACE_NTOHL (0x61746368), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x632f466f), + ACE_NTOHL (0x726d6174), + ACE_NTOHL (0x4d69736d), + ACE_NTOHL (0x61746368), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/Codec/FormatMismatch:1.0 - 15, - ACE_NTOHL (0x466f726d), - ACE_NTOHL (0x61744d69), - ACE_NTOHL (0x736d6174), + 15, + ACE_NTOHL (0x466f726d), + ACE_NTOHL (0x61744d69), + ACE_NTOHL (0x736d6174), ACE_NTOHL (0x63680000), // name = FormatMismatch 0, // member count -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_FormatMismatch ( CORBA::tk_except, @@ -2148,33 +2338,29 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_FormatMismatch ( ::CORBA::TypeCode_ptr IOP::Codec::_tc_FormatMismatch = &_tc_TAO_tc_IOP_Codec_FormatMismatch; +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 -// TAO extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::FormatMismatch::_type (void) const -{ - return ::IOP::Codec::_tc_FormatMismatch; -} - -// Default constructor. IOP::Codec::TypeMismatch::TypeMismatch (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", - "TypeMismatch") + : CORBA::UserException ( + "IDL:omg.org/IOP/Codec/TypeMismatch:1.0", + "TypeMismatch" + ) { } -// Destructor - all members are of self managing types. IOP::Codec::TypeMismatch::~TypeMismatch (void) { } -// Copy constructor. IOP::Codec::TypeMismatch::TypeMismatch (const ::IOP::Codec::TypeMismatch &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) { } -// Assignment operator. IOP::Codec::TypeMismatch& IOP::Codec::TypeMismatch::operator= (const ::IOP::Codec::TypeMismatch &_tao_excp) { @@ -2189,11 +2375,11 @@ void IOP::Codec::TypeMismatch::_tao_any_destructor (void *_tao_void_pointer) } IOP::Codec::TypeMismatch * -IOP::Codec::TypeMismatch::_downcast (CORBA::Exception *exc) +IOP::Codec::TypeMismatch::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", exc->_rep_id ())) + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", _tao_excp->_rep_id ())) { - return ACE_dynamic_cast (TypeMismatch *, exc); + return ACE_dynamic_cast (TypeMismatch *, _tao_excp); } else { @@ -2220,7 +2406,7 @@ IOP::Codec::TypeMismatch::_tao_duplicate (void) const return result; } -void IOP::Codec::TypeMismatch::_raise () +void IOP::Codec::TypeMismatch::_raise (void) { TAO_RAISE (*this); } @@ -2241,27 +2427,36 @@ void IOP::Codec::TypeMismatch::_tao_decode ( ACE_THROW (CORBA::MARSHAL ()); } +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr IOP::Codec::TypeMismatch::_type (void) const +{ + return ::IOP::Codec::_tc_TypeMismatch; +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_Codec_TypeMismatch[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 39, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x632f5479), - ACE_NTOHL (0x70654d69), - ACE_NTOHL (0x736d6174), - ACE_NTOHL (0x63683a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x632f5479), + ACE_NTOHL (0x70654d69), + ACE_NTOHL (0x736d6174), + ACE_NTOHL (0x63683a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/Codec/TypeMismatch:1.0 - 13, - ACE_NTOHL (0x54797065), - ACE_NTOHL (0x4d69736d), - ACE_NTOHL (0x61746368), + 13, + ACE_NTOHL (0x54797065), + ACE_NTOHL (0x4d69736d), + ACE_NTOHL (0x61746368), ACE_NTOHL (0x0), // name = TypeMismatch 0, // member count -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_TypeMismatch ( CORBA::tk_except, @@ -2274,28 +2469,24 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_TypeMismatch ( ::CORBA::TypeCode_ptr IOP::Codec::_tc_TypeMismatch = &_tc_TAO_tc_IOP_Codec_TypeMismatch; - -// TAO extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::TypeMismatch::_type (void) const -{ - return ::IOP::Codec::_tc_TypeMismatch; -} +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_IOP_Codec[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 26, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x633a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x633a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/IOP/Codec:1.0 - 6, - ACE_NTOHL (0x436f6465), + 6, + ACE_NTOHL (0x436f6465), ACE_NTOHL (0x63000000), // name = Codec -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_Codec ( CORBA::tk_objref, @@ -2307,28 +2498,35 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_Codec ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_Codec, &_tc_TAO_tc_IOP_Codec) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_Codec, + &_tc_TAO_tc_IOP_Codec + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_EncodingFormat[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 35, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x466f726d), - ACE_NTOHL (0x61743a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), + ACE_NTOHL (0x61743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/EncodingFormat:1.0 - 15, - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x466f726d), + 15, + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), ACE_NTOHL (0x61740000), // name = EncodingFormat - CORBA::tk_short, + CORBA::tk_short, }; @@ -2342,67 +2540,70 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_EncodingFormat ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_EncodingFormat, &_tc_TAO_tc_IOP_EncodingFormat) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_EncodingFormat, + &_tc_TAO_tc_IOP_EncodingFormat + ) TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::Short) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::Short, ENCODING_CDR_ENCAPS, 0) -TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_Encoding[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 29, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/Encoding:1.0 - 9, - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), + 9, + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), ACE_NTOHL (0x0), // name = Encoding 3, // member count - 7, - ACE_NTOHL (0x666f726d), + 7, + ACE_NTOHL (0x666f726d), ACE_NTOHL (0x61740000), // name = format - CORBA::tk_alias, // typecode kind for typedefs + CORBA::tk_alias, // typecode kind for typedefs 68, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 35, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x466f726d), - ACE_NTOHL (0x61743a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), + ACE_NTOHL (0x61743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/IOP/EncodingFormat:1.0 - 15, - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x466f726d), + 15, + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), ACE_NTOHL (0x61740000), // name = EncodingFormat - CORBA::tk_short, + CORBA::tk_short, 14, - ACE_NTOHL (0x6d616a6f), - ACE_NTOHL (0x725f7665), - ACE_NTOHL (0x7273696f), + ACE_NTOHL (0x6d616a6f), + ACE_NTOHL (0x725f7665), + ACE_NTOHL (0x7273696f), ACE_NTOHL (0x6e000000), // name = major_version - CORBA::tk_octet, + CORBA::tk_octet, 14, - ACE_NTOHL (0x6d696e6f), - ACE_NTOHL (0x725f7665), - ACE_NTOHL (0x7273696f), + ACE_NTOHL (0x6d696e6f), + ACE_NTOHL (0x725f7665), + ACE_NTOHL (0x7273696f), ACE_NTOHL (0x6e000000), // name = minor_version - CORBA::tk_octet, + CORBA::tk_octet, }; @@ -2416,18 +2617,24 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_Encoding ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_Encoding, &_tc_TAO_tc_IOP_Encoding) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_Encoding, + &_tc_TAO_tc_IOP_Encoding + ) TAO_NAMESPACE_END +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_cs.cpp:67 + void IOP::Encoding::_tao_any_destructor (void *_tao_void_pointer) { Encoding *tmp = ACE_static_cast (Encoding*, _tao_void_pointer); delete tmp; } - // TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:67 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 int IOP::CodecFactory::_tao_class_id = 0; @@ -2474,13 +2681,23 @@ tao_IOP_CodecFactory_upcast ( return *tmp; } +CORBA::Boolean +tao_IOP_CodecFactory_marshal ( + IOP::CodecFactory_ptr p, + TAO_OutputCDR &strm + ) +{ + return p->marshal (strm); +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:721 + // ************************************************************* // IOP::CodecFactory_var -// TAO_IDL - Generated from -// be/be_interface.cpp:654 // ************************************************************* -IOP::CodecFactory_var::CodecFactory_var (void) // default constructor +IOP::CodecFactory_var::CodecFactory_var (void) : ptr_ (CodecFactory::_nil ()) {} @@ -2490,12 +2707,12 @@ IOP::CodecFactory_var::ptr (void) const return this->ptr_; } -IOP::CodecFactory_var::CodecFactory_var (const ::IOP::CodecFactory_var &p) // copy constructor +IOP::CodecFactory_var::CodecFactory_var (const ::IOP::CodecFactory_var &p) : TAO_Base_var (), ptr_ (CodecFactory::_duplicate (p.ptr ())) {} -IOP::CodecFactory_var::~CodecFactory_var (void) // destructor +IOP::CodecFactory_var::~CodecFactory_var (void) { CORBA::release (this->ptr_); } @@ -2524,7 +2741,7 @@ IOP::CodecFactory_var::operator const ::IOP::CodecFactory_ptr &() const // cast return this->ptr_; } -IOP::CodecFactory_var::operator ::IOP::CodecFactory_ptr &() // cast +IOP::CodecFactory_var::operator ::IOP::CodecFactory_ptr &() // cast { return this->ptr_; } @@ -2599,10 +2816,11 @@ IOP::CodecFactory_var::tao_upcast (void *src) return *tmp; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1030 + // ************************************************************* // IOP::CodecFactory_out -// TAO_IDL - Generated from -// be/be_interface.cpp:932 // ************************************************************* IOP::CodecFactory_out::CodecFactory_out (CodecFactory_ptr &p) @@ -2611,14 +2829,14 @@ IOP::CodecFactory_out::CodecFactory_out (CodecFactory_ptr &p) this->ptr_ = ::IOP::CodecFactory::_nil (); } -IOP::CodecFactory_out::CodecFactory_out (CodecFactory_var &p) // constructor from _var +IOP::CodecFactory_out::CodecFactory_out (CodecFactory_var &p) : ptr_ (p.out ()) { CORBA::release (this->ptr_); this->ptr_ = ::IOP::CodecFactory::_nil (); } -IOP::CodecFactory_out::CodecFactory_out (const ::IOP::CodecFactory_out &p) // copy constructor +IOP::CodecFactory_out::CodecFactory_out (const ::IOP::CodecFactory_out &p) : ptr_ (ACE_const_cast (CodecFactory_out &, p).ptr_) {} @@ -2649,7 +2867,7 @@ IOP::CodecFactory_out::operator ::IOP::CodecFactory_ptr &() // cast } ::IOP::CodecFactory_ptr & -IOP::CodecFactory_out::ptr (void) // ptr +IOP::CodecFactory_out::ptr (void) { return this->ptr_; } @@ -2660,9 +2878,8 @@ IOP::CodecFactory_out::operator-> (void) return this->ptr_; } - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:198 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:235 IOP::CodecFactory::CodecFactory (void) {} @@ -2670,13 +2887,15 @@ IOP::CodecFactory::CodecFactory (void) IOP::CodecFactory::~CodecFactory (void) {} -void IOP::CodecFactory::_tao_any_destructor (void *_tao_void_pointer) +void +IOP::CodecFactory::_tao_any_destructor (void *_tao_void_pointer) { - CodecFactory *tmp = ACE_static_cast (CodecFactory*, _tao_void_pointer); + CodecFactory *tmp = ACE_static_cast (CodecFactory *, _tao_void_pointer); CORBA::release (tmp); } -IOP::CodecFactory_ptr IOP::CodecFactory::_narrow ( +IOP::CodecFactory_ptr +IOP::CodecFactory::_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) @@ -2684,50 +2903,68 @@ IOP::CodecFactory_ptr IOP::CodecFactory::_narrow ( return CodecFactory::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } -IOP::CodecFactory_ptr +IOP::CodecFactory_ptr IOP::CodecFactory::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (obj)) - return CodecFactory::_nil (); + { + return CodecFactory::_nil (); + } + return - ACE_reinterpret_cast - ( + ACE_reinterpret_cast ( CodecFactory_ptr, - obj->_tao_QueryInterface - ( - ACE_reinterpret_cast - ( - ptr_arith_t, - &CodecFactory::_tao_class_id - ) - ) + obj->_tao_QueryInterface ( + ACE_reinterpret_cast ( + ptr_arith_t, + &CodecFactory::_tao_class_id + ) + ) ); } IOP::CodecFactory_ptr IOP::CodecFactory::_duplicate (CodecFactory_ptr obj) { - if (!CORBA::is_nil (obj)) - obj->_add_ref (); + if (! CORBA::is_nil (obj)) + { + obj->_add_ref (); + } + return obj; } void *IOP::CodecFactory::_tao_QueryInterface (ptr_arith_t type) { void *retv = 0; - if (type == ACE_reinterpret_cast - (ptr_arith_t, - &ACE_NESTED_CLASS (::IOP, CodecFactory)::_tao_class_id)) - retv = ACE_reinterpret_cast (void*, this); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_tao_class_id)) - retv = ACE_reinterpret_cast (void *, - ACE_static_cast (CORBA::Object_ptr, this)); - - if (retv) - this->_add_ref (); + + if (type == ACE_reinterpret_cast ( + ptr_arith_t, + &ACE_NESTED_CLASS (::IOP, CodecFactory)::_tao_class_id) + ) + { + retv = ACE_reinterpret_cast (void*, this); + } + else if (type == ACE_reinterpret_cast ( + ptr_arith_t, + &CORBA::Object::_tao_class_id) + ) + { + retv = + ACE_reinterpret_cast ( + void *, + ACE_static_cast (CORBA::Object_ptr, this) + ); + } + + if (retv != 0) + { + this->_add_ref (); + } + return retv; } @@ -2736,26 +2973,29 @@ const char* IOP::CodecFactory::_interface_repository_id (void) const return "IDL:omg.org/IOP/CodecFactory:1.0"; } -// Default constructor. +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 + IOP::CodecFactory::UnknownEncoding::UnknownEncoding (void) - : CORBA::UserException ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", - "UnknownEncoding") + : CORBA::UserException ( + "IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", + "UnknownEncoding" + ) { } -// Destructor - all members are of self managing types. IOP::CodecFactory::UnknownEncoding::~UnknownEncoding (void) { } -// Copy constructor. IOP::CodecFactory::UnknownEncoding::UnknownEncoding (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) { } -// Assignment operator. IOP::CodecFactory::UnknownEncoding& IOP::CodecFactory::UnknownEncoding::operator= (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp) { @@ -2770,11 +3010,11 @@ void IOP::CodecFactory::UnknownEncoding::_tao_any_destructor (void *_tao_void_po } IOP::CodecFactory::UnknownEncoding * -IOP::CodecFactory::UnknownEncoding::_downcast (CORBA::Exception *exc) +IOP::CodecFactory::UnknownEncoding::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", exc->_rep_id ())) + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", _tao_excp->_rep_id ())) { - return ACE_dynamic_cast (UnknownEncoding *, exc); + return ACE_dynamic_cast (UnknownEncoding *, _tao_excp); } else { @@ -2801,7 +3041,7 @@ IOP::CodecFactory::UnknownEncoding::_tao_duplicate (void) const return result; } -void IOP::CodecFactory::UnknownEncoding::_raise () +void IOP::CodecFactory::UnknownEncoding::_raise (void) { TAO_RAISE (*this); } @@ -2822,30 +3062,39 @@ void IOP::CodecFactory::UnknownEncoding::_tao_decode ( ACE_THROW (CORBA::MARSHAL ()); } +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr IOP::CodecFactory::UnknownEncoding::_type (void) const +{ + return ::IOP::CodecFactory::_tc_UnknownEncoding; +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 + static const CORBA::Long _oc_IOP_CodecFactory_UnknownEncoding[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 49, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x63466163), - ACE_NTOHL (0x746f7279), - ACE_NTOHL (0x2f556e6b), - ACE_NTOHL (0x6e6f776e), - ACE_NTOHL (0x456e636f), - ACE_NTOHL (0x64696e67), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x63466163), + ACE_NTOHL (0x746f7279), + ACE_NTOHL (0x2f556e6b), + ACE_NTOHL (0x6e6f776e), + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0 - 16, - ACE_NTOHL (0x556e6b6e), - ACE_NTOHL (0x6f776e45), - ACE_NTOHL (0x6e636f64), + 16, + ACE_NTOHL (0x556e6b6e), + ACE_NTOHL (0x6f776e45), + ACE_NTOHL (0x6e636f64), ACE_NTOHL (0x696e6700), // name = UnknownEncoding 0, // member count -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_CodecFactory_UnknownEncoding ( CORBA::tk_except, @@ -2858,32 +3107,28 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_CodecFactory_UnknownEncoding ( ::CORBA::TypeCode_ptr IOP::CodecFactory::_tc_UnknownEncoding = &_tc_TAO_tc_IOP_CodecFactory_UnknownEncoding; - -// TAO extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::CodecFactory::UnknownEncoding::_type (void) const -{ - return ::IOP::CodecFactory::_tc_UnknownEncoding; -} +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 static const CORBA::Long _oc_IOP_CodecFactory[] = { - TAO_ENCAP_BYTE_ORDER, // byte order + TAO_ENCAP_BYTE_ORDER, // byte order 33, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x494f502f), - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x63466163), - ACE_NTOHL (0x746f7279), - ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x494f502f), + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x63466163), + ACE_NTOHL (0x746f7279), + ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/IOP/CodecFactory:1.0 - 13, - ACE_NTOHL (0x436f6465), - ACE_NTOHL (0x63466163), - ACE_NTOHL (0x746f7279), + 13, + ACE_NTOHL (0x436f6465), + ACE_NTOHL (0x63466163), + ACE_NTOHL (0x746f7279), ACE_NTOHL (0x0), // name = CodecFactory -}; + }; static CORBA::TypeCode _tc_TAO_tc_IOP_CodecFactory ( CORBA::tk_objref, @@ -2895,12 +3140,15 @@ static CORBA::TypeCode _tc_TAO_tc_IOP_CodecFactory ( TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_CodecFactory, &_tc_TAO_tc_IOP_CodecFactory) +TAO_NAMESPACE_DEFINE ( + ::CORBA::TypeCode_ptr, + _tc_CodecFactory, + &_tc_TAO_tc_IOP_CodecFactory + ) TAO_NAMESPACE_END - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -2908,16 +3156,12 @@ void operator<<= ( const IOP::TaggedProfile &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedProfile, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedProfile>::insert_copy ( + _tao_any, + IOP::TaggedProfile::_tao_any_destructor, + IOP::_tc_TaggedProfile, + _tao_elem + ); } // Non-copying insertion. @@ -2926,19 +3170,12 @@ void operator<<= ( IOP::TaggedProfile *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedProfile, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::TaggedProfile::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedProfile>::insert ( + _tao_any, + IOP::TaggedProfile::_tao_any_destructor, + IOP::_tc_TaggedProfile, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -2959,76 +3196,24 @@ CORBA::Boolean operator>>= ( const IOP::TaggedProfile *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_TaggedProfile - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::TaggedProfile*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedProfile *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedProfile, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedProfile, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedProfile::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::TaggedProfile>::extract ( + _tao_any, + IOP::TaggedProfile::_tao_any_destructor, + IOP::_tc_TaggedProfile, + _tao_elem + ); } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO::Any_Dual_Impl_T<IOP::TaggedProfile>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Any_Dual_Impl_T<IOP::TaggedProfile> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3036,16 +3221,12 @@ void operator<<= ( const IOP::IOR &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_IOR, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::IOR>::insert_copy ( + _tao_any, + IOP::IOR::_tao_any_destructor, + IOP::_tc_IOR, + _tao_elem + ); } // Non-copying insertion. @@ -3054,19 +3235,12 @@ void operator<<= ( IOP::IOR *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_IOR, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::IOR::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::IOR>::insert ( + _tao_any, + IOP::IOR::_tao_any_destructor, + IOP::_tc_IOR, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3087,76 +3261,24 @@ CORBA::Boolean operator>>= ( const IOP::IOR *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_IOR - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::IOR*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::IOR *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::IOR, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_IOR, - 1, - ACE_static_cast (void *, tmp), - IOP::IOR::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::IOR>::extract ( + _tao_any, + IOP::IOR::_tao_any_destructor, + IOP::_tc_IOR, + _tao_elem + ); } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO::Any_Dual_Impl_T<IOP::IOR>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Any_Dual_Impl_T<IOP::IOR> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3164,16 +3286,12 @@ void operator<<= ( const IOP::TaggedComponent &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponent, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponent>::insert_copy ( + _tao_any, + IOP::TaggedComponent::_tao_any_destructor, + IOP::_tc_TaggedComponent, + _tao_elem + ); } // Non-copying insertion. @@ -3182,19 +3300,12 @@ void operator<<= ( IOP::TaggedComponent *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponent, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::TaggedComponent::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponent>::insert ( + _tao_any, + IOP::TaggedComponent::_tao_any_destructor, + IOP::_tc_TaggedComponent, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3215,76 +3326,24 @@ CORBA::Boolean operator>>= ( const IOP::TaggedComponent *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_TaggedComponent - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::TaggedComponent*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponent *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponent, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponent, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponent::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::TaggedComponent>::extract ( + _tao_any, + IOP::TaggedComponent::_tao_any_destructor, + IOP::_tc_TaggedComponent, + _tao_elem + ); } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO::Any_Dual_Impl_T<IOP::TaggedComponent>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Any_Dual_Impl_T<IOP::TaggedComponent> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3292,16 +3351,12 @@ void operator<<= ( const IOP::MultipleComponentProfile &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_MultipleComponentProfile, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::MultipleComponentProfile>::insert_copy ( + _tao_any, + IOP::MultipleComponentProfile::_tao_any_destructor, + IOP::_tc_MultipleComponentProfile, + _tao_elem + ); } // Non-copying insertion. @@ -3310,19 +3365,12 @@ void operator<<= ( IOP::MultipleComponentProfile *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_MultipleComponentProfile, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::MultipleComponentProfile::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::MultipleComponentProfile>::insert ( + _tao_any, + IOP::MultipleComponentProfile::_tao_any_destructor, + IOP::_tc_MultipleComponentProfile, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3331,8 +3379,8 @@ CORBA::Boolean operator>>= ( IOP::MultipleComponentProfile *&_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::MultipleComponentProfile*&, + return _tao_any >>= ACE_const_cast ( + const IOP::MultipleComponentProfile *&, _tao_elem ); } @@ -3343,76 +3391,17 @@ CORBA::Boolean operator>>= ( const IOP::MultipleComponentProfile *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_MultipleComponentProfile - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::MultipleComponentProfile*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::MultipleComponentProfile *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::MultipleComponentProfile, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_MultipleComponentProfile, - 1, - ACE_static_cast (void *, tmp), - IOP::MultipleComponentProfile::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::MultipleComponentProfile>::extract ( + _tao_any, + IOP::MultipleComponentProfile::_tao_any_destructor, + IOP::_tc_MultipleComponentProfile, + _tao_elem + ); } - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3420,16 +3409,12 @@ void operator<<= ( const IOP::TaggedComponentList &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponentList, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponentList>::insert_copy ( + _tao_any, + IOP::TaggedComponentList::_tao_any_destructor, + IOP::_tc_TaggedComponentList, + _tao_elem + ); } // Non-copying insertion. @@ -3438,19 +3423,12 @@ void operator<<= ( IOP::TaggedComponentList *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponentList, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::TaggedComponentList::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponentList>::insert ( + _tao_any, + IOP::TaggedComponentList::_tao_any_destructor, + IOP::_tc_TaggedComponentList, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3459,8 +3437,8 @@ CORBA::Boolean operator>>= ( IOP::TaggedComponentList *&_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::TaggedComponentList*&, + return _tao_any >>= ACE_const_cast ( + const IOP::TaggedComponentList *&, _tao_elem ); } @@ -3471,76 +3449,17 @@ CORBA::Boolean operator>>= ( const IOP::TaggedComponentList *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_TaggedComponentList - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::TaggedComponentList*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponentList *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponentList, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponentList, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponentList::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::TaggedComponentList>::extract ( + _tao_any, + IOP::TaggedComponentList::_tao_any_destructor, + IOP::_tc_TaggedComponentList, + _tao_elem + ); } - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3548,16 +3467,12 @@ void operator<<= ( const IOP::TaggedComponentSeq &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponentSeq, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponentSeq>::insert_copy ( + _tao_any, + IOP::TaggedComponentSeq::_tao_any_destructor, + IOP::_tc_TaggedComponentSeq, + _tao_elem + ); } // Non-copying insertion. @@ -3566,19 +3481,12 @@ void operator<<= ( IOP::TaggedComponentSeq *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_TaggedComponentSeq, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::TaggedComponentSeq::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::TaggedComponentSeq>::insert ( + _tao_any, + IOP::TaggedComponentSeq::_tao_any_destructor, + IOP::_tc_TaggedComponentSeq, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3587,8 +3495,8 @@ CORBA::Boolean operator>>= ( IOP::TaggedComponentSeq *&_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::TaggedComponentSeq*&, + return _tao_any >>= ACE_const_cast ( + const IOP::TaggedComponentSeq *&, _tao_elem ); } @@ -3599,76 +3507,17 @@ CORBA::Boolean operator>>= ( const IOP::TaggedComponentSeq *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_TaggedComponentSeq - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::TaggedComponentSeq*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponentSeq *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponentSeq, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponentSeq, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponentSeq::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::TaggedComponentSeq>::extract ( + _tao_any, + IOP::TaggedComponentSeq::_tao_any_destructor, + IOP::_tc_TaggedComponentSeq, + _tao_elem + ); } - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3676,16 +3525,12 @@ void operator<<= ( const IOP::ServiceContext &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_ServiceContext, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::ServiceContext>::insert_copy ( + _tao_any, + IOP::ServiceContext::_tao_any_destructor, + IOP::_tc_ServiceContext, + _tao_elem + ); } // Non-copying insertion. @@ -3694,19 +3539,12 @@ void operator<<= ( IOP::ServiceContext *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_ServiceContext, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::ServiceContext::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::ServiceContext>::insert ( + _tao_any, + IOP::ServiceContext::_tao_any_destructor, + IOP::_tc_ServiceContext, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3727,76 +3565,24 @@ CORBA::Boolean operator>>= ( const IOP::ServiceContext *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_ServiceContext - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::ServiceContext*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::ServiceContext *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::ServiceContext, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_ServiceContext, - 1, - ACE_static_cast (void *, tmp), - IOP::ServiceContext::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::ServiceContext>::extract ( + _tao_any, + IOP::ServiceContext::_tao_any_destructor, + IOP::_tc_ServiceContext, + _tao_elem + ); } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO::Any_Dual_Impl_T<IOP::ServiceContext>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Any_Dual_Impl_T<IOP::ServiceContext> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( @@ -3804,16 +3590,12 @@ void operator<<= ( const IOP::ServiceContextList &_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_ServiceContextList, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } + TAO::Any_Dual_Impl_T<IOP::ServiceContextList>::insert_copy ( + _tao_any, + IOP::ServiceContextList::_tao_any_destructor, + IOP::_tc_ServiceContextList, + _tao_elem + ); } // Non-copying insertion. @@ -3822,19 +3604,12 @@ void operator<<= ( IOP::ServiceContextList *_tao_elem ) { - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_ServiceContextList, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::ServiceContextList::_tao_any_destructor - ); - } + TAO::Any_Dual_Impl_T<IOP::ServiceContextList>::insert ( + _tao_any, + IOP::ServiceContextList::_tao_any_destructor, + IOP::_tc_ServiceContextList, + _tao_elem + ); } // Extraction to non-const pointer (deprecated). @@ -3843,8 +3618,8 @@ CORBA::Boolean operator>>= ( IOP::ServiceContextList *&_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::ServiceContextList*&, + return _tao_any >>= ACE_const_cast ( + const IOP::ServiceContextList *&, _tao_elem ); } @@ -3855,457 +3630,109 @@ CORBA::Boolean operator>>= ( const IOP::ServiceContextList *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_ServiceContextList - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::ServiceContextList*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::ServiceContextList *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::ServiceContextList, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_ServiceContextList, - 1, - ACE_static_cast (void *, tmp), - IOP::ServiceContextList::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::ServiceContextList>::extract ( + _tao_any, + IOP::ServiceContextList::_tao_any_destructor, + IOP::_tc_ServiceContextList, + _tao_elem + ); } - // TAO_IDL - Generated from -// be/be_visitor_interface/any_op_cs.cpp:60 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_cs.cpp:52 -void operator<<= ( +// Copying insertion. +void +operator<<= ( CORBA::Any &_tao_any, IOP::Codec_ptr _tao_elem ) { - _tao_any._tao_replace ( - IOP::_tc_Codec, - 1, - IOP::Codec::_duplicate (_tao_elem), - IOP::Codec::_tao_any_destructor - ); - - _tao_any.contains_local (1); + IOP::Codec_ptr _tao_objptr = + IOP::Codec::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; } -void operator<<= ( +// Non-copying insertion. +void +operator<<= ( CORBA::Any &_tao_any, IOP::Codec_ptr *_tao_elem ) { - _tao_any._tao_replace ( + TAO::Any_Impl_T<IOP::Codec>::insert ( + _tao_any, + IOP::Codec::_tao_any_destructor, IOP::_tc_Codec, - 1, - *_tao_elem, - IOP::Codec::_tao_any_destructor + *_tao_elem ); - - _tao_any.contains_local (1); } -CORBA::Boolean operator>>= ( +CORBA::Boolean +operator>>= ( const CORBA::Any &_tao_any, IOP::Codec_ptr &_tao_elem ) { - ACE_TRY_NEW_ENV - { - _tao_elem = IOP::Codec::_nil (); - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_Codec - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - _tao_elem = - ACE_reinterpret_cast ( - IOP::Codec_ptr, - ACE_const_cast (void *, _tao_any.value ()) - ); - - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; + return + TAO::Any_Impl_T<IOP::Codec>::extract ( + _tao_any, + IOP::Codec::_tao_any_destructor, + IOP::_tc_Codec, + _tao_elem + ); +} - _tao_elem = IOP::Codec::_nil (); - return 0; +CORBA::Boolean +TAO::Any_Impl_T<IOP::Codec>::to_object ( + CORBA::Object_ptr &_tao_elem + ) const +{ + _tao_elem = CORBA::Object::_duplicate (this->value_); + return 1; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ defined (ACE_HAS_GNU_REPO) template class TAO_Object_Manager<IOP::Codec,IOP::Codec_var>; + template class TAO::Any_Impl_T<IOP::Codec>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate TAO_Object_Manager<IOP::Codec,IOP::Codec_var> +# pragma instantiate TAO_Object_Manager<IOP::Codec, IOP::Codec_var> +# pragma instantiate TAO::Any_Impl_T<IOP::Codec> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 // Copying insertion. void operator<<= ( CORBA::Any &_tao_any, - const IOP::Codec::InvalidTypeForEncoding &_tao_elem - ) -{ - IOP::Codec::InvalidTypeForEncoding *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::InvalidTypeForEncoding (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_InvalidTypeForEncoding, - 1, - _tao_elem_copy, - IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Codec::InvalidTypeForEncoding *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_InvalidTypeForEncoding, - 1, - _tao_elem, - IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::InvalidTypeForEncoding *&_tao_elem + const IOP::Encoding &_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::Codec::InvalidTypeForEncoding*&, + TAO::Any_Dual_Impl_T<IOP::Encoding>::insert_copy ( + _tao_any, + IOP::Encoding::_tao_any_destructor, + IOP::_tc_Encoding, _tao_elem ); } -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::InvalidTypeForEncoding *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_InvalidTypeForEncoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::InvalidTypeForEncoding *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Codec::FormatMismatch &_tao_elem - ) -{ - IOP::Codec::FormatMismatch *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::FormatMismatch (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_FormatMismatch, - 1, - _tao_elem_copy, - IOP::Codec::FormatMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - // Non-copying insertion. void operator<<= ( CORBA::Any &_tao_any, - IOP::Codec::FormatMismatch *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_FormatMismatch, - 1, - _tao_elem, - IOP::Codec::FormatMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::FormatMismatch *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::Codec::FormatMismatch*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::FormatMismatch *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_FormatMismatch - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::FormatMismatch *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Codec::TypeMismatch &_tao_elem - ) -{ - IOP::Codec::TypeMismatch *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::TypeMismatch (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_TypeMismatch, - 1, - _tao_elem_copy, - IOP::Codec::TypeMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Codec::TypeMismatch *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_TypeMismatch, - 1, - _tao_elem, - IOP::Codec::TypeMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::TypeMismatch *&_tao_elem + IOP::Encoding *_tao_elem ) { - return _tao_any >>= ACE_const_cast( - const IOP::Codec::TypeMismatch*&, + TAO::Any_Dual_Impl_T<IOP::Encoding>::insert ( + _tao_any, + IOP::Encoding::_tao_any_destructor, + IOP::_tc_Encoding, _tao_elem ); } -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::TypeMismatch *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_TypeMismatch - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::TypeMismatch *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Encoding &_tao_elem - ) -{ - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_Encoding, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Encoding *_tao_elem - ) -{ - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_Encoding, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::Encoding::_tao_any_destructor - ); - } -} - // Extraction to non-const pointer (deprecated). CORBA::Boolean operator>>= ( const CORBA::Any &_tao_any, @@ -4324,240 +3751,87 @@ CORBA::Boolean operator>>= ( const IOP::Encoding *&_tao_elem ) { - _tao_elem = 0; - - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_Encoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::Encoding*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::Encoding *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::Encoding, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_Encoding, - 1, - ACE_static_cast (void *, tmp), - IOP::Encoding::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; + return + TAO::Any_Dual_Impl_T<IOP::Encoding>::extract ( + _tao_any, + IOP::Encoding::_tao_any_destructor, + IOP::_tc_Encoding, + _tao_elem + ); } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO::Any_Dual_Impl_T<IOP::Encoding>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Any_Dual_Impl_T<IOP::Encoding> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from -// be/be_visitor_interface/any_op_cs.cpp:60 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_cs.cpp:52 -void operator<<= ( +// Copying insertion. +void +operator<<= ( CORBA::Any &_tao_any, IOP::CodecFactory_ptr _tao_elem ) { - _tao_any._tao_replace ( - IOP::_tc_CodecFactory, - 1, - IOP::CodecFactory::_duplicate (_tao_elem), - IOP::CodecFactory::_tao_any_destructor - ); - - _tao_any.contains_local (1); + IOP::CodecFactory_ptr _tao_objptr = + IOP::CodecFactory::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; } -void operator<<= ( +// Non-copying insertion. +void +operator<<= ( CORBA::Any &_tao_any, IOP::CodecFactory_ptr *_tao_elem ) { - _tao_any._tao_replace ( + TAO::Any_Impl_T<IOP::CodecFactory>::insert ( + _tao_any, + IOP::CodecFactory::_tao_any_destructor, IOP::_tc_CodecFactory, - 1, - *_tao_elem, - IOP::CodecFactory::_tao_any_destructor + *_tao_elem ); - - _tao_any.contains_local (1); } -CORBA::Boolean operator>>= ( +CORBA::Boolean +operator>>= ( const CORBA::Any &_tao_any, IOP::CodecFactory_ptr &_tao_elem ) { - ACE_TRY_NEW_ENV - { - _tao_elem = IOP::CodecFactory::_nil (); - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::_tc_CodecFactory - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - _tao_elem = - ACE_reinterpret_cast ( - IOP::CodecFactory_ptr, - ACE_const_cast (void *, _tao_any.value ()) - ); - - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; + return + TAO::Any_Impl_T<IOP::CodecFactory>::extract ( + _tao_any, + IOP::CodecFactory::_tao_any_destructor, + IOP::_tc_CodecFactory, + _tao_elem + ); +} - _tao_elem = IOP::CodecFactory::_nil (); - return 0; +CORBA::Boolean +TAO::Any_Impl_T<IOP::CodecFactory>::to_object ( + CORBA::Object_ptr &_tao_elem + ) const +{ + _tao_elem = CORBA::Object::_duplicate (this->value_); + return 1; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ defined (ACE_HAS_GNU_REPO) template class TAO_Object_Manager<IOP::CodecFactory,IOP::CodecFactory_var>; + template class TAO::Any_Impl_T<IOP::CodecFactory>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate TAO_Object_Manager<IOP::CodecFactory,IOP::CodecFactory_var> +# pragma instantiate TAO_Object_Manager<IOP::CodecFactory, IOP::CodecFactory_var> +# pragma instantiate TAO::Any_Impl_T<IOP::CodecFactory> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - // TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::CodecFactory::UnknownEncoding &_tao_elem - ) -{ - IOP::CodecFactory::UnknownEncoding *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::CodecFactory::UnknownEncoding (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::CodecFactory::_tc_UnknownEncoding, - 1, - _tao_elem_copy, - IOP::CodecFactory::UnknownEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::CodecFactory::UnknownEncoding *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::CodecFactory::_tc_UnknownEncoding, - 1, - _tao_elem, - IOP::CodecFactory::UnknownEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::CodecFactory::UnknownEncoding *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::CodecFactory::UnknownEncoding*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::CodecFactory::UnknownEncoding *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::CodecFactory::_tc_UnknownEncoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::CodecFactory::UnknownEncoding *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 #if !defined _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ #define _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ @@ -4567,26 +3841,29 @@ CORBA::Boolean operator<< ( const IOP::TaggedProfile::_tao_seq_Octet &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedProfile::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - + // Encode all elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedProfile::_tao_seq_Octet *)&_tao_sequence); + if (oseq->mb ()) + return strm.write_octet_array_mb (oseq->mb ()); + else + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } CORBA::Boolean operator>> ( @@ -4595,48 +3872,59 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + if (ACE_BIT_DISABLED (strm.start ()->flags (), + ACE_Message_Block::DONT_DELETE)) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); - oseq->replace (_tao_seq_len, strm.start ()); - oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); - strm.skip_bytes (_tao_seq_len); - return 1; + TAO_ORB_Core* orb_core = strm.orb_core (); + if (orb_core != 0 && + strm.orb_core ()->resource_factory ()-> + input_cdr_allocator_type_locked () == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); + oseq->replace (_tao_seq_len, strm.start ()); + oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); + strm.skip_bytes (_tao_seq_len); + return 1; + } } - } - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } #endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 #if !defined _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ #define _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ @@ -4646,17 +3934,22 @@ CORBA::Boolean operator<< ( const IOP::IOR::_tao_seq_TaggedProfile &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - _tao_marshal_flag = (strm << _tao_sequence[i]); + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } CORBA::Boolean operator>> ( @@ -4665,31 +3958,44 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) { - _tao_marshal_flag = (strm >> _tao_sequence[i]); + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } #endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 #if !defined _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ #define _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ @@ -4699,26 +4005,29 @@ CORBA::Boolean operator<< ( const IOP::TaggedComponent::_tao_seq_Octet &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedComponent::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - + // Encode all elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedComponent::_tao_seq_Octet *)&_tao_sequence); + if (oseq->mb ()) + return strm.write_octet_array_mb (oseq->mb ()); + else + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } CORBA::Boolean operator>> ( @@ -4727,64 +4036,81 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + if (ACE_BIT_DISABLED (strm.start ()->flags (), + ACE_Message_Block::DONT_DELETE)) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); - oseq->replace (_tao_seq_len, strm.start ()); - oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); - strm.skip_bytes (_tao_seq_len); - return 1; + TAO_ORB_Core* orb_core = strm.orb_core (); + if (orb_core != 0 && + strm.orb_core ()->resource_factory ()-> + input_cdr_allocator_type_locked () == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); + oseq->replace (_tao_seq_len, strm.start ()); + oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); + strm.skip_bytes (_tao_seq_len); + return 1; + } } - } - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } #endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 + CORBA::Boolean operator<< ( TAO_OutputCDR &strm, const IOP::MultipleComponentProfile &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - _tao_marshal_flag = (strm << _tao_sequence[i]); + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } CORBA::Boolean operator>> ( @@ -4793,45 +4119,64 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) { - _tao_marshal_flag = (strm >> _tao_sequence[i]); + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 + CORBA::Boolean operator<< ( TAO_OutputCDR &strm, const IOP::TaggedComponentList &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - _tao_marshal_flag = (strm << _tao_sequence[i]); + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } CORBA::Boolean operator>> ( @@ -4840,45 +4185,64 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) { - _tao_marshal_flag = (strm >> _tao_sequence[i]); + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 + CORBA::Boolean operator<< ( TAO_OutputCDR &strm, const IOP::TaggedComponentSeq &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - _tao_marshal_flag = (strm << _tao_sequence[i]); + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } CORBA::Boolean operator>> ( @@ -4887,29 +4251,42 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) { - _tao_marshal_flag = (strm >> _tao_sequence[i]); + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 #if !defined _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ #define _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ @@ -4919,26 +4296,29 @@ CORBA::Boolean operator<< ( const IOP::ServiceContext::_tao_seq_Octet &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::ServiceContext::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - + // Encode all elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::ServiceContext::_tao_seq_Octet *)&_tao_sequence); + if (oseq->mb ()) + return strm.write_octet_array_mb (oseq->mb ()); + else + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + } + #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } CORBA::Boolean operator>> ( @@ -4947,64 +4327,81 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + if (ACE_BIT_DISABLED (strm.start ()->flags (), + ACE_Message_Block::DONT_DELETE)) { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); - oseq->replace (_tao_seq_len, strm.start ()); - oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); - strm.skip_bytes (_tao_seq_len); - return 1; + TAO_ORB_Core* orb_core = strm.orb_core (); + if (orb_core != 0 && + strm.orb_core ()->resource_factory ()-> + input_cdr_allocator_type_locked () == 1) + { + TAO_Unbounded_Sequence<CORBA::Octet> *oseq = + ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence); + oseq->replace (_tao_seq_len, strm.start ()); + oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len); + strm.skip_bytes (_tao_seq_len); + return 1; + } } - } - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len); #else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error + } + + return 0; } #endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ */ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:125 + CORBA::Boolean operator<< ( TAO_OutputCDR &strm, const IOP::ServiceContextList &_tao_sequence ) { - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) { - _tao_marshal_flag = (strm << _tao_sequence[i]); + // Encode all elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm << _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } CORBA::Boolean operator>> ( @@ -5013,25 +4410,67 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; + if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) { - _tao_marshal_flag = (strm >> _tao_sequence[i]); + // Add a check to the length of the sequence + // to make sure it does not exceed the length + // of the stream. (See bug 58.) + if (_tao_seq_len > strm.length ()) + { + return 0; + } + + // Set the length of the sequence. + _tao_sequence.length (_tao_seq_len); + + // If length is 0 we return true. + if (0 >= _tao_seq_len) + { + return 1; + } + + // Retrieve all the elements. + CORBA::Boolean _tao_marshal_flag = 1; + + for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) + { + _tao_marshal_flag = (strm >> _tao_sequence[i]); + } + + return _tao_marshal_flag; } - return _tao_marshal_flag; - } - return 0; // error + + return 0; } + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/cdr_op_cs.cpp:60 + +CORBA::Boolean +TAO::Any_Impl_T<IOP::Codec>::marshal_value (TAO_OutputCDR &) +{ + return 0; +} + +CORBA::Boolean +TAO::Any_Impl_T<IOP::Codec>::demarshal_value (TAO_InputCDR &) +{ + return 0; +} + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/cdr_op_cs.cpp:60 + +CORBA::Boolean +TAO::Any_Impl_T<IOP::CodecFactory>::marshal_value (TAO_OutputCDR &) +{ + return 0; +} + +CORBA::Boolean +TAO::Any_Impl_T<IOP::CodecFactory>::demarshal_value (TAO_InputCDR &) +{ + return 0; +} + |