diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-03-07 15:57:10 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-03-07 15:57:10 +0000 |
commit | 8ba7b9929a43f6626d4f3dcbc4ecb34bc6e8e05c (patch) | |
tree | 20d85e0ac61330a075a451a37358c739f05d3274 | |
parent | 056edd334512f070ef0f35ca85628615848f72c0 (diff) | |
download | ATCD-8ba7b9929a43f6626d4f3dcbc4ecb34bc6e8e05c.tar.gz |
ChangeLogTag:Fri Mar 07 09:49:35 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
-rw-r--r-- | TAO/tao/ChangeLog | 1 | ||||
-rw-r--r-- | TAO/tao/IOP_Codec.pidl | 68 | ||||
-rw-r--r-- | TAO/tao/IOP_CodecC.cpp | 1739 | ||||
-rw-r--r-- | TAO/tao/IOP_CodecC.h | 774 | ||||
-rw-r--r-- | TAO/tao/IOP_CodecC.i | 244 | ||||
-rw-r--r-- | TAO/tao/IOP_IOR.pidl | 116 | ||||
-rw-r--r-- | TAO/tao/IOP_IORC.cpp | 3363 | ||||
-rw-r--r-- | TAO/tao/IOP_IORC.h | 1779 | ||||
-rw-r--r-- | TAO/tao/IOP_IORC.i | 3219 |
9 files changed, 11303 insertions, 0 deletions
diff --git a/TAO/tao/ChangeLog b/TAO/tao/ChangeLog index 125842ba21c..8c7b56a97b8 100644 --- a/TAO/tao/ChangeLog +++ b/TAO/tao/ChangeLog @@ -8,6 +8,7 @@ Fri Mar 07 09:49:35 2003 Balachandran Natarajan <bala@isis-server.isis.vanderb Mon Mar 03 14:07:10 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu> This is just a temporary checkin to test it on another box. + * tao/IOP_Codec.pidl: * tao/IOP_IOR.pidl: New files. diff --git a/TAO/tao/IOP_Codec.pidl b/TAO/tao/IOP_Codec.pidl new file mode 100644 index 00000000000..33a00f86232 --- /dev/null +++ b/TAO/tao/IOP_Codec.pidl @@ -0,0 +1,68 @@ +// -*- IDL -*- +/** + * @file IOP.pidl + * + * $Id$ + * + * @brief Pre-compiled IDL source for the IOP module. + * + * This file is used to generate IOPC.{h,i,cpp}, using the following + * command: + * + * tao_idl.exe + * -o orig -Gp -Gd -Ge 1 -Gv + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * IOP.pidl + * + * and then: + * + * cp orig/IOPC.{h,i,cpp} . + * patch < diffs/IOP.diff + * + * The code left in IOPC.{h,i,cpp} is ready for use. + * + */ + +#ifndef TAO_IOP_CODEC_PIDL +#define TAO_IOP_CODEC_PIDL + +#include <orb.idl> + +#pragma prefix "omg.org" + +module IOP +{ + local interface Codec { + exception InvalidTypeForEncoding {}; + exception FormatMismatch {}; + exception TypeMismatch {}; + + CORBA::OctetSeq encode (in any data) raises (InvalidTypeForEncoding); + any decode (in CORBA::OctetSeq data) raises (FormatMismatch); + CORBA::OctetSeq encode_value (in any data) raises (InvalidTypeForEncoding); + any decode_value (in CORBA::OctetSeq data, in CORBA::TypeCode tc) + raises (FormatMismatch, TypeMismatch); + }; + + typedef short EncodingFormat; + const EncodingFormat ENCODING_CDR_ENCAPS = 0; + + struct Encoding { + EncodingFormat format; + octet major_version; + octet minor_version; + }; + + local interface CodecFactory { + exception UnknownEncoding {}; + + Codec create_codec (in Encoding enc) raises (UnknownEncoding); + }; +}; + +#pragma prefix "" + +#endif /* TAO_IOP_PIDL */ diff --git a/TAO/tao/IOP_CodecC.cpp b/TAO/tao/IOP_CodecC.cpp new file mode 100644 index 00000000000..fe94860b2de --- /dev/null +++ b/TAO/tao/IOP_CodecC.cpp @@ -0,0 +1,1739 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314 + + +#include "IOP_CodecC.h" +#include "tao/Stub.h" +#include "tao/Invocation.h" +#include "tao/PortableInterceptor.h" + +#if TAO_HAS_INTERCEPTORS == 1 +#include "tao/RequestInfo_Util.h" +#include "tao/ClientRequestInfo_i.h" +#include "tao/ClientInterceptorAdapter.h" +#endif /* TAO_HAS_INTERCEPTORS == 1 */ + + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "IOP_CodecC.i" +#endif /* !defined INLINE */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 + +int IOP::Codec::_tao_class_id = 0; + +IOP::Codec_ptr +tao_IOP_Codec_duplicate ( + IOP::Codec_ptr p + ) +{ + return IOP::Codec::_duplicate (p); +} + +void +tao_IOP_Codec_release ( + IOP::Codec_ptr p + ) +{ + CORBA::release (p); +} + +IOP::Codec_ptr +tao_IOP_Codec_nil ( + void + ) +{ + return IOP::Codec::_nil (); +} + +IOP::Codec_ptr +tao_IOP_Codec_narrow ( + CORBA::Object *p + ACE_ENV_ARG_DECL + ) +{ + return IOP::Codec::_narrow (p ACE_ENV_ARG_PARAMETER); +} + +CORBA::Object * +tao_IOP_Codec_upcast ( + void *src + ) +{ + IOP::Codec **tmp = + ACE_static_cast (IOP::Codec **, src); + return *tmp; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:721 + +// ************************************************************* +// IOP::Codec_var +// ************************************************************* + +IOP::Codec_var::Codec_var (void) + : ptr_ (Codec::_nil ()) +{} + +::IOP::Codec_ptr +IOP::Codec_var::ptr (void) const +{ + return this->ptr_; +} + +IOP::Codec_var::Codec_var (const ::IOP::Codec_var &p) + : TAO_Base_var (), + ptr_ (Codec::_duplicate (p.ptr ())) +{} + +IOP::Codec_var::~Codec_var (void) +{ + CORBA::release (this->ptr_); +} + +IOP::Codec_var & +IOP::Codec_var::operator= (Codec_ptr p) +{ + CORBA::release (this->ptr_); + this->ptr_ = p; + return *this; +} + +IOP::Codec_var & +IOP::Codec_var::operator= (const ::IOP::Codec_var &p) +{ + if (this != &p) + { + CORBA::release (this->ptr_); + this->ptr_ = ::IOP::Codec::_duplicate (p.ptr ()); + } + return *this; +} + +IOP::Codec_var::operator const ::IOP::Codec_ptr &() const // cast +{ + return this->ptr_; +} + +IOP::Codec_var::operator ::IOP::Codec_ptr &() // cast +{ + return this->ptr_; +} + +::IOP::Codec_ptr +IOP::Codec_var::operator-> (void) const +{ + return this->ptr_; +} + +::IOP::Codec_ptr +IOP::Codec_var::in (void) const +{ + return this->ptr_; +} + +::IOP::Codec_ptr & +IOP::Codec_var::inout (void) +{ + return this->ptr_; +} + +::IOP::Codec_ptr & +IOP::Codec_var::out (void) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::IOP::Codec::_nil (); + return this->ptr_; +} + +::IOP::Codec_ptr +IOP::Codec_var::_retn (void) +{ + // yield ownership of managed obj reference + ::IOP::Codec_ptr val = this->ptr_; + this->ptr_ = ::IOP::Codec::_nil (); + return val; +} + +::IOP::Codec_ptr +IOP::Codec_var::tao_duplicate (Codec_ptr p) +{ + return ::IOP::Codec::_duplicate (p); +} + +void +IOP::Codec_var::tao_release (Codec_ptr p) +{ + CORBA::release (p); +} + +::IOP::Codec_ptr +IOP::Codec_var::tao_nil (void) +{ + return ::IOP::Codec::_nil (); +} + +::IOP::Codec_ptr +IOP::Codec_var::tao_narrow ( + CORBA::Object *p + ACE_ENV_ARG_DECL + ) +{ + return ::IOP::Codec::_narrow (p ACE_ENV_ARG_PARAMETER); +} + +CORBA::Object * +IOP::Codec_var::tao_upcast (void *src) +{ + Codec **tmp = + ACE_static_cast (Codec **, src); + return *tmp; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1030 + +// ************************************************************* +// IOP::Codec_out +// ************************************************************* + +IOP::Codec_out::Codec_out (Codec_ptr &p) + : ptr_ (p) +{ + this->ptr_ = ::IOP::Codec::_nil (); +} + +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) + : ptr_ (ACE_const_cast (Codec_out &, p).ptr_) +{} + +::IOP::Codec_out & +IOP::Codec_out::operator= (const ::IOP::Codec_out &p) +{ + this->ptr_ = ACE_const_cast (Codec_out&, p).ptr_; + return *this; +} + +IOP::Codec_out & +IOP::Codec_out::operator= (const ::IOP::Codec_var &p) +{ + this->ptr_ = ::IOP::Codec::_duplicate (p.ptr ()); + return *this; +} + +IOP::Codec_out & +IOP::Codec_out::operator= (Codec_ptr p) +{ + this->ptr_ = p; + return *this; +} + +IOP::Codec_out::operator ::IOP::Codec_ptr &() // cast +{ + return this->ptr_; +} + +::IOP::Codec_ptr & +IOP::Codec_out::ptr (void) +{ + return this->ptr_; +} + +::IOP::Codec_ptr +IOP::Codec_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:225 + +IOP::Codec::Codec (void) +{} + +IOP::Codec::~Codec (void) +{} + +void +IOP::Codec::_tao_any_destructor (void *_tao_void_pointer) +{ + Codec *tmp = ACE_static_cast (Codec *, _tao_void_pointer); + CORBA::release (tmp); +} + +IOP::Codec_ptr +IOP::Codec::_narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL + ) +{ + return Codec::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); +} + +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 + ACE_reinterpret_cast ( + Codec_ptr, + 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 (); + } + + 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 != 0) + { + this->_add_ref (); + } + + return retv; +} + +const char* IOP::Codec::_interface_repository_id (void) const +{ + return "IDL:omg.org/IOP/Codec:1.0"; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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" + ) +{ +} + +IOP::Codec::InvalidTypeForEncoding::~InvalidTypeForEncoding (void) +{ +} + +IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) +{ +} + +IOP::Codec::InvalidTypeForEncoding& +IOP::Codec::InvalidTypeForEncoding::operator= (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) +{ + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + return *this; +} + +void IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor (void *_tao_void_pointer) +{ + InvalidTypeForEncoding *tmp = ACE_static_cast (InvalidTypeForEncoding*, _tao_void_pointer); + delete tmp; +} + +IOP::Codec::InvalidTypeForEncoding * +IOP::Codec::InvalidTypeForEncoding::_downcast (CORBA::Exception *_tao_excp) +{ + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", _tao_excp->_rep_id ())) + { + return ACE_dynamic_cast (InvalidTypeForEncoding *, _tao_excp); + } + else + { + return 0; + } +} + +CORBA::Exception *IOP::Codec::InvalidTypeForEncoding::_alloc (void) +{ + CORBA::Exception *retval = 0; + ACE_NEW_RETURN (retval, ::IOP::Codec::InvalidTypeForEncoding, 0); + return retval; +} + +CORBA::Exception * +IOP::Codec::InvalidTypeForEncoding::_tao_duplicate (void) const +{ + CORBA::Exception *result; + ACE_NEW_RETURN ( + result, + ::IOP::Codec::InvalidTypeForEncoding (*this), + 0 + ); + return result; +} + +void IOP::Codec::InvalidTypeForEncoding::_raise (void) +{ + TAO_RAISE (*this); +} + +void IOP::Codec::InvalidTypeForEncoding::_tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL + ) const +{ + ACE_THROW (CORBA::MARSHAL ()); +} + +void IOP::Codec::InvalidTypeForEncoding::_tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL + ) +{ + 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 +// C:\work\ACE+TAO\Branch\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 + 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 (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), + ACE_NTOHL (0x6e670000), // name = InvalidTypeForEncoding + 0, // member count +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_Codec_InvalidTypeForEncoding ( + CORBA::tk_except, + sizeof (_oc_IOP_Codec_InvalidTypeForEncoding), + (char *) &_oc_IOP_Codec_InvalidTypeForEncoding, + 0, + sizeof (IOP::Codec::InvalidTypeForEncoding) + ); + +::CORBA::TypeCode_ptr IOP::Codec::_tc_InvalidTypeForEncoding = + &_tc_TAO_tc_IOP_Codec_InvalidTypeForEncoding; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 + +IOP::Codec::FormatMismatch::FormatMismatch (void) + : CORBA::UserException ( + "IDL:omg.org/IOP/Codec/FormatMismatch:1.0", + "FormatMismatch" + ) +{ +} + +IOP::Codec::FormatMismatch::~FormatMismatch (void) +{ +} + +IOP::Codec::FormatMismatch::FormatMismatch (const ::IOP::Codec::FormatMismatch &_tao_excp) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) +{ +} + +IOP::Codec::FormatMismatch& +IOP::Codec::FormatMismatch::operator= (const ::IOP::Codec::FormatMismatch &_tao_excp) +{ + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + return *this; +} + +void IOP::Codec::FormatMismatch::_tao_any_destructor (void *_tao_void_pointer) +{ + FormatMismatch *tmp = ACE_static_cast (FormatMismatch*, _tao_void_pointer); + delete tmp; +} + +IOP::Codec::FormatMismatch * +IOP::Codec::FormatMismatch::_downcast (CORBA::Exception *_tao_excp) +{ + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", _tao_excp->_rep_id ())) + { + return ACE_dynamic_cast (FormatMismatch *, _tao_excp); + } + else + { + return 0; + } +} + +CORBA::Exception *IOP::Codec::FormatMismatch::_alloc (void) +{ + CORBA::Exception *retval = 0; + ACE_NEW_RETURN (retval, ::IOP::Codec::FormatMismatch, 0); + return retval; +} + +CORBA::Exception * +IOP::Codec::FormatMismatch::_tao_duplicate (void) const +{ + CORBA::Exception *result; + ACE_NEW_RETURN ( + result, + ::IOP::Codec::FormatMismatch (*this), + 0 + ); + return result; +} + +void IOP::Codec::FormatMismatch::_raise (void) +{ + TAO_RAISE (*this); +} + +void IOP::Codec::FormatMismatch::_tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL + ) const +{ + ACE_THROW (CORBA::MARSHAL ()); +} + +void IOP::Codec::FormatMismatch::_tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL + ) +{ + 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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x0), // repository ID = IDL:omg.org/IOP/Codec/FormatMismatch:1.0 + 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, + sizeof (_oc_IOP_Codec_FormatMismatch), + (char *) &_oc_IOP_Codec_FormatMismatch, + 0, + sizeof (IOP::Codec::FormatMismatch) + ); + +::CORBA::TypeCode_ptr IOP::Codec::_tc_FormatMismatch = + &_tc_TAO_tc_IOP_Codec_FormatMismatch; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 + +IOP::Codec::TypeMismatch::TypeMismatch (void) + : CORBA::UserException ( + "IDL:omg.org/IOP/Codec/TypeMismatch:1.0", + "TypeMismatch" + ) +{ +} + +IOP::Codec::TypeMismatch::~TypeMismatch (void) +{ +} + +IOP::Codec::TypeMismatch::TypeMismatch (const ::IOP::Codec::TypeMismatch &_tao_excp) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) +{ +} + +IOP::Codec::TypeMismatch& +IOP::Codec::TypeMismatch::operator= (const ::IOP::Codec::TypeMismatch &_tao_excp) +{ + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + return *this; +} + +void IOP::Codec::TypeMismatch::_tao_any_destructor (void *_tao_void_pointer) +{ + TypeMismatch *tmp = ACE_static_cast (TypeMismatch*, _tao_void_pointer); + delete tmp; +} + +IOP::Codec::TypeMismatch * +IOP::Codec::TypeMismatch::_downcast (CORBA::Exception *_tao_excp) +{ + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", _tao_excp->_rep_id ())) + { + return ACE_dynamic_cast (TypeMismatch *, _tao_excp); + } + else + { + return 0; + } +} + +CORBA::Exception *IOP::Codec::TypeMismatch::_alloc (void) +{ + CORBA::Exception *retval = 0; + ACE_NEW_RETURN (retval, ::IOP::Codec::TypeMismatch, 0); + return retval; +} + +CORBA::Exception * +IOP::Codec::TypeMismatch::_tao_duplicate (void) const +{ + CORBA::Exception *result; + ACE_NEW_RETURN ( + result, + ::IOP::Codec::TypeMismatch (*this), + 0 + ); + return result; +} + +void IOP::Codec::TypeMismatch::_raise (void) +{ + TAO_RAISE (*this); +} + +void IOP::Codec::TypeMismatch::_tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL + ) const +{ + ACE_THROW (CORBA::MARSHAL ()); +} + +void IOP::Codec::TypeMismatch::_tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL + ) +{ + 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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/Codec/TypeMismatch:1.0 + 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, + sizeof (_oc_IOP_Codec_TypeMismatch), + (char *) &_oc_IOP_Codec_TypeMismatch, + 0, + sizeof (IOP::Codec::TypeMismatch) + ); + +::CORBA::TypeCode_ptr IOP::Codec::_tc_TypeMismatch = + &_tc_TAO_tc_IOP_Codec_TypeMismatch; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 26, + 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), + ACE_NTOHL (0x63000000), // name = Codec +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_Codec ( + CORBA::tk_objref, + sizeof (_oc_IOP_Codec), + (char *) &_oc_IOP_Codec, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/EncodingFormat:1.0 + 15, + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), + ACE_NTOHL (0x61740000), // name = EncodingFormat + CORBA::tk_short, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_EncodingFormat ( + CORBA::tk_alias, + sizeof (_oc_IOP_EncodingFormat), + (char *) &_oc_IOP_EncodingFormat, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 29, + 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), + ACE_NTOHL (0x0), // name = Encoding + 3, // member count + 7, + ACE_NTOHL (0x666f726d), + ACE_NTOHL (0x61740000), // name = format + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/EncodingFormat:1.0 + 15, + ACE_NTOHL (0x456e636f), + ACE_NTOHL (0x64696e67), + ACE_NTOHL (0x466f726d), + ACE_NTOHL (0x61740000), // name = EncodingFormat + CORBA::tk_short, + + + 14, + ACE_NTOHL (0x6d616a6f), + ACE_NTOHL (0x725f7665), + ACE_NTOHL (0x7273696f), + ACE_NTOHL (0x6e000000), // name = major_version + CORBA::tk_octet, + + 14, + ACE_NTOHL (0x6d696e6f), + ACE_NTOHL (0x725f7665), + ACE_NTOHL (0x7273696f), + ACE_NTOHL (0x6e000000), // name = minor_version + CORBA::tk_octet, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_Encoding ( + CORBA::tk_struct, + sizeof (_oc_IOP_Encoding), + (char *) &_oc_IOP_Encoding, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 + +int IOP::CodecFactory::_tao_class_id = 0; + +IOP::CodecFactory_ptr +tao_IOP_CodecFactory_duplicate ( + IOP::CodecFactory_ptr p + ) +{ + return IOP::CodecFactory::_duplicate (p); +} + +void +tao_IOP_CodecFactory_release ( + IOP::CodecFactory_ptr p + ) +{ + CORBA::release (p); +} + +IOP::CodecFactory_ptr +tao_IOP_CodecFactory_nil ( + void + ) +{ + return IOP::CodecFactory::_nil (); +} + +IOP::CodecFactory_ptr +tao_IOP_CodecFactory_narrow ( + CORBA::Object *p + ACE_ENV_ARG_DECL + ) +{ + return IOP::CodecFactory::_narrow (p ACE_ENV_ARG_PARAMETER); +} + +CORBA::Object * +tao_IOP_CodecFactory_upcast ( + void *src + ) +{ + IOP::CodecFactory **tmp = + ACE_static_cast (IOP::CodecFactory **, src); + return *tmp; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:721 + +// ************************************************************* +// IOP::CodecFactory_var +// ************************************************************* + +IOP::CodecFactory_var::CodecFactory_var (void) + : ptr_ (CodecFactory::_nil ()) +{} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::ptr (void) const +{ + return this->ptr_; +} + +IOP::CodecFactory_var::CodecFactory_var (const ::IOP::CodecFactory_var &p) + : TAO_Base_var (), + ptr_ (CodecFactory::_duplicate (p.ptr ())) +{} + +IOP::CodecFactory_var::~CodecFactory_var (void) +{ + CORBA::release (this->ptr_); +} + +IOP::CodecFactory_var & +IOP::CodecFactory_var::operator= (CodecFactory_ptr p) +{ + CORBA::release (this->ptr_); + this->ptr_ = p; + return *this; +} + +IOP::CodecFactory_var & +IOP::CodecFactory_var::operator= (const ::IOP::CodecFactory_var &p) +{ + if (this != &p) + { + CORBA::release (this->ptr_); + this->ptr_ = ::IOP::CodecFactory::_duplicate (p.ptr ()); + } + return *this; +} + +IOP::CodecFactory_var::operator const ::IOP::CodecFactory_ptr &() const // cast +{ + return this->ptr_; +} + +IOP::CodecFactory_var::operator ::IOP::CodecFactory_ptr &() // cast +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::operator-> (void) const +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::in (void) const +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr & +IOP::CodecFactory_var::inout (void) +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr & +IOP::CodecFactory_var::out (void) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::IOP::CodecFactory::_nil (); + return this->ptr_; +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::_retn (void) +{ + // yield ownership of managed obj reference + ::IOP::CodecFactory_ptr val = this->ptr_; + this->ptr_ = ::IOP::CodecFactory::_nil (); + return val; +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::tao_duplicate (CodecFactory_ptr p) +{ + return ::IOP::CodecFactory::_duplicate (p); +} + +void +IOP::CodecFactory_var::tao_release (CodecFactory_ptr p) +{ + CORBA::release (p); +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::tao_nil (void) +{ + return ::IOP::CodecFactory::_nil (); +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_var::tao_narrow ( + CORBA::Object *p + ACE_ENV_ARG_DECL + ) +{ + return ::IOP::CodecFactory::_narrow (p ACE_ENV_ARG_PARAMETER); +} + +CORBA::Object * +IOP::CodecFactory_var::tao_upcast (void *src) +{ + CodecFactory **tmp = + ACE_static_cast (CodecFactory **, src); + return *tmp; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1030 + +// ************************************************************* +// IOP::CodecFactory_out +// ************************************************************* + +IOP::CodecFactory_out::CodecFactory_out (CodecFactory_ptr &p) + : ptr_ (p) +{ + this->ptr_ = ::IOP::CodecFactory::_nil (); +} + +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) + : ptr_ (ACE_const_cast (CodecFactory_out &, p).ptr_) +{} + +::IOP::CodecFactory_out & +IOP::CodecFactory_out::operator= (const ::IOP::CodecFactory_out &p) +{ + this->ptr_ = ACE_const_cast (CodecFactory_out&, p).ptr_; + return *this; +} + +IOP::CodecFactory_out & +IOP::CodecFactory_out::operator= (const ::IOP::CodecFactory_var &p) +{ + this->ptr_ = ::IOP::CodecFactory::_duplicate (p.ptr ()); + return *this; +} + +IOP::CodecFactory_out & +IOP::CodecFactory_out::operator= (CodecFactory_ptr p) +{ + this->ptr_ = p; + return *this; +} + +IOP::CodecFactory_out::operator ::IOP::CodecFactory_ptr &() // cast +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr & +IOP::CodecFactory_out::ptr (void) +{ + return this->ptr_; +} + +::IOP::CodecFactory_ptr +IOP::CodecFactory_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:225 + +IOP::CodecFactory::CodecFactory (void) +{} + +IOP::CodecFactory::~CodecFactory (void) +{} + +void +IOP::CodecFactory::_tao_any_destructor (void *_tao_void_pointer) +{ + CodecFactory *tmp = ACE_static_cast (CodecFactory *, _tao_void_pointer); + CORBA::release (tmp); +} + +IOP::CodecFactory_ptr +IOP::CodecFactory::_narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL + ) +{ + return CodecFactory::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); +} + +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 + ACE_reinterpret_cast ( + CodecFactory_ptr, + 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 (); + } + + 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 != 0) + { + this->_add_ref (); + } + + return retv; +} + +const char* IOP::CodecFactory::_interface_repository_id (void) const +{ + return "IDL:omg.org/IOP/CodecFactory:1.0"; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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" + ) +{ +} + +IOP::CodecFactory::UnknownEncoding::~UnknownEncoding (void) +{ +} + +IOP::CodecFactory::UnknownEncoding::UnknownEncoding (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) +{ +} + +IOP::CodecFactory::UnknownEncoding& +IOP::CodecFactory::UnknownEncoding::operator= (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp) +{ + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + return *this; +} + +void IOP::CodecFactory::UnknownEncoding::_tao_any_destructor (void *_tao_void_pointer) +{ + UnknownEncoding *tmp = ACE_static_cast (UnknownEncoding*, _tao_void_pointer); + delete tmp; +} + +IOP::CodecFactory::UnknownEncoding * +IOP::CodecFactory::UnknownEncoding::_downcast (CORBA::Exception *_tao_excp) +{ + if (!ACE_OS::strcmp ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", _tao_excp->_rep_id ())) + { + return ACE_dynamic_cast (UnknownEncoding *, _tao_excp); + } + else + { + return 0; + } +} + +CORBA::Exception *IOP::CodecFactory::UnknownEncoding::_alloc (void) +{ + CORBA::Exception *retval = 0; + ACE_NEW_RETURN (retval, ::IOP::CodecFactory::UnknownEncoding, 0); + return retval; +} + +CORBA::Exception * +IOP::CodecFactory::UnknownEncoding::_tao_duplicate (void) const +{ + CORBA::Exception *result; + ACE_NEW_RETURN ( + result, + ::IOP::CodecFactory::UnknownEncoding (*this), + 0 + ); + return result; +} + +void IOP::CodecFactory::UnknownEncoding::_raise (void) +{ + TAO_RAISE (*this); +} + +void IOP::CodecFactory::UnknownEncoding::_tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL + ) const +{ + ACE_THROW (CORBA::MARSHAL ()); +} + +void IOP::CodecFactory::UnknownEncoding::_tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL + ) +{ + 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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x0), // repository ID = IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0 + 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, + sizeof (_oc_IOP_CodecFactory_UnknownEncoding), + (char *) &_oc_IOP_CodecFactory_UnknownEncoding, + 0, + sizeof (IOP::CodecFactory::UnknownEncoding) + ); + +::CORBA::TypeCode_ptr IOP::CodecFactory::_tc_UnknownEncoding = + &_tc_TAO_tc_IOP_CodecFactory_UnknownEncoding; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 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 (0x0), // repository ID = IDL:omg.org/IOP/CodecFactory:1.0 + 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, + sizeof (_oc_IOP_CodecFactory), + (char *) &_oc_IOP_CodecFactory, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_cs.cpp:52 + +// Copying version. +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); +} + +// Non-copying version. +void +operator<<= ( + CORBA::Any &_tao_any, + IOP::Codec_ptr *_tao_elem + ) +{ + _tao_any._tao_replace ( + IOP::_tc_Codec, + 1, + *_tao_elem, + IOP::Codec::_tao_any_destructor + ); + + _tao_any.contains_local (1); +} + +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 _tao_result = + type->equivalent ( + IOP::_tc_Codec + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; + + _tao_elem = IOP::Codec::_nil (); + return 0; +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO_Object_Manager<IOP::Codec,IOP::Codec_var>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO_Object_Manager<IOP::Codec,IOP::Codec_var> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 + +// 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, + IOP::Encoding *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast ( + const IOP::Encoding *&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::Encoding *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_Encoding + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_cs.cpp:52 + +// Copying version. +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); +} + +// Non-copying version. +void +operator<<= ( + CORBA::Any &_tao_any, + IOP::CodecFactory_ptr *_tao_elem + ) +{ + _tao_any._tao_replace ( + IOP::_tc_CodecFactory, + 1, + *_tao_elem, + IOP::CodecFactory::_tao_any_destructor + ); + + _tao_any.contains_local (1); +} + +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 _tao_result = + type->equivalent ( + IOP::_tc_CodecFactory + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; + + _tao_elem = IOP::CodecFactory::_nil (); + return 0; +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO_Object_Manager<IOP::CodecFactory,IOP::CodecFactory_var>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO_Object_Manager<IOP::CodecFactory,IOP::CodecFactory_var> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/IOP_CodecC.h b/TAO/tao/IOP_CodecC.h new file mode 100644 index 00000000000..6cf826ae560 --- /dev/null +++ b/TAO/tao/IOP_CodecC.h @@ -0,0 +1,774 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:151 + +#ifndef _TAO_IDL_ORIG_IOP_CODECC_H_ +#define _TAO_IDL_ORIG_IOP_CODECC_H_ + +#include "ace/pre.h" + +#include "tao/corbafwd.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + + +#include "tao/TAO_export.h" +#include "tao/Object.h" +#include "tao/Exception.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:48 + +TAO_NAMESPACE IOP +{ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:52 + +#if !defined (_IOP_CODEC___PTR_CH_) +#define _IOP_CODEC___PTR_CH_ + + class Codec; + typedef Codec *Codec_ptr; + +#endif /* end #if !defined */ + +#if !defined (_IOP_CODEC___VAR_CH_) +#define _IOP_CODEC___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:565 + + class TAO_Export Codec_var : private TAO_Base_var + { + public: + Codec_var (void); // default constructor + Codec_var (Codec_ptr p) : ptr_ (p) {} + Codec_var (const Codec_var &); // copy constructor + ~Codec_var (void); // destructor + + Codec_var &operator= (Codec_ptr); + Codec_var &operator= (const Codec_var &); + Codec_ptr operator-> (void) const; + + operator const Codec_ptr &() const; + operator Codec_ptr &(); + // in, inout, out, _retn + Codec_ptr in (void) const; + Codec_ptr &inout (void); + Codec_ptr &out (void); + Codec_ptr _retn (void); + Codec_ptr ptr (void) const; + + // Hooks used by template sequence and object manager classes + // for non-defined forward declared interfaces. + static Codec_ptr tao_duplicate (Codec_ptr); + static void tao_release (Codec_ptr); + static Codec_ptr tao_nil (void); + static Codec_ptr tao_narrow ( + CORBA::Object * + ACE_ENV_ARG_DECL + ); + static CORBA::Object * tao_upcast (void *); + + private: + Codec_ptr ptr_; + // Unimplemented - prevents widening assignment. + Codec_var (const TAO_Base_var & rhs); + Codec_var & operator= (const TAO_Base_var & rhs); + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_CODEC___OUT_CH_) +#define _IOP_CODEC___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:946 + + class TAO_Export Codec_out + { + public: + Codec_out (Codec_ptr &); + Codec_out (Codec_var &); + Codec_out (const Codec_out &); + Codec_out &operator= (const Codec_out &); + Codec_out &operator= (const Codec_var &); + Codec_out &operator= (Codec_ptr); + operator Codec_ptr &(); + Codec_ptr &ptr (void); + Codec_ptr operator-> (void); + + private: + Codec_ptr &ptr_; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:110 + +#if !defined (_IOP_CODEC_CH_) +#define _IOP_CODEC_CH_ + + class TAO_Export Codec + : public virtual CORBA::Object + { + public: + typedef Codec_ptr _ptr_type; + typedef Codec_var _var_type; + static int _tao_class_id; + + // The static operations. + static Codec_ptr _duplicate (Codec_ptr obj); + + static Codec_ptr _narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static Codec_ptr _unchecked_narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static Codec_ptr _nil (void) + { + return (Codec_ptr)0; + } + + static void _tao_any_destructor (void *); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:51 + +#if !defined (_IOP_CODEC_INVALIDTYPEFORENCODING_CH_) +#define _IOP_CODEC_INVALIDTYPEFORENCODING_CH_ + + class TAO_Export InvalidTypeForEncoding : public CORBA::UserException + { + public: + + InvalidTypeForEncoding (void); + InvalidTypeForEncoding (const InvalidTypeForEncoding &); + ~InvalidTypeForEncoding (void); + + InvalidTypeForEncoding &operator= (const InvalidTypeForEncoding &); + + static void _tao_any_destructor (void *); + + static InvalidTypeForEncoding *_downcast (CORBA::Exception *); + static CORBA::Exception *_alloc (void); + + virtual CORBA::Exception *_tao_duplicate (void) const; + + virtual void _raise (void); + + virtual void _tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ) const; + + virtual void _tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:125 + + virtual CORBA::TypeCode_ptr _type (void) const; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + static ::CORBA::TypeCode_ptr _tc_InvalidTypeForEncoding; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:51 + +#if !defined (_IOP_CODEC_FORMATMISMATCH_CH_) +#define _IOP_CODEC_FORMATMISMATCH_CH_ + + class TAO_Export FormatMismatch : public CORBA::UserException + { + public: + + FormatMismatch (void); + FormatMismatch (const FormatMismatch &); + ~FormatMismatch (void); + + FormatMismatch &operator= (const FormatMismatch &); + + static void _tao_any_destructor (void *); + + static FormatMismatch *_downcast (CORBA::Exception *); + static CORBA::Exception *_alloc (void); + + virtual CORBA::Exception *_tao_duplicate (void) const; + + virtual void _raise (void); + + virtual void _tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ) const; + + virtual void _tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:125 + + virtual CORBA::TypeCode_ptr _type (void) const; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + static ::CORBA::TypeCode_ptr _tc_FormatMismatch; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:51 + +#if !defined (_IOP_CODEC_TYPEMISMATCH_CH_) +#define _IOP_CODEC_TYPEMISMATCH_CH_ + + class TAO_Export TypeMismatch : public CORBA::UserException + { + public: + + TypeMismatch (void); + TypeMismatch (const TypeMismatch &); + ~TypeMismatch (void); + + TypeMismatch &operator= (const TypeMismatch &); + + static void _tao_any_destructor (void *); + + static TypeMismatch *_downcast (CORBA::Exception *); + static CORBA::Exception *_alloc (void); + + virtual CORBA::Exception *_tao_duplicate (void) const; + + virtual void _raise (void); + + virtual void _tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ) const; + + virtual void _tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:125 + + virtual CORBA::TypeCode_ptr _type (void) const; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + static ::CORBA::TypeCode_ptr _tc_TypeMismatch; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ch.cpp:46 + + virtual ::CORBA::OctetSeq * encode ( + const CORBA::Any & data + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + , IOP::Codec::InvalidTypeForEncoding + )) = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ch.cpp:46 + + virtual CORBA::Any * decode ( + const CORBA::OctetSeq & data + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + , IOP::Codec::FormatMismatch + )) = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ch.cpp:46 + + virtual ::CORBA::OctetSeq * encode_value ( + const CORBA::Any & data + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + , IOP::Codec::InvalidTypeForEncoding + )) = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ch.cpp:46 + + virtual CORBA::Any * decode_value ( + const CORBA::OctetSeq & data, + CORBA::TypeCode_ptr tc + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + , IOP::Codec::FormatMismatch + , IOP::Codec::TypeMismatch + )) = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:267 + + virtual void *_tao_QueryInterface (ptr_arith_t type); + + virtual const char* _interface_repository_id (void) const; + + protected: + Codec (void); + virtual ~Codec (void); + + private: + Codec (const Codec &); + void operator= (const Codec &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Codec; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:334 + + typedef CORBA::Short EncodingFormat; + typedef CORBA::Short_out EncodingFormat_out; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_EncodingFormat; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::Short ENCODING_CDR_ENCAPS = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:49 + + class Encoding_var; + + struct TAO_Export Encoding + { + typedef Encoding_var _var_type; + + static void _tao_any_destructor (void *); + IOP::EncodingFormat format; + CORBA::Octet major_version; + CORBA::Octet minor_version; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:71 + + class TAO_Export Encoding_var + { + public: + Encoding_var (void); + Encoding_var (Encoding *); + Encoding_var (const Encoding_var &); + // Fixed-size types only. + Encoding_var (const Encoding &); + ~Encoding_var (void); + + Encoding_var &operator= (Encoding *); + Encoding_var &operator= (const Encoding_var &); + + // Fixed-size types only. + Encoding_var &operator= (const Encoding &); + + Encoding *operator-> (void); + const Encoding *operator-> (void) const; + + operator const Encoding &() const; + operator Encoding &(); + operator Encoding &() const; + + // in, inout, out, _retn + const Encoding &in (void) const; + Encoding &inout (void); + Encoding &out (void); + Encoding _retn (void); + Encoding *ptr (void) const; + + private: + Encoding *ptr_; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:105 + + typedef Encoding &Encoding_out; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Encoding; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:52 + +#if !defined (_IOP_CODECFACTORY___PTR_CH_) +#define _IOP_CODECFACTORY___PTR_CH_ + + class CodecFactory; + typedef CodecFactory *CodecFactory_ptr; + +#endif /* end #if !defined */ + +#if !defined (_IOP_CODECFACTORY___VAR_CH_) +#define _IOP_CODECFACTORY___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:565 + + class TAO_Export CodecFactory_var : private TAO_Base_var + { + public: + CodecFactory_var (void); // default constructor + CodecFactory_var (CodecFactory_ptr p) : ptr_ (p) {} + CodecFactory_var (const CodecFactory_var &); // copy constructor + ~CodecFactory_var (void); // destructor + + CodecFactory_var &operator= (CodecFactory_ptr); + CodecFactory_var &operator= (const CodecFactory_var &); + CodecFactory_ptr operator-> (void) const; + + operator const CodecFactory_ptr &() const; + operator CodecFactory_ptr &(); + // in, inout, out, _retn + CodecFactory_ptr in (void) const; + CodecFactory_ptr &inout (void); + CodecFactory_ptr &out (void); + CodecFactory_ptr _retn (void); + CodecFactory_ptr ptr (void) const; + + // Hooks used by template sequence and object manager classes + // for non-defined forward declared interfaces. + static CodecFactory_ptr tao_duplicate (CodecFactory_ptr); + static void tao_release (CodecFactory_ptr); + static CodecFactory_ptr tao_nil (void); + static CodecFactory_ptr tao_narrow ( + CORBA::Object * + ACE_ENV_ARG_DECL + ); + static CORBA::Object * tao_upcast (void *); + + private: + CodecFactory_ptr ptr_; + // Unimplemented - prevents widening assignment. + CodecFactory_var (const TAO_Base_var & rhs); + CodecFactory_var & operator= (const TAO_Base_var & rhs); + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_CODECFACTORY___OUT_CH_) +#define _IOP_CODECFACTORY___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:946 + + class TAO_Export CodecFactory_out + { + public: + CodecFactory_out (CodecFactory_ptr &); + CodecFactory_out (CodecFactory_var &); + CodecFactory_out (const CodecFactory_out &); + CodecFactory_out &operator= (const CodecFactory_out &); + CodecFactory_out &operator= (const CodecFactory_var &); + CodecFactory_out &operator= (CodecFactory_ptr); + operator CodecFactory_ptr &(); + CodecFactory_ptr &ptr (void); + CodecFactory_ptr operator-> (void); + + private: + CodecFactory_ptr &ptr_; + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:110 + +#if !defined (_IOP_CODECFACTORY_CH_) +#define _IOP_CODECFACTORY_CH_ + + class TAO_Export CodecFactory + : public virtual CORBA::Object + { + public: + typedef CodecFactory_ptr _ptr_type; + typedef CodecFactory_var _var_type; + static int _tao_class_id; + + // The static operations. + static CodecFactory_ptr _duplicate (CodecFactory_ptr obj); + + static CodecFactory_ptr _narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static CodecFactory_ptr _unchecked_narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static CodecFactory_ptr _nil (void) + { + return (CodecFactory_ptr)0; + } + + static void _tao_any_destructor (void *); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:51 + +#if !defined (_IOP_CODECFACTORY_UNKNOWNENCODING_CH_) +#define _IOP_CODECFACTORY_UNKNOWNENCODING_CH_ + + class TAO_Export UnknownEncoding : public CORBA::UserException + { + public: + + UnknownEncoding (void); + UnknownEncoding (const UnknownEncoding &); + ~UnknownEncoding (void); + + UnknownEncoding &operator= (const UnknownEncoding &); + + static void _tao_any_destructor (void *); + + static UnknownEncoding *_downcast (CORBA::Exception *); + static CORBA::Exception *_alloc (void); + + virtual CORBA::Exception *_tao_duplicate (void) const; + + virtual void _raise (void); + + virtual void _tao_encode ( + TAO_OutputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ) const; + + virtual void _tao_decode ( + TAO_InputCDR & + ACE_ENV_ARG_DECL_NOT_USED + ); + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_ch.cpp:125 + + virtual CORBA::TypeCode_ptr _type (void) const; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + static ::CORBA::TypeCode_ptr _tc_UnknownEncoding; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ch.cpp:46 + + virtual ::IOP::Codec_ptr create_codec ( + const IOP::Encoding & enc + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + , IOP::CodecFactory::UnknownEncoding + )) = 0; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ch.cpp:267 + + virtual void *_tao_QueryInterface (ptr_arith_t type); + + virtual const char* _interface_repository_id (void) const; + + protected: + CodecFactory (void); + virtual ~CodecFactory (void); + + private: + CodecFactory (const CodecFactory &); + void operator= (const CodecFactory &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_CodecFactory; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:67 + +} +TAO_NAMESPACE_CLOSE // module IOP + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, IOP::Codec_ptr); // copying +TAO_Export void operator<<= (CORBA::Any &, IOP::Codec_ptr *); // non-copying +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec_ptr &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::Codec::InvalidTypeForEncoding &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::Codec::InvalidTypeForEncoding*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::InvalidTypeForEncoding *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::InvalidTypeForEncoding *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::Codec::FormatMismatch &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::Codec::FormatMismatch*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::FormatMismatch *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::FormatMismatch *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::Codec::TypeMismatch &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::Codec::TypeMismatch*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::TypeMismatch *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::TypeMismatch *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::Encoding &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::Encoding*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Encoding *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Encoding *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, IOP::CodecFactory_ptr); // copying +TAO_Export void operator<<= (CORBA::Any &, IOP::CodecFactory_ptr *); // non-copying +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::CodecFactory_ptr &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::CodecFactory::UnknownEncoding &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::CodecFactory::UnknownEncoding*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::CodecFactory::UnknownEncoding *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::CodecFactory::UnknownEncoding *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:48 + +#ifndef __ACE_INLINE__ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ch.cpp:54 + +TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::Encoding &); +TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::Encoding &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:64 + +#endif /* __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:1016 + +#if defined (__ACE_INLINE__) +#include "IOP_CodecC.i" +#endif /* defined INLINE */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/IOP_CodecC.i b/TAO/tao/IOP_CodecC.i new file mode 100644 index 00000000000..1e1c79a4f0b --- /dev/null +++ b/TAO/tao/IOP_CodecC.i @@ -0,0 +1,244 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ci.cpp:68 + +#if !defined (_IOP_CODEC___CI_) +#define _IOP_CODEC___CI_ + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 + +// ************************************************************* +// Inline operations for class IOP::Encoding_var +// ************************************************************* + +ACE_INLINE +IOP::Encoding_var::Encoding_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::Encoding_var::Encoding_var (Encoding *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::Encoding_var::Encoding_var (const ::IOP::Encoding_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::Encoding (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +// Fixed-size types only. +ACE_INLINE +IOP::Encoding_var::Encoding_var (const ::IOP::Encoding &p) +{ + ACE_NEW (this->ptr_, ::IOP::Encoding (p)); +} + +ACE_INLINE +IOP::Encoding_var::~Encoding_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::Encoding_var & +IOP::Encoding_var::operator= (Encoding *_tao_struct_var) +{ + delete this->ptr_; + this->ptr_ = _tao_struct_var; + return *this; +} + +ACE_INLINE +::IOP::Encoding_var & +IOP::Encoding_var::operator= (const ::IOP::Encoding_var &_tao_struct_var) +{ + if (this != &_tao_struct_var) + { + if (_tao_struct_var.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + Encoding *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + Encoding (*_tao_struct_var.ptr_), + *this + ); + + if (deep_copy != 0) + { + Encoding *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +// fixed-size types only +ACE_INLINE IOP::Encoding_var & +IOP::Encoding_var::operator= (const ::IOP::Encoding &p) +{ + if (this->ptr_ != &p) + { + delete this->ptr_; + ACE_NEW_RETURN ( + this->ptr_, + ::IOP::Encoding (p), + *this + ); + } + + return *this; +} + +ACE_INLINE const ::IOP::Encoding * +IOP::Encoding_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::Encoding * +IOP::Encoding_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::Encoding_var::operator const ::IOP::Encoding &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::Encoding_var::operator ::IOP::Encoding &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::Encoding_var::operator ::IOP::Encoding &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE const ::IOP::Encoding & +IOP::Encoding_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::Encoding & +IOP::Encoding_var::inout (void) +{ + return *this->ptr_; +} + +// mapping for fixed size +ACE_INLINE ::IOP::Encoding & +IOP::Encoding_var::out (void) +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::Encoding +IOP::Encoding_var::_retn (void) +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::Encoding * +IOP::Encoding_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ci.cpp:68 + +#if !defined (_IOP_CODECFACTORY___CI_) +#define _IOP_CODECFACTORY___CI_ + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 + +ACE_INLINE +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::Encoding &_tao_aggregate + ) +{ + if ( + (strm << _tao_aggregate.format) && + (strm << CORBA::Any::from_octet (_tao_aggregate.major_version)) && + (strm << CORBA::Any::from_octet (_tao_aggregate.minor_version)) + ) + { + return 1; + } + else + { + return 0; + } +} + +ACE_INLINE +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::Encoding &_tao_aggregate + ) +{ + if ( + (strm >> _tao_aggregate.format) && + (strm >> CORBA::Any::to_octet (_tao_aggregate.major_version)) && + (strm >> CORBA::Any::to_octet (_tao_aggregate.minor_version)) + ) + { + return 1; + } + else + { + return 0; + } +} + diff --git a/TAO/tao/IOP_IOR.pidl b/TAO/tao/IOP_IOR.pidl new file mode 100644 index 00000000000..54deeb7f3da --- /dev/null +++ b/TAO/tao/IOP_IOR.pidl @@ -0,0 +1,116 @@ +// -*- IDL -*- +/** + * @file IOP.pidl + * + * $Id$ + * + * @brief Pre-compiled IDL source for the IOP module. + * + * This file is used to generate IOPC.{h,i,cpp}, using the following + * command: + * + * tao_idl.exe + * -o orig -Gp -Gd -Ge 1 -Gv + * -Wb,export_macro=TAO_Export + * -Wb,export_include=TAO_Export.h + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * IOP.pidl + * + * and then: + * + * cp orig/IOPC.{h,i,cpp} . + * patch < diffs/IOP.diff + * + * The code left in IOPC.{h,i,cpp} is ready for use. + * + */ + +#ifndef TAO_IOP_IOR_PIDL +#define TAO_IOP_IOR_PIDL + +#include <orb.idl> + +#pragma prefix "omg.org" + +module IOP +{ + typedef unsigned long ProfileId; + const ProfileId TAG_INTERNET_IOP = 0; + const ProfileId TAG_MULTIPLE_COMPONENTS = 1; + + struct TaggedProfile { + ProfileId tag; + sequence<octet> profile_data; + }; + + struct IOR { + string type_id; + sequence<TaggedProfile> profiles; + }; + + typedef unsigned long ComponentId; + struct TaggedComponent { + ComponentId tag; + sequence<octet> component_data; + }; + typedef sequence<TaggedComponent> MultipleComponentProfile; + typedef sequence<TaggedComponent> TaggedComponentList; + typedef sequence<TaggedComponent> TaggedComponentSeq; + + // @@ All security related tags are located in the Security Service + // @@ related IDL files, in accordance with the Security Service 1.8 + // @@ specification. + + const ComponentId TAG_ORB_TYPE = 0; + const ComponentId TAG_CODE_SETS = 1; + const ComponentId TAG_POLICIES = 2; + const ComponentId TAG_ALTERNATE_IIOP_ADDRESS = 3; + + const ComponentId TAG_COMPLETE_OBJECT_KEY = 5; + const ComponentId TAG_ENDPOINT_ID_POSITION = 6; + const ComponentId TAG_LOCATION_POLICY = 12; + const ComponentId TAG_DCE_STRING_BINDING = 100; + const ComponentId TAG_DCE_BINDING_NAME = 101; + const ComponentId TAG_DCE_NO_PIPES = 102; + + typedef unsigned long ServiceId; + struct ServiceContext { + ServiceId context_id; + sequence <octet> context_data; + }; + typedef sequence <ServiceContext> ServiceContextList; + + const ServiceId TransactionService = 0; + const ServiceId CodeSets = 1; + const ServiceId ChainBypassCheck = 2; + const ServiceId ChainBypassInfo = 3; + const ServiceId LogicalThreadId = 4; + const ServiceId BI_DIR_IIOP = 5; + const ServiceId SendingContextRunTime = 6; + const ServiceId INVOCATION_POLICIES = 7; + // const ServiceId FORWARDED_IDENTITY = 8; + const ServiceId UnknownExceptionInfo = 9; + + // The following are defined in CORBA v2.4.2 Chapter 24 (February, 2001): + const ServiceId RTCorbaPriority = 10; + const ServiceId RTCorbaPriorityRange = 11; + + // The following are defined in the ptc/2000-04-04: + // Fault Tolerant CORBA Specification, V1.0 + const ComponentId TAG_FT_GROUP = 27; + const ComponentId TAG_FT_PRIMARY = 28; + const ComponentId TAG_FT_HEARTBEAT_ENABLED = 29; + const ServiceId FT_GROUP_VERSION = 12; + const ServiceId FT_REQUEST = 13; + + // The following are not defined yet in the Unreliable Multicast + // InterORB Protocol (orbos/2001-11-08) + const ProfileId TAG_UIPMC = 0x54414f0c; // @@ Get real number + const ComponentId TAG_GROUP = 0x54414f03; // @@ Get real number + const ComponentId TAG_GROUP_IIOP = 0x54414f04; // @@ Get real number +}; + +#pragma prefix "" + +#endif /* TAO_IOP_PIDL */ diff --git a/TAO/tao/IOP_IORC.cpp b/TAO/tao/IOP_IORC.cpp new file mode 100644 index 00000000000..c48cd47ba71 --- /dev/null +++ b/TAO/tao/IOP_IORC.cpp @@ -0,0 +1,3363 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314 + + +#include "IOP_IORC.h" +#include "tao/Stub.h" +#include "tao/Invocation.h" +#include "tao/PortableInterceptor.h" + +#if TAO_HAS_INTERCEPTORS == 1 +#include "tao/RequestInfo_Util.h" +#include "tao/ClientRequestInfo_i.h" +#include "tao/ClientInterceptorAdapter.h" +#endif /* TAO_HAS_INTERCEPTORS == 1 */ + + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "IOP_IORC.i" +#endif /* !defined INLINE */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 30, + 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), + ACE_NTOHL (0x64000000), // name = ProfileId + CORBA::tk_ulong, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_ProfileId ( + CORBA::tk_alias, + sizeof (_oc_IOP_ProfileId), + (char *) &_oc_IOP_ProfileId, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/TaggedProfile:1.0 + 14, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), + ACE_NTOHL (0x65000000), // name = TaggedProfile + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/ProfileId:1.0 + 10, + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), + ACE_NTOHL (0x64000000), // name = ProfileId + CORBA::tk_ulong, + + + 13, + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c655f), + ACE_NTOHL (0x64617461), + ACE_NTOHL (0x0), // name = profile_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedProfile ( + CORBA::tk_struct, + sizeof (_oc_IOP_TaggedProfile), + (char *) &_oc_IOP_TaggedProfile, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 24, + 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, + ACE_NTOHL (0x494f5200), // name = IOR + 2, // member count + 8, + ACE_NTOHL (0x74797065), + ACE_NTOHL (0x5f696400), // name = type_id + CORBA::tk_string, + 0U, // string length + 9, + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c6573), + ACE_NTOHL (0x0), // name = profiles + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/TaggedProfile:1.0 + 14, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x65645072), + ACE_NTOHL (0x6f66696c), + ACE_NTOHL (0x65000000), // name = TaggedProfile + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/ProfileId:1.0 + 10, + ACE_NTOHL (0x50726f66), + ACE_NTOHL (0x696c6549), + ACE_NTOHL (0x64000000), // name = ProfileId + CORBA::tk_ulong, + + + 13, + ACE_NTOHL (0x70726f66), + ACE_NTOHL (0x696c655f), + ACE_NTOHL (0x64617461), + ACE_NTOHL (0x0), // name = profile_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_IOR ( + CORBA::tk_struct, + sizeof (_oc_IOP_IOR), + (char *) &_oc_IOP_IOR, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_ + +void +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_allocate_buffer (CORBA::ULong length) +{ + 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); + } + } + + this->buffer_ = tmp; +} + +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_); + _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) +{ + this->_deallocate_buffer (); +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_) +#define _IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CS_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 32, + 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), + ACE_NTOHL (0x74496400), // name = ComponentId + CORBA::tk_ulong, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_ComponentId ( + CORBA::tk_alias, + sizeof (_oc_IOP_ComponentId), + (char *) &_oc_IOP_ComponentId, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7400), // name = TaggedComponent + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x74496400), // name = ComponentId + CORBA::tk_ulong, + + + 15, + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x74610000), // name = component_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponent ( + CORBA::tk_struct, + sizeof (_oc_IOP_TaggedComponent), + (char *) &_oc_IOP_TaggedComponent, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CS_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CS_ + +void +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_allocate_buffer (CORBA::ULong length) +{ + 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); + } + } + + this->buffer_ = tmp; +} + +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_); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); + this->buffer_ = 0; +} + +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::~_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) +{ + this->_deallocate_buffer (); +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CS_) +#define _IOP_MULTIPLECOMPONENTPROFILE_CS_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 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 (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), + ACE_NTOHL (0x0), // name = MultipleComponentProfile + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7400), // name = TaggedComponent + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x74496400), // name = ComponentId + CORBA::tk_ulong, + + + 15, + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x74610000), // name = component_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_MultipleComponentProfile ( + CORBA::tk_alias, + sizeof (_oc_IOP_MultipleComponentProfile), + (char *) &_oc_IOP_MultipleComponentProfile, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CS_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CS_ + +void +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_allocate_buffer (CORBA::ULong length) +{ + 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); + } + } + + this->buffer_ = tmp; +} + +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_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); + this->buffer_ = 0; +} + +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::~_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) +{ + this->_deallocate_buffer (); +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST_CS_) +#define _IOP_TAGGEDCOMPONENTLIST_CS_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponentList:1.0 + 20, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e744c), + ACE_NTOHL (0x69737400), // name = TaggedComponentList + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7400), // name = TaggedComponent + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x74496400), // name = ComponentId + CORBA::tk_ulong, + + + 15, + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x74610000), // name = component_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponentList ( + CORBA::tk_alias, + sizeof (_oc_IOP_TaggedComponentList), + (char *) &_oc_IOP_TaggedComponentList, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CS_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CS_ + +void +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_allocate_buffer (CORBA::ULong length) +{ + 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); + } + } + + this->buffer_ = tmp; +} + +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_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (tmp); + this->buffer_ = 0; +} + +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void) +{ + this->_deallocate_buffer (); +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTSEQ_CS_) +#define _IOP_TAGGEDCOMPONENTSEQ_CS_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/TaggedComponentSeq:1.0 + 19, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7453), + ACE_NTOHL (0x65710000), // name = TaggedComponentSeq + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0 + 16, + ACE_NTOHL (0x54616767), + ACE_NTOHL (0x6564436f), + ACE_NTOHL (0x6d706f6e), + ACE_NTOHL (0x656e7400), // name = TaggedComponent + 2, // member count + 4, + ACE_NTOHL (0x74616700), // name = tag + 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 (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0 + 12, + ACE_NTOHL (0x436f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x74496400), // name = ComponentId + CORBA::tk_ulong, + + + 15, + ACE_NTOHL (0x636f6d70), + ACE_NTOHL (0x6f6e656e), + ACE_NTOHL (0x745f6461), + ACE_NTOHL (0x74610000), // name = component_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_TaggedComponentSeq ( + CORBA::tk_alias, + sizeof (_oc_IOP_TaggedComponentSeq), + (char *) &_oc_IOP_TaggedComponentSeq, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 30, + 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), + ACE_NTOHL (0x64000000), // name = ServiceId + CORBA::tk_ulong, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceId ( + CORBA::tk_alias, + sizeof (_oc_IOP_ServiceId), + (char *) &_oc_IOP_ServiceId, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContext:1.0 + 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), + ACE_NTOHL (0x69640000), // name = context_id + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/ServiceId:1.0 + 10, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), + ACE_NTOHL (0x64000000), // name = ServiceId + CORBA::tk_ulong, + + + 13, + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), + ACE_NTOHL (0x64617461), + ACE_NTOHL (0x0), // name = context_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceContext ( + CORBA::tk_struct, + sizeof (_oc_IOP_ServiceContext), + (char *) &_oc_IOP_ServiceContext, + 0, + sizeof (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_END + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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 +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_cs.cpp:101 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CS_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CS_ + +void +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_allocate_buffer (CORBA::ULong length) +{ + 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); + } + } + + this->buffer_ = tmp; +} + +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_); + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); + this->buffer_ = 0; +} + +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::~_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) +{ + this->_deallocate_buffer (); +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_SERVICECONTEXTLIST_CS_) +#define _IOP_SERVICECONTEXTLIST_CS_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\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) + : + +#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 */ + (max) +{} + +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 */ + (max, length, buffer, release) +{} + +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 */ + (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 +// C:\work\ACE+TAO\Branch\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 + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContextList:1.0 + 19, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636543), + ACE_NTOHL (0x6f6e7465), + ACE_NTOHL (0x78744c69), + ACE_NTOHL (0x73740000), // name = ServiceContextList + 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 (0x2e300000), // repository ID = IDL:omg.org/IOP/ServiceContext:1.0 + 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), + ACE_NTOHL (0x69640000), // name = context_id + 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 (0x30000000), // repository ID = IDL:omg.org/IOP/ServiceId:1.0 + 10, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x69636549), + ACE_NTOHL (0x64000000), // name = ServiceId + CORBA::tk_ulong, + + + 13, + ACE_NTOHL (0x636f6e74), + ACE_NTOHL (0x6578745f), + ACE_NTOHL (0x64617461), + ACE_NTOHL (0x0), // name = context_data + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + + 0U, + +}; + +static CORBA::TypeCode _tc_TAO_tc_IOP_ServiceContextList ( + CORBA::tk_alias, + sizeof (_oc_IOP_ServiceContextList), + (char *) &_oc_IOP_ServiceContextList, + 0, + sizeof (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_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::TaggedProfile *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast ( + const IOP::TaggedProfile *&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::TaggedProfile *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_TaggedProfile + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::IOR *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast ( + const IOP::IOR *&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::IOR *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_IOR + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::TaggedComponent *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast ( + const IOP::TaggedComponent *&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::TaggedComponent *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_TaggedComponent + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::MultipleComponentProfile *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast( + const IOP::MultipleComponentProfile*&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::MultipleComponentProfile *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_MultipleComponentProfile + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::TaggedComponentList *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast( + const IOP::TaggedComponentList*&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::TaggedComponentList *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_TaggedComponentList + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::TaggedComponentSeq *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast( + const IOP::TaggedComponentSeq*&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::TaggedComponentSeq *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_TaggedComponentSeq + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::ServiceContext *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast ( + const IOP::ServiceContext *&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::ServiceContext *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_ServiceContext + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54 + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 () + ); + } +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + 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 + ); + } +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + IOP::ServiceContextList *&_tao_elem + ) +{ + return _tao_any >>= ACE_const_cast( + const IOP::ServiceContextList*&, + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const IOP::ServiceContextList *&_tao_elem + ) +{ + _tao_elem = 0; + + ACE_TRY_NEW_ENV + { + CORBA::TypeCode_var type = _tao_any.type (); + + CORBA::Boolean _tao_result = + type->equivalent ( + IOP::_tc_ServiceContextList + ACE_ENV_ARG_PARAMETER + ); + ACE_TRY_CHECK; + + if (!_tao_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; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +#if !defined _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ +#define _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedProfile::_tao_seq_Octet &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedProfile::_tao_seq_Octet &_tao_sequence + ) +{ + 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 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_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); +#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +#endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +#if !defined _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ +#define _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::IOR::_tao_seq_TaggedProfile &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::IOR::_tao_seq_TaggedProfile &_tao_sequence + ) +{ + 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 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 0; +} + +#endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ +#define _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedComponent::_tao_seq_Octet &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedComponent::_tao_seq_Octet &_tao_sequence + ) +{ + 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 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_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); +#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +#endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::MultipleComponentProfile &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::MultipleComponentProfile &_tao_sequence + ) +{ + 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 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 0; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedComponentList &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedComponentList &_tao_sequence + ) +{ + 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 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 0; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedComponentSeq &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedComponentSeq &_tao_sequence + ) +{ + 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 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 0; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +#if !defined _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ +#define _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::ServiceContext::_tao_seq_Octet &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::ServiceContext::_tao_seq_Octet &_tao_sequence + ) +{ + 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 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_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); +#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); + +#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ + } + + return 0; +} + +#endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:103 + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::ServiceContextList &_tao_sequence + ) +{ + CORBA::ULong _tao_seq_len = _tao_sequence.length (); + + if (strm << _tao_seq_len) + { + // 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 0; +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::ServiceContextList &_tao_sequence + ) +{ + 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 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 0; +} + diff --git a/TAO/tao/IOP_IORC.h b/TAO/tao/IOP_IORC.h new file mode 100644 index 00000000000..36cf6c9dd03 --- /dev/null +++ b/TAO/tao/IOP_IORC.h @@ -0,0 +1,1779 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:151 + +#ifndef _TAO_IDL_ORIG_IOP_IORC_H_ +#define _TAO_IDL_ORIG_IOP_IORC_H_ + +#include "ace/pre.h" + +#include "tao/corbafwd.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + + +#include "tao/TAO_export.h" +#include "tao/Sequence_T.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:48 + +TAO_NAMESPACE IOP +{ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:334 + + typedef CORBA::ULong ProfileId; + typedef CORBA::ULong_out ProfileId_out; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ProfileId; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_INTERNET_IOP = 0U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_MULTIPLE_COMPONENTS = 1U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:49 + + class TaggedProfile_var; + + struct TAO_Export TaggedProfile + { + typedef TaggedProfile_var _var_type; + + static void _tao_any_destructor (void *); + IOP::ProfileId tag; + + +#if !defined (_IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CH_) +#define _IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class _tao_seq_Octet; + + // ************************************************************* + // IOP::TaggedProfile::_tao_seq_Octet + // ************************************************************* + + class TAO_Export _tao_seq_Octet : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#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 */ + { + public: + _tao_seq_Octet (void); + _tao_seq_Octet (CORBA::ULong max); + _tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release = 0 + ); + _tao_seq_Octet (const _tao_seq_Octet &); + ~_tao_seq_Octet (void); + + static void _tao_any_destructor (void*); + + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + _tao_seq_Octet ( + CORBA::ULong length, + const ACE_Message_Block* mb + ) + : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {} +#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */ + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_field/field_ch.cpp:447 + + typedef _tao_seq_Octet _profile_data_seq; + _tao_seq_Octet profile_data; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:71 + + class TAO_Export TaggedProfile_var + { + public: + TaggedProfile_var (void); + TaggedProfile_var (TaggedProfile *); + TaggedProfile_var (const TaggedProfile_var &); + ~TaggedProfile_var (void); + + TaggedProfile_var &operator= (TaggedProfile *); + TaggedProfile_var &operator= (const TaggedProfile_var &); + TaggedProfile *operator-> (void); + const TaggedProfile *operator-> (void) const; + + operator const TaggedProfile &() const; + operator TaggedProfile &(); + operator TaggedProfile &() const; + + // Variable-size types only. + operator TaggedProfile *&(); + + // in, inout, out, _retn + const TaggedProfile &in (void) const; + TaggedProfile &inout (void); + TaggedProfile *&out (void); + TaggedProfile *_retn (void); + TaggedProfile *ptr (void) const; + + private: + TaggedProfile *ptr_; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:445 + + class TAO_Export TaggedProfile_out + { + public: + TaggedProfile_out (TaggedProfile *&); + TaggedProfile_out (TaggedProfile_var &); + TaggedProfile_out (const TaggedProfile_out &); + TaggedProfile_out &operator= (const TaggedProfile_out &); + TaggedProfile_out &operator= (TaggedProfile *); + operator TaggedProfile *&(); + TaggedProfile *&ptr (void); + TaggedProfile *operator-> (void); + + private: + TaggedProfile *&ptr_; + // Assignment from T_var not allowed. + void operator= (const TaggedProfile_var &); + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedProfile; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:49 + + class IOR_var; + + struct TAO_Export IOR + { + typedef IOR_var _var_type; + + static void _tao_any_destructor (void *); + TAO_String_Manager type_id; + + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ch.cpp:65 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CH_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CH_ + + class TAO_Export _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile + : public TAO_Unbounded_Base_Sequence + { + public: + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (CORBA::ULong maximum); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile ( + CORBA::ULong maximum, + CORBA::ULong length, + ACE_NESTED_CLASS (IOP, TaggedProfile) *data, + CORBA::Boolean release = 0 + ); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile ( + const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs + ); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &operator= ( + const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs + ); + virtual ~_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void); + + // = Accessors. + ACE_NESTED_CLASS (IOP, TaggedProfile) &operator[] (CORBA::ULong i); + const ACE_NESTED_CLASS (IOP, TaggedProfile) &operator[] (CORBA::ULong i) const; + + // = Static operations. + static ACE_NESTED_CLASS (IOP, TaggedProfile) *allocbuf (CORBA::ULong size); + static void freebuf (ACE_NESTED_CLASS (IOP, TaggedProfile) *buffer); + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + virtual void _allocate_buffer (CORBA::ULong length); + virtual void _deallocate_buffer (void); + ACE_NESTED_CLASS (IOP, TaggedProfile) *get_buffer (CORBA::Boolean orphan = 0); + const ACE_NESTED_CLASS (IOP, TaggedProfile) *get_buffer (void) const; + void replace ( + CORBA::ULong max, + CORBA::ULong length, + ACE_NESTED_CLASS (IOP, TaggedProfile) *data, + CORBA::Boolean release + ); + }; + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CH_) +#define _IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class _tao_seq_TaggedProfile; + + // ************************************************************* + // IOP::IOR::_tao_seq_TaggedProfile + // ************************************************************* + + class TAO_Export _tao_seq_TaggedProfile : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile +#else /* TAO_USE_SEQUENCE_TEMPLATES */ + TAO_Unbounded_Sequence<ACE_NESTED_CLASS (IOP, TaggedProfile)> + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + { + public: + _tao_seq_TaggedProfile (void); + _tao_seq_TaggedProfile (CORBA::ULong max); + _tao_seq_TaggedProfile ( + CORBA::ULong max, + CORBA::ULong length, + ACE_NESTED_CLASS (IOP, TaggedProfile) *buffer, + CORBA::Boolean release = 0 + ); + _tao_seq_TaggedProfile (const _tao_seq_TaggedProfile &); + ~_tao_seq_TaggedProfile (void); + + static void _tao_any_destructor (void*); + + + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_field/field_ch.cpp:447 + + typedef _tao_seq_TaggedProfile _profiles_seq; + _tao_seq_TaggedProfile profiles; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:71 + + class TAO_Export IOR_var + { + public: + IOR_var (void); + IOR_var (IOR *); + IOR_var (const IOR_var &); + ~IOR_var (void); + + IOR_var &operator= (IOR *); + IOR_var &operator= (const IOR_var &); + IOR *operator-> (void); + const IOR *operator-> (void) const; + + operator const IOR &() const; + operator IOR &(); + operator IOR &() const; + + // Variable-size types only. + operator IOR *&(); + + // in, inout, out, _retn + const IOR &in (void) const; + IOR &inout (void); + IOR *&out (void); + IOR *_retn (void); + IOR *ptr (void) const; + + private: + IOR *ptr_; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:445 + + class TAO_Export IOR_out + { + public: + IOR_out (IOR *&); + IOR_out (IOR_var &); + IOR_out (const IOR_out &); + IOR_out &operator= (const IOR_out &); + IOR_out &operator= (IOR *); + operator IOR *&(); + IOR *&ptr (void); + IOR *operator-> (void); + + private: + IOR *&ptr_; + // Assignment from T_var not allowed. + void operator= (const IOR_var &); + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_IOR; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:334 + + typedef CORBA::ULong ComponentId; + typedef CORBA::ULong_out ComponentId_out; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ComponentId; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:49 + + class TaggedComponent_var; + + struct TAO_Export TaggedComponent + { + typedef TaggedComponent_var _var_type; + + static void _tao_any_destructor (void *); + IOP::ComponentId tag; + + +#if !defined (_IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CH_) +#define _IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class _tao_seq_Octet; + + // ************************************************************* + // IOP::TaggedComponent::_tao_seq_Octet + // ************************************************************* + + class TAO_Export _tao_seq_Octet : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#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 */ + { + public: + _tao_seq_Octet (void); + _tao_seq_Octet (CORBA::ULong max); + _tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release = 0 + ); + _tao_seq_Octet (const _tao_seq_Octet &); + ~_tao_seq_Octet (void); + + static void _tao_any_destructor (void*); + + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + _tao_seq_Octet ( + CORBA::ULong length, + const ACE_Message_Block* mb + ) + : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {} +#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */ + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_field/field_ch.cpp:447 + + typedef _tao_seq_Octet _component_data_seq; + _tao_seq_Octet component_data; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:71 + + class TAO_Export TaggedComponent_var + { + public: + TaggedComponent_var (void); + TaggedComponent_var (TaggedComponent *); + TaggedComponent_var (const TaggedComponent_var &); + ~TaggedComponent_var (void); + + TaggedComponent_var &operator= (TaggedComponent *); + TaggedComponent_var &operator= (const TaggedComponent_var &); + TaggedComponent *operator-> (void); + const TaggedComponent *operator-> (void) const; + + operator const TaggedComponent &() const; + operator TaggedComponent &(); + operator TaggedComponent &() const; + + // Variable-size types only. + operator TaggedComponent *&(); + + // in, inout, out, _retn + const TaggedComponent &in (void) const; + TaggedComponent &inout (void); + TaggedComponent *&out (void); + TaggedComponent *_retn (void); + TaggedComponent *ptr (void) const; + + private: + TaggedComponent *ptr_; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:445 + + class TAO_Export TaggedComponent_out + { + public: + TaggedComponent_out (TaggedComponent *&); + TaggedComponent_out (TaggedComponent_var &); + TaggedComponent_out (const TaggedComponent_out &); + TaggedComponent_out &operator= (const TaggedComponent_out &); + TaggedComponent_out &operator= (TaggedComponent *); + operator TaggedComponent *&(); + TaggedComponent *&ptr (void); + TaggedComponent *operator-> (void); + + private: + TaggedComponent *&ptr_; + // Assignment from T_var not allowed. + void operator= (const TaggedComponent_var &); + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponent; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ch.cpp:65 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CH_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CH_ + + class TAO_Export _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile + : public TAO_Unbounded_Base_Sequence + { + public: + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (CORBA::ULong maximum); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile ( + CORBA::ULong maximum, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release = 0 + ); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile ( + const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs + ); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &operator= ( + const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs + ); + virtual ~_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void); + + // = Accessors. + TaggedComponent &operator[] (CORBA::ULong i); + const TaggedComponent &operator[] (CORBA::ULong i) const; + + // = Static operations. + static TaggedComponent *allocbuf (CORBA::ULong size); + static void freebuf (TaggedComponent *buffer); + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + virtual void _allocate_buffer (CORBA::ULong length); + virtual void _deallocate_buffer (void); + TaggedComponent *get_buffer (CORBA::Boolean orphan = 0); + const TaggedComponent *get_buffer (void) const; + void replace ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release + ); + }; + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CH_) +#define _IOP_MULTIPLECOMPONENTPROFILE_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class MultipleComponentProfile; + class MultipleComponentProfile_var; + + // ************************************************************* + // IOP::MultipleComponentProfile + // ************************************************************* + + class TAO_Export MultipleComponentProfile : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile +#else /* TAO_USE_SEQUENCE_TEMPLATES */ + TAO_Unbounded_Sequence<TaggedComponent> + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + { + public: + MultipleComponentProfile (void); + MultipleComponentProfile (CORBA::ULong max); + MultipleComponentProfile ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *buffer, + CORBA::Boolean release = 0 + ); + MultipleComponentProfile (const MultipleComponentProfile &); + ~MultipleComponentProfile (void); + + static void _tao_any_destructor (void*); + + typedef MultipleComponentProfile_var _var_type; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE___VAR_CH_) +#define _IOP_MULTIPLECOMPONENTPROFILE___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:549 + + // ************************************************************* + // class IOP::MultipleComponentProfile_var + // ************************************************************* + + class TAO_Export MultipleComponentProfile_var + { + public: + MultipleComponentProfile_var (void); + MultipleComponentProfile_var (MultipleComponentProfile *); + MultipleComponentProfile_var (const MultipleComponentProfile_var &); + ~MultipleComponentProfile_var (void); + + MultipleComponentProfile_var &operator= (MultipleComponentProfile *); + MultipleComponentProfile_var &operator= (const MultipleComponentProfile_var &); + MultipleComponentProfile *operator-> (void); + const MultipleComponentProfile *operator-> (void) const; + + operator const MultipleComponentProfile &() const; + operator MultipleComponentProfile &(); + operator MultipleComponentProfile &() const; + + // Variable-size base types only. + operator MultipleComponentProfile *&(); + + TaggedComponent & operator[] (CORBA::ULong index); + const TaggedComponent & operator[] (CORBA::ULong index) const; + + // in, inout, out, _retn + const MultipleComponentProfile &in (void) const; + MultipleComponentProfile &inout (void); + MultipleComponentProfile *&out (void); + MultipleComponentProfile *_retn (void); + MultipleComponentProfile *ptr (void) const; + + private: + MultipleComponentProfile *ptr_; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE___OUT_CH_) +#define _IOP_MULTIPLECOMPONENTPROFILE___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:753 + + class TAO_Export MultipleComponentProfile_out + { + public: + MultipleComponentProfile_out (MultipleComponentProfile *&); + MultipleComponentProfile_out (MultipleComponentProfile_var &); + MultipleComponentProfile_out (const MultipleComponentProfile_out &); + MultipleComponentProfile_out &operator= (const MultipleComponentProfile_out &); + MultipleComponentProfile_out &operator= (MultipleComponentProfile *); + operator MultipleComponentProfile *&(); + MultipleComponentProfile *&ptr (void); + MultipleComponentProfile *operator-> (void); + TaggedComponent & operator[] (CORBA::ULong index); + + private: + MultipleComponentProfile *&ptr_; + // Assignment from T_var not allowed. + void operator= (const MultipleComponentProfile_var &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_MultipleComponentProfile; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ch.cpp:65 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CH_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CH_ + + class TAO_Export _TAO_Unbounded_Sequence_IOP_TaggedComponentList + : public TAO_Unbounded_Base_Sequence + { + public: + _TAO_Unbounded_Sequence_IOP_TaggedComponentList (void); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList ( + CORBA::ULong maximum, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release = 0 + ); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs + ); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList &operator= ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs + ); + virtual ~_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void); + + // = Accessors. + TaggedComponent &operator[] (CORBA::ULong i); + const TaggedComponent &operator[] (CORBA::ULong i) const; + + // = Static operations. + static TaggedComponent *allocbuf (CORBA::ULong size); + static void freebuf (TaggedComponent *buffer); + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + virtual void _allocate_buffer (CORBA::ULong length); + virtual void _deallocate_buffer (void); + TaggedComponent *get_buffer (CORBA::Boolean orphan = 0); + const TaggedComponent *get_buffer (void) const; + void replace ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release + ); + }; + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST_CH_) +#define _IOP_TAGGEDCOMPONENTLIST_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class TaggedComponentList; + class TaggedComponentList_var; + + // ************************************************************* + // IOP::TaggedComponentList + // ************************************************************* + + class TAO_Export TaggedComponentList : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + _TAO_Unbounded_Sequence_IOP_TaggedComponentList +#else /* TAO_USE_SEQUENCE_TEMPLATES */ + TAO_Unbounded_Sequence<TaggedComponent> + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + { + public: + TaggedComponentList (void); + TaggedComponentList (CORBA::ULong max); + TaggedComponentList ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *buffer, + CORBA::Boolean release = 0 + ); + TaggedComponentList (const TaggedComponentList &); + ~TaggedComponentList (void); + + static void _tao_any_destructor (void*); + + typedef TaggedComponentList_var _var_type; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST___VAR_CH_) +#define _IOP_TAGGEDCOMPONENTLIST___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:549 + + // ************************************************************* + // class IOP::TaggedComponentList_var + // ************************************************************* + + class TAO_Export TaggedComponentList_var + { + public: + TaggedComponentList_var (void); + TaggedComponentList_var (TaggedComponentList *); + TaggedComponentList_var (const TaggedComponentList_var &); + ~TaggedComponentList_var (void); + + TaggedComponentList_var &operator= (TaggedComponentList *); + TaggedComponentList_var &operator= (const TaggedComponentList_var &); + TaggedComponentList *operator-> (void); + const TaggedComponentList *operator-> (void) const; + + operator const TaggedComponentList &() const; + operator TaggedComponentList &(); + operator TaggedComponentList &() const; + + // Variable-size base types only. + operator TaggedComponentList *&(); + + TaggedComponent & operator[] (CORBA::ULong index); + const TaggedComponent & operator[] (CORBA::ULong index) const; + + // in, inout, out, _retn + const TaggedComponentList &in (void) const; + TaggedComponentList &inout (void); + TaggedComponentList *&out (void); + TaggedComponentList *_retn (void); + TaggedComponentList *ptr (void) const; + + private: + TaggedComponentList *ptr_; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST___OUT_CH_) +#define _IOP_TAGGEDCOMPONENTLIST___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:753 + + class TAO_Export TaggedComponentList_out + { + public: + TaggedComponentList_out (TaggedComponentList *&); + TaggedComponentList_out (TaggedComponentList_var &); + TaggedComponentList_out (const TaggedComponentList_out &); + TaggedComponentList_out &operator= (const TaggedComponentList_out &); + TaggedComponentList_out &operator= (TaggedComponentList *); + operator TaggedComponentList *&(); + TaggedComponentList *&ptr (void); + TaggedComponentList *operator-> (void); + TaggedComponent & operator[] (CORBA::ULong index); + + private: + TaggedComponentList *&ptr_; + // Assignment from T_var not allowed. + void operator= (const TaggedComponentList_var &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponentList; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ch.cpp:65 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CH_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CH_ + + class TAO_Export _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq + : public TAO_Unbounded_Base_Sequence + { + public: + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (CORBA::ULong maximum); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq ( + CORBA::ULong maximum, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release = 0 + ); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs + ); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &operator= ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs + ); + virtual ~_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void); + + // = Accessors. + TaggedComponent &operator[] (CORBA::ULong i); + const TaggedComponent &operator[] (CORBA::ULong i) const; + + // = Static operations. + static TaggedComponent *allocbuf (CORBA::ULong size); + static void freebuf (TaggedComponent *buffer); + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + virtual void _allocate_buffer (CORBA::ULong length); + virtual void _deallocate_buffer (void); + TaggedComponent *get_buffer (CORBA::Boolean orphan = 0); + const TaggedComponent *get_buffer (void) const; + void replace ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *data, + CORBA::Boolean release + ); + }; + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTSEQ_CH_) +#define _IOP_TAGGEDCOMPONENTSEQ_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class TaggedComponentSeq; + class TaggedComponentSeq_var; + + // ************************************************************* + // IOP::TaggedComponentSeq + // ************************************************************* + + class TAO_Export TaggedComponentSeq : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq +#else /* TAO_USE_SEQUENCE_TEMPLATES */ + TAO_Unbounded_Sequence<TaggedComponent> + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + { + public: + TaggedComponentSeq (void); + TaggedComponentSeq (CORBA::ULong max); + TaggedComponentSeq ( + CORBA::ULong max, + CORBA::ULong length, + TaggedComponent *buffer, + CORBA::Boolean release = 0 + ); + TaggedComponentSeq (const TaggedComponentSeq &); + ~TaggedComponentSeq (void); + + static void _tao_any_destructor (void*); + + typedef TaggedComponentSeq_var _var_type; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_TAGGEDCOMPONENTSEQ___VAR_CH_) +#define _IOP_TAGGEDCOMPONENTSEQ___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:549 + + // ************************************************************* + // class IOP::TaggedComponentSeq_var + // ************************************************************* + + class TAO_Export TaggedComponentSeq_var + { + public: + TaggedComponentSeq_var (void); + TaggedComponentSeq_var (TaggedComponentSeq *); + TaggedComponentSeq_var (const TaggedComponentSeq_var &); + ~TaggedComponentSeq_var (void); + + TaggedComponentSeq_var &operator= (TaggedComponentSeq *); + TaggedComponentSeq_var &operator= (const TaggedComponentSeq_var &); + TaggedComponentSeq *operator-> (void); + const TaggedComponentSeq *operator-> (void) const; + + operator const TaggedComponentSeq &() const; + operator TaggedComponentSeq &(); + operator TaggedComponentSeq &() const; + + // Variable-size base types only. + operator TaggedComponentSeq *&(); + + TaggedComponent & operator[] (CORBA::ULong index); + const TaggedComponent & operator[] (CORBA::ULong index) const; + + // in, inout, out, _retn + const TaggedComponentSeq &in (void) const; + TaggedComponentSeq &inout (void); + TaggedComponentSeq *&out (void); + TaggedComponentSeq *_retn (void); + TaggedComponentSeq *ptr (void) const; + + private: + TaggedComponentSeq *ptr_; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_TAGGEDCOMPONENTSEQ___OUT_CH_) +#define _IOP_TAGGEDCOMPONENTSEQ___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:753 + + class TAO_Export TaggedComponentSeq_out + { + public: + TaggedComponentSeq_out (TaggedComponentSeq *&); + TaggedComponentSeq_out (TaggedComponentSeq_var &); + TaggedComponentSeq_out (const TaggedComponentSeq_out &); + TaggedComponentSeq_out &operator= (const TaggedComponentSeq_out &); + TaggedComponentSeq_out &operator= (TaggedComponentSeq *); + operator TaggedComponentSeq *&(); + TaggedComponentSeq *&ptr (void); + TaggedComponentSeq *operator-> (void); + TaggedComponent & operator[] (CORBA::ULong index); + + private: + TaggedComponentSeq *&ptr_; + // Assignment from T_var not allowed. + void operator= (const TaggedComponentSeq_var &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponentSeq; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_ORB_TYPE = 0U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_CODE_SETS = 1U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_POLICIES = 2U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_ALTERNATE_IIOP_ADDRESS = 3U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_COMPLETE_OBJECT_KEY = 5U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_ENDPOINT_ID_POSITION = 6U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_LOCATION_POLICY = 12U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_DCE_STRING_BINDING = 100U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_DCE_BINDING_NAME = 101U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_DCE_NO_PIPES = 102U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:334 + + typedef CORBA::ULong ServiceId; + typedef CORBA::ULong_out ServiceId_out; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceId; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/structure_ch.cpp:49 + + class ServiceContext_var; + + struct TAO_Export ServiceContext + { + typedef ServiceContext_var _var_type; + + static void _tao_any_destructor (void *); + IOP::ServiceId context_id; + + +#if !defined (_IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CH_) +#define _IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class _tao_seq_Octet; + + // ************************************************************* + // IOP::ServiceContext::_tao_seq_Octet + // ************************************************************* + + class TAO_Export _tao_seq_Octet : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#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 */ + { + public: + _tao_seq_Octet (void); + _tao_seq_Octet (CORBA::ULong max); + _tao_seq_Octet ( + CORBA::ULong max, + CORBA::ULong length, + CORBA::Octet *buffer, + CORBA::Boolean release = 0 + ); + _tao_seq_Octet (const _tao_seq_Octet &); + ~_tao_seq_Octet (void); + + static void _tao_any_destructor (void*); + + +#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) + _tao_seq_Octet ( + CORBA::ULong length, + const ACE_Message_Block* mb + ) + : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {} +#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */ + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_field/field_ch.cpp:447 + + typedef _tao_seq_Octet _context_data_seq; + _tao_seq_Octet context_data; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:71 + + class TAO_Export ServiceContext_var + { + public: + ServiceContext_var (void); + ServiceContext_var (ServiceContext *); + ServiceContext_var (const ServiceContext_var &); + ~ServiceContext_var (void); + + ServiceContext_var &operator= (ServiceContext *); + ServiceContext_var &operator= (const ServiceContext_var &); + ServiceContext *operator-> (void); + const ServiceContext *operator-> (void) const; + + operator const ServiceContext &() const; + operator ServiceContext &(); + operator ServiceContext &() const; + + // Variable-size types only. + operator ServiceContext *&(); + + // in, inout, out, _retn + const ServiceContext &in (void) const; + ServiceContext &inout (void); + ServiceContext *&out (void); + ServiceContext *_retn (void); + ServiceContext *ptr (void) const; + + private: + ServiceContext *ptr_; + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:445 + + class TAO_Export ServiceContext_out + { + public: + ServiceContext_out (ServiceContext *&); + ServiceContext_out (ServiceContext_var &); + ServiceContext_out (const ServiceContext_out &); + ServiceContext_out &operator= (const ServiceContext_out &); + ServiceContext_out &operator= (ServiceContext *); + operator ServiceContext *&(); + ServiceContext *&ptr (void); + ServiceContext *operator-> (void); + + private: + ServiceContext *&ptr_; + // Assignment from T_var not allowed. + void operator= (const ServiceContext_var &); + }; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceContext; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ch.cpp:65 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CH_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CH_ + + class TAO_Export _TAO_Unbounded_Sequence_IOP_ServiceContextList + : public TAO_Unbounded_Base_Sequence + { + public: + _TAO_Unbounded_Sequence_IOP_ServiceContextList (void); + _TAO_Unbounded_Sequence_IOP_ServiceContextList (CORBA::ULong maximum); + _TAO_Unbounded_Sequence_IOP_ServiceContextList ( + CORBA::ULong maximum, + CORBA::ULong length, + ServiceContext *data, + CORBA::Boolean release = 0 + ); + _TAO_Unbounded_Sequence_IOP_ServiceContextList ( + const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs + ); + _TAO_Unbounded_Sequence_IOP_ServiceContextList &operator= ( + const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs + ); + virtual ~_TAO_Unbounded_Sequence_IOP_ServiceContextList (void); + + // = Accessors. + ServiceContext &operator[] (CORBA::ULong i); + const ServiceContext &operator[] (CORBA::ULong i) const; + + // = Static operations. + static ServiceContext *allocbuf (CORBA::ULong size); + static void freebuf (ServiceContext *buffer); + + // Implement the TAO_Base_Sequence methods (see Sequence.h) + virtual void _allocate_buffer (CORBA::ULong length); + virtual void _deallocate_buffer (void); + ServiceContext *get_buffer (CORBA::Boolean orphan = 0); + const ServiceContext *get_buffer (void) const; + void replace ( + CORBA::ULong max, + CORBA::ULong length, + ServiceContext *data, + CORBA::Boolean release + ); + }; + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_SERVICECONTEXTLIST_CH_) +#define _IOP_SERVICECONTEXTLIST_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:371 + + class ServiceContextList; + class ServiceContextList_var; + + // ************************************************************* + // IOP::ServiceContextList + // ************************************************************* + + class TAO_Export ServiceContextList : public + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:51 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + _TAO_Unbounded_Sequence_IOP_ServiceContextList +#else /* TAO_USE_SEQUENCE_TEMPLATES */ + TAO_Unbounded_Sequence<ServiceContext> + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + { + public: + ServiceContextList (void); + ServiceContextList (CORBA::ULong max); + ServiceContextList ( + CORBA::ULong max, + CORBA::ULong length, + ServiceContext *buffer, + CORBA::Boolean release = 0 + ); + ServiceContextList (const ServiceContextList &); + ~ServiceContextList (void); + + static void _tao_any_destructor (void*); + + typedef ServiceContextList_var _var_type; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_SERVICECONTEXTLIST___VAR_CH_) +#define _IOP_SERVICECONTEXTLIST___VAR_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:549 + + // ************************************************************* + // class IOP::ServiceContextList_var + // ************************************************************* + + class TAO_Export ServiceContextList_var + { + public: + ServiceContextList_var (void); + ServiceContextList_var (ServiceContextList *); + ServiceContextList_var (const ServiceContextList_var &); + ~ServiceContextList_var (void); + + ServiceContextList_var &operator= (ServiceContextList *); + ServiceContextList_var &operator= (const ServiceContextList_var &); + ServiceContextList *operator-> (void); + const ServiceContextList *operator-> (void) const; + + operator const ServiceContextList &() const; + operator ServiceContextList &(); + operator ServiceContextList &() const; + + // Variable-size base types only. + operator ServiceContextList *&(); + + ServiceContext & operator[] (CORBA::ULong index); + const ServiceContext & operator[] (CORBA::ULong index) const; + + // in, inout, out, _retn + const ServiceContextList &in (void) const; + ServiceContextList &inout (void); + ServiceContextList *&out (void); + ServiceContextList *_retn (void); + ServiceContextList *ptr (void) const; + + private: + ServiceContextList *ptr_; + }; + +#endif /* end #if !defined */ + +#if !defined (_IOP_SERVICECONTEXTLIST___OUT_CH_) +#define _IOP_SERVICECONTEXTLIST___OUT_CH_ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ch.cpp:753 + + class TAO_Export ServiceContextList_out + { + public: + ServiceContextList_out (ServiceContextList *&); + ServiceContextList_out (ServiceContextList_var &); + ServiceContextList_out (const ServiceContextList_out &); + ServiceContextList_out &operator= (const ServiceContextList_out &); + ServiceContextList_out &operator= (ServiceContextList *); + operator ServiceContextList *&(); + ServiceContextList *&ptr (void); + ServiceContextList *operator-> (void); + ServiceContext & operator[] (CORBA::ULong index); + + private: + ServiceContextList *&ptr_; + // Assignment from T_var not allowed. + void operator= (const ServiceContextList_var &); + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceContextList; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TransactionService = 0U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong CodeSets = 1U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong ChainBypassCheck = 2U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong ChainBypassInfo = 3U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong LogicalThreadId = 4U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong BI_DIR_IIOP = 5U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong SendingContextRunTime = 6U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong INVOCATION_POLICIES = 7U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong UnknownExceptionInfo = 9U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong RTCorbaPriority = 10U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong RTCorbaPriorityRange = 11U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_FT_GROUP = 27U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_FT_PRIMARY = 28U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_FT_HEARTBEAT_ENABLED = 29U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong FT_GROUP_VERSION = 12U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong FT_REQUEST = 13U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_UIPMC = 1413566220U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_GROUP = 1413566211U; + + // TAO_IDL - Generated from + // C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_constant/constant_ch.cpp:52 + + const CORBA::ULong TAG_GROUP_IIOP = 1413566212U; + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:67 + +} +TAO_NAMESPACE_CLOSE // module IOP + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::TaggedProfile &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::TaggedProfile*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::TaggedProfile *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::TaggedProfile *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::IOR &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::IOR*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::IOR *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::IOR *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::TaggedComponent &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::TaggedComponent*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::TaggedComponent *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::TaggedComponent *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::MultipleComponentProfile &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::MultipleComponentProfile*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::MultipleComponentProfile *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::MultipleComponentProfile *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::TaggedComponentList &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::TaggedComponentList*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::TaggedComponentList *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::TaggedComponentList *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::TaggedComponentSeq &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::TaggedComponentSeq*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::TaggedComponentSeq *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::TaggedComponentSeq *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::ServiceContext &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::ServiceContext*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::ServiceContext *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::ServiceContext *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_ch.cpp:52 + +TAO_Export void operator<<= (CORBA::Any &, const IOP::ServiceContextList &); // copying version +TAO_Export void operator<<= (CORBA::Any &, IOP::ServiceContextList*); // noncopying version +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::ServiceContextList *&); // deprecated +TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::ServiceContextList *&); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:48 + +#ifndef __ACE_INLINE__ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ch.cpp:54 + +TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::TaggedProfile &); +TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::TaggedProfile &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_H_ +#define _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::TaggedProfile::_tao_seq_Octet & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::TaggedProfile::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ch.cpp:54 + +TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::IOR &); +TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::IOR &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_H_ +#define _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::IOR::_tao_seq_TaggedProfile & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::IOR::_tao_seq_TaggedProfile & + ); + +#endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ch.cpp:54 + +TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::TaggedComponent &); +TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::TaggedComponent &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_H_ +#define _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponent::_tao_seq_Octet & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::TaggedComponent::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_MultipleComponentProfile_H_ +#define _TAO_CDR_OP_IOP_MultipleComponentProfile_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::MultipleComponentProfile & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::MultipleComponentProfile & + ); + +#endif /* _TAO_CDR_OP_IOP_MultipleComponentProfile_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponentList_H_ +#define _TAO_CDR_OP_IOP_TaggedComponentList_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponentList & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::TaggedComponentList & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponentList_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponentSeq_H_ +#define _TAO_CDR_OP_IOP_TaggedComponentSeq_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponentSeq & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::TaggedComponentSeq & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponentSeq_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ch.cpp:54 + +TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::ServiceContext &); +TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::ServiceContext &); + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_H_ +#define _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::ServiceContext::_tao_seq_Octet & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::ServiceContext::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ch.cpp:57 + +#if !defined _TAO_CDR_OP_IOP_ServiceContextList_H_ +#define _TAO_CDR_OP_IOP_ServiceContextList_H_ + +TAO_Export CORBA::Boolean operator<< ( + TAO_OutputCDR &, + const IOP::ServiceContextList & + ); +TAO_Export CORBA::Boolean operator>> ( + TAO_InputCDR &, + IOP::ServiceContextList & + ); + +#endif /* _TAO_CDR_OP_IOP_ServiceContextList_H_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:64 + +#endif /* __ACE_INLINE__ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:1016 + +#if defined (__ACE_INLINE__) +#include "IOP_IORC.i" +#endif /* defined INLINE */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include "ace/post.h" +#endif /* ifndef */ diff --git a/TAO/tao/IOP_IORC.i b/TAO/tao/IOP_IORC.i new file mode 100644 index 00000000000..a4ab051afa7 --- /dev/null +++ b/TAO/tao/IOP_IORC.i @@ -0,0 +1,3219 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 + +// ************************************************************* +// Inline operations for class IOP::TaggedProfile_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedProfile_var::TaggedProfile_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedProfile_var::TaggedProfile_var (TaggedProfile *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedProfile_var::TaggedProfile_var (const ::IOP::TaggedProfile_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::TaggedProfile (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::TaggedProfile_var::~TaggedProfile_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile_var & +IOP::TaggedProfile_var::operator= (TaggedProfile *_tao_struct_var) +{ + delete this->ptr_; + this->ptr_ = _tao_struct_var; + return *this; +} + +ACE_INLINE +::IOP::TaggedProfile_var & +IOP::TaggedProfile_var::operator= (const ::IOP::TaggedProfile_var &_tao_struct_var) +{ + if (this != &_tao_struct_var) + { + if (_tao_struct_var.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + TaggedProfile *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + TaggedProfile (*_tao_struct_var.ptr_), + *this + ); + + if (deep_copy != 0) + { + TaggedProfile *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE const ::IOP::TaggedProfile * +IOP::TaggedProfile_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile * +IOP::TaggedProfile_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile_var::operator const ::IOP::TaggedProfile &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::TaggedProfile_var::operator ::IOP::TaggedProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::TaggedProfile & +IOP::TaggedProfile_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile & +IOP::TaggedProfile_var::inout (void) +{ + return *this->ptr_; +} + +// Mapping for variable size. +ACE_INLINE ::IOP::TaggedProfile *& +IOP::TaggedProfile_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile * +IOP::TaggedProfile_var::_retn (void) +{ + ::IOP::TaggedProfile *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::TaggedProfile * +IOP::TaggedProfile_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 + +// ************************************************************* +// Inline operations for class IOP::TaggedProfile_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedProfile_out::TaggedProfile_out (::IOP::TaggedProfile *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedProfile_out::TaggedProfile_out (TaggedProfile_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedProfile_out::TaggedProfile_out (const ::IOP::TaggedProfile_out &p) + : ptr_ (ACE_const_cast (TaggedProfile_out&, p).ptr_) +{} + +ACE_INLINE +IOP::TaggedProfile_out & +IOP::TaggedProfile_out::operator= (const ::IOP::TaggedProfile_out &p) +{ + this->ptr_ = ACE_const_cast (TaggedProfile_out&, p).ptr_; + return *this; +} + +ACE_INLINE +IOP::TaggedProfile_out & +IOP::TaggedProfile_out::operator= (TaggedProfile *_tao_struct_out) +{ + this->ptr_ = _tao_struct_out; + return *this; +} + +ACE_INLINE +IOP::TaggedProfile_out::operator ::IOP::TaggedProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile *& +IOP::TaggedProfile_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedProfile * +IOP::TaggedProfile_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 + +// ************************************************************* +// Inline operations for class IOP::IOR_var +// ************************************************************* + +ACE_INLINE +IOP::IOR_var::IOR_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::IOR_var::IOR_var (IOR *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::IOR_var::IOR_var (const ::IOP::IOR_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::IOR (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::IOR_var::~IOR_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::IOR_var & +IOP::IOR_var::operator= (IOR *_tao_struct_var) +{ + delete this->ptr_; + this->ptr_ = _tao_struct_var; + return *this; +} + +ACE_INLINE +::IOP::IOR_var & +IOP::IOR_var::operator= (const ::IOP::IOR_var &_tao_struct_var) +{ + if (this != &_tao_struct_var) + { + if (_tao_struct_var.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + IOR *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + IOR (*_tao_struct_var.ptr_), + *this + ); + + if (deep_copy != 0) + { + IOR *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE const ::IOP::IOR * +IOP::IOR_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR * +IOP::IOR_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::IOR_var::operator const ::IOP::IOR &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::IOR_var::operator ::IOP::IOR &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::IOR_var::operator ::IOP::IOR &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::IOR_var::operator ::IOP::IOR *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::IOR & +IOP::IOR_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::IOR & +IOP::IOR_var::inout (void) +{ + return *this->ptr_; +} + +// Mapping for variable size. +ACE_INLINE ::IOP::IOR *& +IOP::IOR_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR * +IOP::IOR_var::_retn (void) +{ + ::IOP::IOR *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::IOR * +IOP::IOR_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 + +// ************************************************************* +// Inline operations for class IOP::IOR_out +// ************************************************************* + +ACE_INLINE +IOP::IOR_out::IOR_out (::IOP::IOR *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::IOR_out::IOR_out (IOR_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::IOR_out::IOR_out (const ::IOP::IOR_out &p) + : ptr_ (ACE_const_cast (IOR_out&, p).ptr_) +{} + +ACE_INLINE +IOP::IOR_out & +IOP::IOR_out::operator= (const ::IOP::IOR_out &p) +{ + this->ptr_ = ACE_const_cast (IOR_out&, p).ptr_; + return *this; +} + +ACE_INLINE +IOP::IOR_out & +IOP::IOR_out::operator= (IOR *_tao_struct_out) +{ + this->ptr_ = _tao_struct_out; + return *this; +} + +ACE_INLINE +IOP::IOR_out::operator ::IOP::IOR *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR *& +IOP::IOR_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::IOR * +IOP::IOR_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:99 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_IOR__TAO_SEQ_TAGGEDPROFILE_CI_ + +ACE_INLINE +IOP::TaggedProfile * +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (CORBA::ULong size) +{ + IOP::TaggedProfile *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedProfile[size], 0); + return retval; +} + +ACE_INLINE +void IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (IOP::TaggedProfile *buffer) +{ + delete [] buffer; +} + +ACE_INLINE +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void) +{ +} + +ACE_INLINE +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (CORBA::ULong maximum) + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (maximum)) +{ +} + +ACE_INLINE +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile ( + CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedProfile *data, + CORBA::Boolean release + ) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) +{ +} + +ACE_INLINE +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile ( + const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs + ) + : TAO_Unbounded_Base_Sequence (rhs) +{ + if (rhs.buffer_ != 0) + { + IOP::TaggedProfile *tmp1 = + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (this->maximum_); + IOP::TaggedProfile * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedProfile * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } +} + +ACE_INLINE +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile & +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator= ( + const _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile &rhs + ) +{ + if (this == &rhs) + { + return *this; + } + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // Free the old buffer. + IOP::TaggedProfile *tmp = + ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); + + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (tmp); + + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (rhs.maximum_); + } + } + else + { + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (rhs.maximum_); + } + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedProfile *tmp1 = + ACE_reinterpret_cast (IOP::TaggedProfile *, this->buffer_); + IOP::TaggedProfile * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedProfile * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + return *this; +} + +// = Accessors. +ACE_INLINE +IOP::TaggedProfile & +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator[] (CORBA::ULong i) +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedProfile* tmp = + ACE_reinterpret_cast (IOP::TaggedProfile*, this->buffer_); + return tmp[i]; +} + +ACE_INLINE +const IOP::TaggedProfile & +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::operator[] (CORBA::ULong i) const +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedProfile * const tmp = + ACE_reinterpret_cast (IOP::TaggedProfile* ACE_CAST_CONST, this->buffer_); + return tmp[i]; +} + +// Implement the TAO_Base_Sequence methods (see Sequence.h) + +ACE_INLINE +IOP::TaggedProfile * +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::get_buffer (CORBA::Boolean orphan) +{ + IOP::TaggedProfile *result = 0; + + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = + ACE_reinterpret_cast (IOP::TaggedProfile*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish ownership. + result = + ACE_reinterpret_cast(IOP::TaggedProfile*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + + return result; +} + +ACE_INLINE +const IOP::TaggedProfile * +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::get_buffer (void) const +{ + return ACE_reinterpret_cast (const IOP::TaggedProfile * ACE_CAST_CONST, this->buffer_); +} + +ACE_INLINE +void +IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::replace ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedProfile *data, + CORBA::Boolean release + ) +{ + this->maximum_ = max; + this->length_ = length; + + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedProfile *tmp = + ACE_reinterpret_cast (IOP::TaggedProfile*, this->buffer_); + _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::freebuf (tmp); + } + + this->buffer_ = data; + this->release_ = release; +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponent_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponent_var::TaggedComponent_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedComponent_var::TaggedComponent_var (TaggedComponent *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedComponent_var::TaggedComponent_var (const ::IOP::TaggedComponent_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::TaggedComponent (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::TaggedComponent_var::~TaggedComponent_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent_var & +IOP::TaggedComponent_var::operator= (TaggedComponent *_tao_struct_var) +{ + delete this->ptr_; + this->ptr_ = _tao_struct_var; + return *this; +} + +ACE_INLINE +::IOP::TaggedComponent_var & +IOP::TaggedComponent_var::operator= (const ::IOP::TaggedComponent_var &_tao_struct_var) +{ + if (this != &_tao_struct_var) + { + if (_tao_struct_var.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + TaggedComponent *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + TaggedComponent (*_tao_struct_var.ptr_), + *this + ); + + if (deep_copy != 0) + { + TaggedComponent *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE const ::IOP::TaggedComponent * +IOP::TaggedComponent_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent * +IOP::TaggedComponent_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent_var::operator const ::IOP::TaggedComponent &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::TaggedComponent_var::operator ::IOP::TaggedComponent *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::TaggedComponent & +IOP::TaggedComponent_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent & +IOP::TaggedComponent_var::inout (void) +{ + return *this->ptr_; +} + +// Mapping for variable size. +ACE_INLINE ::IOP::TaggedComponent *& +IOP::TaggedComponent_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent * +IOP::TaggedComponent_var::_retn (void) +{ + ::IOP::TaggedComponent *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::TaggedComponent * +IOP::TaggedComponent_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponent_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponent_out::TaggedComponent_out (::IOP::TaggedComponent *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponent_out::TaggedComponent_out (TaggedComponent_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponent_out::TaggedComponent_out (const ::IOP::TaggedComponent_out &p) + : ptr_ (ACE_const_cast (TaggedComponent_out&, p).ptr_) +{} + +ACE_INLINE +IOP::TaggedComponent_out & +IOP::TaggedComponent_out::operator= (const ::IOP::TaggedComponent_out &p) +{ + this->ptr_ = ACE_const_cast (TaggedComponent_out&, p).ptr_; + return *this; +} + +ACE_INLINE +IOP::TaggedComponent_out & +IOP::TaggedComponent_out::operator= (TaggedComponent *_tao_struct_out) +{ + this->ptr_ = _tao_struct_out; + return *this; +} + +ACE_INLINE +IOP::TaggedComponent_out::operator ::IOP::TaggedComponent *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent *& +IOP::TaggedComponent_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::TaggedComponent * +IOP::TaggedComponent_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:99 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_ + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (CORBA::ULong size) +{ + IOP::TaggedComponent *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0); + return retval; +} + +ACE_INLINE +void IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (IOP::TaggedComponent *buffer) +{ + delete [] buffer; +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (CORBA::ULong maximum) + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (maximum)) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile ( + CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile ( + const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs + ) + : TAO_Unbounded_Base_Sequence (rhs) +{ + if (rhs.buffer_ != 0) + { + IOP::TaggedComponent *tmp1 = + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (this->maximum_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile & +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator= ( + const _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile &rhs + ) +{ + if (this == &rhs) + { + return *this; + } + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // Free the old buffer. + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); + + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (rhs.maximum_); + } + } + else + { + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (rhs.maximum_); + } + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedComponent *tmp1 = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + return *this; +} + +// = Accessors. +ACE_INLINE +IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator[] (CORBA::ULong i) +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent* tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + return tmp[i]; +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::operator[] (CORBA::ULong i) const +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent * const tmp = + ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_); + return tmp[i]; +} + +// Implement the TAO_Base_Sequence methods (see Sequence.h) + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::get_buffer (CORBA::Boolean orphan) +{ + IOP::TaggedComponent *result = 0; + + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish ownership. + result = + ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + + return result; +} + +ACE_INLINE +const IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::get_buffer (void) const +{ + return ACE_reinterpret_cast (const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_); +} + +ACE_INLINE +void +IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::replace ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) +{ + this->maximum_ = max; + this->length_ = length; + + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::freebuf (tmp); + } + + this->buffer_ = data; + this->release_ = release; +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CI_) +#define _IOP_MULTIPLECOMPONENTPROFILE_CI_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 + +// ************************************************************* +// Inline operations for class IOP::MultipleComponentProfile_var +// ************************************************************* + +ACE_INLINE +IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (MultipleComponentProfile *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (const ::IOP::MultipleComponentProfile_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::MultipleComponentProfile (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::MultipleComponentProfile_var::~MultipleComponentProfile_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::MultipleComponentProfile_var & +IOP::MultipleComponentProfile_var::operator= (MultipleComponentProfile *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE +::IOP::MultipleComponentProfile_var & +IOP::MultipleComponentProfile_var::operator= (const ::IOP::MultipleComponentProfile_var &p) +{ + if (this != &p) + { + if (p.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + MultipleComponentProfile *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + MultipleComponentProfile (*p.ptr_), + *this + ); + + if (deep_copy != 0) + { + MultipleComponentProfile *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE +const ::IOP::MultipleComponentProfile * +IOP::MultipleComponentProfile_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile * +IOP::MultipleComponentProfile_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::MultipleComponentProfile_var::operator const ::IOP::MultipleComponentProfile &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::MultipleComponentProfile_var::operator ::IOP::MultipleComponentProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::MultipleComponentProfile_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::MultipleComponentProfile_var::operator[] (CORBA::ULong index) const +{ + return ACE_const_cast (const IOP::TaggedComponent &, this->ptr_->operator[] (index)); +} + +ACE_INLINE +const ::IOP::MultipleComponentProfile & +IOP::MultipleComponentProfile_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile & +IOP::MultipleComponentProfile_var::inout (void) +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile *& +IOP::MultipleComponentProfile_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile * +IOP::MultipleComponentProfile_var::_retn (void) +{ + ::IOP::MultipleComponentProfile *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE +::IOP::MultipleComponentProfile * +IOP::MultipleComponentProfile_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 + +// ************************************************************* +// Inline operations for class IOP::MultipleComponentProfile_out +// ************************************************************* + +ACE_INLINE +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (MultipleComponentProfile *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (MultipleComponentProfile_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (const ::IOP::MultipleComponentProfile_out &p) + : ptr_ (ACE_const_cast (MultipleComponentProfile_out&, p).ptr_) +{} + +ACE_INLINE +::IOP::MultipleComponentProfile_out & +IOP::MultipleComponentProfile_out::operator= (const ::IOP::MultipleComponentProfile_out &p) +{ + this->ptr_ = ACE_const_cast (MultipleComponentProfile_out&, p).ptr_; + return *this; +} + +ACE_INLINE +::IOP::MultipleComponentProfile_out & +IOP::MultipleComponentProfile_out::operator= (MultipleComponentProfile *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::MultipleComponentProfile_out::operator ::IOP::MultipleComponentProfile *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile *& +IOP::MultipleComponentProfile_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::MultipleComponentProfile * +IOP::MultipleComponentProfile_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::MultipleComponentProfile_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:99 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_ + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (CORBA::ULong size) +{ + IOP::TaggedComponent *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0); + return retval; +} + +ACE_INLINE +void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (IOP::TaggedComponent *buffer) +{ + delete [] buffer; +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum) + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (maximum)) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList ( + CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs + ) + : TAO_Unbounded_Base_Sequence (rhs) +{ + if (rhs.buffer_ != 0) + { + IOP::TaggedComponent *tmp1 = + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (this->maximum_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator= ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentList &rhs + ) +{ + if (this == &rhs) + { + return *this; + } + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // Free the old buffer. + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); + + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (rhs.maximum_); + } + } + else + { + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (rhs.maximum_); + } + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedComponent *tmp1 = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + return *this; +} + +// = Accessors. +ACE_INLINE +IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] (CORBA::ULong i) +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent* tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + return tmp[i]; +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::operator[] (CORBA::ULong i) const +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent * const tmp = + ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_); + return tmp[i]; +} + +// Implement the TAO_Base_Sequence methods (see Sequence.h) + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer (CORBA::Boolean orphan) +{ + IOP::TaggedComponent *result = 0; + + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish ownership. + result = + ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + + return result; +} + +ACE_INLINE +const IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::get_buffer (void) const +{ + return ACE_reinterpret_cast (const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_); +} + +ACE_INLINE +void +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::replace ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) +{ + this->maximum_ = max; + this->length_ = length; + + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentList::freebuf (tmp); + } + + this->buffer_ = data; + this->release_ = release; +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTLIST_CI_) +#define _IOP_TAGGEDCOMPONENTLIST_CI_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentList_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (TaggedComponentList *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedComponentList_var::TaggedComponentList_var (const ::IOP::TaggedComponentList_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::TaggedComponentList (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::TaggedComponentList_var::~TaggedComponentList_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var & +IOP::TaggedComponentList_var::operator= (TaggedComponentList *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE +::IOP::TaggedComponentList_var & +IOP::TaggedComponentList_var::operator= (const ::IOP::TaggedComponentList_var &p) +{ + if (this != &p) + { + if (p.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + TaggedComponentList *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + TaggedComponentList (*p.ptr_), + *this + ); + + if (deep_copy != 0) + { + TaggedComponentList *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE +const ::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator const ::IOP::TaggedComponentList &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::TaggedComponentList_var::operator ::IOP::TaggedComponentList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::TaggedComponentList_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::TaggedComponentList_var::operator[] (CORBA::ULong index) const +{ + return ACE_const_cast (const IOP::TaggedComponent &, this->ptr_->operator[] (index)); +} + +ACE_INLINE +const ::IOP::TaggedComponentList & +IOP::TaggedComponentList_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList & +IOP::TaggedComponentList_var::inout (void) +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList *& +IOP::TaggedComponentList_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::_retn (void) +{ + ::IOP::TaggedComponentList *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE +::IOP::TaggedComponentList * +IOP::TaggedComponentList_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentList_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (TaggedComponentList *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (TaggedComponentList_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentList_out::TaggedComponentList_out (const ::IOP::TaggedComponentList_out &p) + : ptr_ (ACE_const_cast (TaggedComponentList_out&, p).ptr_) +{} + +ACE_INLINE +::IOP::TaggedComponentList_out & +IOP::TaggedComponentList_out::operator= (const ::IOP::TaggedComponentList_out &p) +{ + this->ptr_ = ACE_const_cast (TaggedComponentList_out&, p).ptr_; + return *this; +} + +ACE_INLINE +::IOP::TaggedComponentList_out & +IOP::TaggedComponentList_out::operator= (TaggedComponentList *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::TaggedComponentList_out::operator ::IOP::TaggedComponentList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList *& +IOP::TaggedComponentList_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentList * +IOP::TaggedComponentList_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::TaggedComponentList_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:99 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CI_ + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (CORBA::ULong size) +{ + IOP::TaggedComponent *retval = 0; + ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0); + return retval; +} + +ACE_INLINE +void IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (IOP::TaggedComponent *buffer) +{ + delete [] buffer; +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (CORBA::ULong maximum) + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (maximum)) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq ( + CORBA::ULong maximum, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs + ) + : TAO_Unbounded_Base_Sequence (rhs) +{ + if (rhs.buffer_ != 0) + { + IOP::TaggedComponent *tmp1 = + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (this->maximum_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::operator= ( + const _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq &rhs + ) +{ + if (this == &rhs) + { + return *this; + } + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // Free the old buffer. + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (tmp); + + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (rhs.maximum_); + } + } + else + { + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (rhs.maximum_); + } + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::TaggedComponent *tmp1 = + ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_); + IOP::TaggedComponent * const tmp2 = + ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + return *this; +} + +// = Accessors. +ACE_INLINE +IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::operator[] (CORBA::ULong i) +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent* tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + return tmp[i]; +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::operator[] (CORBA::ULong i) const +{ + ACE_ASSERT (i < this->maximum_); + IOP::TaggedComponent * const tmp = + ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_); + return tmp[i]; +} + +// Implement the TAO_Base_Sequence methods (see Sequence.h) + +ACE_INLINE +IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::get_buffer (CORBA::Boolean orphan) +{ + IOP::TaggedComponent *result = 0; + + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish ownership. + result = + ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + + return result; +} + +ACE_INLINE +const IOP::TaggedComponent * +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::get_buffer (void) const +{ + return ACE_reinterpret_cast (const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_); +} + +ACE_INLINE +void +IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::replace ( + CORBA::ULong max, + CORBA::ULong length, + IOP::TaggedComponent *data, + CORBA::Boolean release + ) +{ + this->maximum_ = max; + this->length_ = length; + + if (this->buffer_ && this->release_ == 1) + { + IOP::TaggedComponent *tmp = + ACE_reinterpret_cast (IOP::TaggedComponent*, this->buffer_); + _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::freebuf (tmp); + } + + this->buffer_ = data; + this->release_ = release; +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_TAGGEDCOMPONENTSEQ_CI_) +#define _IOP_TAGGEDCOMPONENTSEQ_CI_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentSeq_var +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentSeq_var::TaggedComponentSeq_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::TaggedComponentSeq_var::TaggedComponentSeq_var (TaggedComponentSeq *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::TaggedComponentSeq_var::TaggedComponentSeq_var (const ::IOP::TaggedComponentSeq_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::TaggedComponentSeq (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::TaggedComponentSeq_var::~TaggedComponentSeq_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentSeq_var & +IOP::TaggedComponentSeq_var::operator= (TaggedComponentSeq *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE +::IOP::TaggedComponentSeq_var & +IOP::TaggedComponentSeq_var::operator= (const ::IOP::TaggedComponentSeq_var &p) +{ + if (this != &p) + { + if (p.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + TaggedComponentSeq *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + TaggedComponentSeq (*p.ptr_), + *this + ); + + if (deep_copy != 0) + { + TaggedComponentSeq *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE +const ::IOP::TaggedComponentSeq * +IOP::TaggedComponentSeq_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq * +IOP::TaggedComponentSeq_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentSeq_var::operator const ::IOP::TaggedComponentSeq &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentSeq_var::operator ::IOP::TaggedComponentSeq &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponentSeq_var::operator ::IOP::TaggedComponentSeq &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::TaggedComponentSeq_var::operator ::IOP::TaggedComponentSeq *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::TaggedComponentSeq_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE +const IOP::TaggedComponent & +IOP::TaggedComponentSeq_var::operator[] (CORBA::ULong index) const +{ + return ACE_const_cast (const IOP::TaggedComponent &, this->ptr_->operator[] (index)); +} + +ACE_INLINE +const ::IOP::TaggedComponentSeq & +IOP::TaggedComponentSeq_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq & +IOP::TaggedComponentSeq_var::inout (void) +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq *& +IOP::TaggedComponentSeq_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq * +IOP::TaggedComponentSeq_var::_retn (void) +{ + ::IOP::TaggedComponentSeq *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE +::IOP::TaggedComponentSeq * +IOP::TaggedComponentSeq_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 + +// ************************************************************* +// Inline operations for class IOP::TaggedComponentSeq_out +// ************************************************************* + +ACE_INLINE +IOP::TaggedComponentSeq_out::TaggedComponentSeq_out (TaggedComponentSeq *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentSeq_out::TaggedComponentSeq_out (TaggedComponentSeq_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::TaggedComponentSeq_out::TaggedComponentSeq_out (const ::IOP::TaggedComponentSeq_out &p) + : ptr_ (ACE_const_cast (TaggedComponentSeq_out&, p).ptr_) +{} + +ACE_INLINE +::IOP::TaggedComponentSeq_out & +IOP::TaggedComponentSeq_out::operator= (const ::IOP::TaggedComponentSeq_out &p) +{ + this->ptr_ = ACE_const_cast (TaggedComponentSeq_out&, p).ptr_; + return *this; +} + +ACE_INLINE +::IOP::TaggedComponentSeq_out & +IOP::TaggedComponentSeq_out::operator= (TaggedComponentSeq *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::TaggedComponentSeq_out::operator ::IOP::TaggedComponentSeq *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq *& +IOP::TaggedComponentSeq_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::TaggedComponentSeq * +IOP::TaggedComponentSeq_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::TaggedComponent & +IOP::TaggedComponentSeq_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194 + +// ************************************************************* +// Inline operations for class IOP::ServiceContext_var +// ************************************************************* + +ACE_INLINE +IOP::ServiceContext_var::ServiceContext_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::ServiceContext_var::ServiceContext_var (ServiceContext *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::ServiceContext_var::ServiceContext_var (const ::IOP::ServiceContext_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::ServiceContext (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::ServiceContext_var::~ServiceContext_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext_var & +IOP::ServiceContext_var::operator= (ServiceContext *_tao_struct_var) +{ + delete this->ptr_; + this->ptr_ = _tao_struct_var; + return *this; +} + +ACE_INLINE +::IOP::ServiceContext_var & +IOP::ServiceContext_var::operator= (const ::IOP::ServiceContext_var &_tao_struct_var) +{ + if (this != &_tao_struct_var) + { + if (_tao_struct_var.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + ServiceContext *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + ServiceContext (*_tao_struct_var.ptr_), + *this + ); + + if (deep_copy != 0) + { + ServiceContext *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE const ::IOP::ServiceContext * +IOP::ServiceContext_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext * +IOP::ServiceContext_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext_var::operator const ::IOP::ServiceContext &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext_var::operator ::IOP::ServiceContext &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext_var::operator ::IOP::ServiceContext &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::ServiceContext_var::operator ::IOP::ServiceContext *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE const ::IOP::ServiceContext & +IOP::ServiceContext_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext & +IOP::ServiceContext_var::inout (void) +{ + return *this->ptr_; +} + +// Mapping for variable size. +ACE_INLINE ::IOP::ServiceContext *& +IOP::ServiceContext_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext * +IOP::ServiceContext_var::_retn (void) +{ + ::IOP::ServiceContext *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE ::IOP::ServiceContext * +IOP::ServiceContext_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:523 + +// ************************************************************* +// Inline operations for class IOP::ServiceContext_out +// ************************************************************* + +ACE_INLINE +IOP::ServiceContext_out::ServiceContext_out (::IOP::ServiceContext *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContext_out::ServiceContext_out (ServiceContext_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContext_out::ServiceContext_out (const ::IOP::ServiceContext_out &p) + : ptr_ (ACE_const_cast (ServiceContext_out&, p).ptr_) +{} + +ACE_INLINE +IOP::ServiceContext_out & +IOP::ServiceContext_out::operator= (const ::IOP::ServiceContext_out &p) +{ + this->ptr_ = ACE_const_cast (ServiceContext_out&, p).ptr_; + return *this; +} + +ACE_INLINE +IOP::ServiceContext_out & +IOP::ServiceContext_out::operator= (ServiceContext *_tao_struct_out) +{ + this->ptr_ = _tao_struct_out; + return *this; +} + +ACE_INLINE +IOP::ServiceContext_out::operator ::IOP::ServiceContext *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext *& +IOP::ServiceContext_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::IOP::ServiceContext * +IOP::ServiceContext_out::operator-> (void) +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/gen_unbounded_sequence_ci.cpp:99 + +#if !defined (TAO_USE_SEQUENCE_TEMPLATES) + +#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_) +#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_ + +ACE_INLINE +IOP::ServiceContext * +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (CORBA::ULong size) +{ + IOP::ServiceContext *retval = 0; + ACE_NEW_RETURN (retval, IOP::ServiceContext[size], 0); + return retval; +} + +ACE_INLINE +void IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (IOP::ServiceContext *buffer) +{ + delete [] buffer; +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (CORBA::ULong maximum) + : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (maximum)) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList ( + CORBA::ULong maximum, + CORBA::ULong length, + IOP::ServiceContext *data, + CORBA::Boolean release + ) + : TAO_Unbounded_Base_Sequence (maximum, length, data, release) +{ +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList ( + const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs + ) + : TAO_Unbounded_Base_Sequence (rhs) +{ + if (rhs.buffer_ != 0) + { + IOP::ServiceContext *tmp1 = + _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (this->maximum_); + IOP::ServiceContext * const tmp2 = + ACE_reinterpret_cast (IOP::ServiceContext * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + this->buffer_ = tmp1; + } + else + { + this->buffer_ = 0; + } +} + +ACE_INLINE +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList & +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator= ( + const _TAO_Unbounded_Sequence_IOP_ServiceContextList &rhs + ) +{ + if (this == &rhs) + { + return *this; + } + + if (this->release_) + { + if (this->maximum_ < rhs.maximum_) + { + // Free the old buffer. + IOP::ServiceContext *tmp = + ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); + + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); + + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (rhs.maximum_); + } + } + else + { + this->buffer_ = + _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (rhs.maximum_); + } + + TAO_Unbounded_Base_Sequence::operator= (rhs); + + IOP::ServiceContext *tmp1 = + ACE_reinterpret_cast (IOP::ServiceContext *, this->buffer_); + IOP::ServiceContext * const tmp2 = + ACE_reinterpret_cast (IOP::ServiceContext * ACE_CAST_CONST, rhs.buffer_); + + for (CORBA::ULong i = 0; i < this->length_; ++i) + { + tmp1[i] = tmp2[i]; + } + + return *this; +} + +// = Accessors. +ACE_INLINE +IOP::ServiceContext & +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator[] (CORBA::ULong i) +{ + ACE_ASSERT (i < this->maximum_); + IOP::ServiceContext* tmp = + ACE_reinterpret_cast (IOP::ServiceContext*, this->buffer_); + return tmp[i]; +} + +ACE_INLINE +const IOP::ServiceContext & +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::operator[] (CORBA::ULong i) const +{ + ACE_ASSERT (i < this->maximum_); + IOP::ServiceContext * const tmp = + ACE_reinterpret_cast (IOP::ServiceContext* ACE_CAST_CONST, this->buffer_); + return tmp[i]; +} + +// Implement the TAO_Base_Sequence methods (see Sequence.h) + +ACE_INLINE +IOP::ServiceContext * +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::get_buffer (CORBA::Boolean orphan) +{ + IOP::ServiceContext *result = 0; + + if (orphan == 0) + { + // We retain ownership. + if (this->buffer_ == 0) + { + result = + _TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (this->length_); + this->buffer_ = result; + this->release_ = 1; + } + else + { + result = + ACE_reinterpret_cast (IOP::ServiceContext*, this->buffer_); + } + } + else // if (orphan == 1) + { + if (this->release_ != 0) + { + // We set the state back to default and relinquish ownership. + result = + ACE_reinterpret_cast(IOP::ServiceContext*,this->buffer_); + this->maximum_ = 0; + this->length_ = 0; + this->buffer_ = 0; + this->release_ = 0; + } + } + + return result; +} + +ACE_INLINE +const IOP::ServiceContext * +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::get_buffer (void) const +{ + return ACE_reinterpret_cast (const IOP::ServiceContext * ACE_CAST_CONST, this->buffer_); +} + +ACE_INLINE +void +IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::replace ( + CORBA::ULong max, + CORBA::ULong length, + IOP::ServiceContext *data, + CORBA::Boolean release + ) +{ + this->maximum_ = max; + this->length_ = length; + + if (this->buffer_ && this->release_ == 1) + { + IOP::ServiceContext *tmp = + ACE_reinterpret_cast (IOP::ServiceContext*, this->buffer_); + _TAO_Unbounded_Sequence_IOP_ServiceContextList::freebuf (tmp); + } + + this->buffer_ = data; + this->release_ = release; +} + +#endif /* end #if !defined */ + +#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ + +#if !defined (_IOP_SERVICECONTEXTLIST_CI_) +#define _IOP_SERVICECONTEXTLIST_CI_ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:226 + +// ************************************************************* +// Inline operations for class IOP::ServiceContextList_var +// ************************************************************* + +ACE_INLINE +IOP::ServiceContextList_var::ServiceContextList_var (void) + : ptr_ (0) +{} + +ACE_INLINE +IOP::ServiceContextList_var::ServiceContextList_var (ServiceContextList *p) + : ptr_ (p) +{} + +ACE_INLINE +IOP::ServiceContextList_var::ServiceContextList_var (const ::IOP::ServiceContextList_var &p) +{ + if (p.ptr_) + { + ACE_NEW (this->ptr_, ::IOP::ServiceContextList (*p.ptr_)); + } + else + { + this->ptr_ = 0; + } +} + +ACE_INLINE +IOP::ServiceContextList_var::~ServiceContextList_var (void) +{ + delete this->ptr_; +} + +ACE_INLINE +IOP::ServiceContextList_var & +IOP::ServiceContextList_var::operator= (ServiceContextList *p) +{ + delete this->ptr_; + this->ptr_ = p; + return *this; +} + +ACE_INLINE +::IOP::ServiceContextList_var & +IOP::ServiceContextList_var::operator= (const ::IOP::ServiceContextList_var &p) +{ + if (this != &p) + { + if (p.ptr_ == 0) + { + delete this->ptr_; + this->ptr_ = 0; + } + else + { + ServiceContextList *deep_copy = 0; + ACE_NEW_RETURN ( + deep_copy, + ServiceContextList (*p.ptr_), + *this + ); + + if (deep_copy != 0) + { + ServiceContextList *tmp = deep_copy; + deep_copy = this->ptr_; + this->ptr_ = tmp; + delete deep_copy; + } + } + } + + return *this; +} + +ACE_INLINE +const ::IOP::ServiceContextList * +IOP::ServiceContextList_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList * +IOP::ServiceContextList_var::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::ServiceContextList_var::operator const ::IOP::ServiceContextList &() const // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList &() // cast +{ + return *this->ptr_; +} + +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList &() const // cast +{ + return *this->ptr_; +} + +// Variable-size types only. +ACE_INLINE +IOP::ServiceContextList_var::operator ::IOP::ServiceContextList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext & +IOP::ServiceContextList_var::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +ACE_INLINE +const IOP::ServiceContext & +IOP::ServiceContextList_var::operator[] (CORBA::ULong index) const +{ + return ACE_const_cast (const IOP::ServiceContext &, this->ptr_->operator[] (index)); +} + +ACE_INLINE +const ::IOP::ServiceContextList & +IOP::ServiceContextList_var::in (void) const +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList & +IOP::ServiceContextList_var::inout (void) +{ + return *this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList *& +IOP::ServiceContextList_var::out (void) +{ + delete this->ptr_; + this->ptr_ = 0; + return this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList * +IOP::ServiceContextList_var::_retn (void) +{ + ::IOP::ServiceContextList *tmp = this->ptr_; + this->ptr_ = 0; + return tmp; +} + +ACE_INLINE +::IOP::ServiceContextList * +IOP::ServiceContextList_var::ptr (void) const +{ + return this->ptr_; +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_ci.cpp:567 + +// ************************************************************* +// Inline operations for class IOP::ServiceContextList_out +// ************************************************************* + +ACE_INLINE +IOP::ServiceContextList_out::ServiceContextList_out (ServiceContextList *&p) + : ptr_ (p) +{ + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContextList_out::ServiceContextList_out (ServiceContextList_var &p) + : ptr_ (p.out ()) +{ + delete this->ptr_; + this->ptr_ = 0; +} + +ACE_INLINE +IOP::ServiceContextList_out::ServiceContextList_out (const ::IOP::ServiceContextList_out &p) + : ptr_ (ACE_const_cast (ServiceContextList_out&, p).ptr_) +{} + +ACE_INLINE +::IOP::ServiceContextList_out & +IOP::ServiceContextList_out::operator= (const ::IOP::ServiceContextList_out &p) +{ + this->ptr_ = ACE_const_cast (ServiceContextList_out&, p).ptr_; + return *this; +} + +ACE_INLINE +::IOP::ServiceContextList_out & +IOP::ServiceContextList_out::operator= (ServiceContextList *p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +IOP::ServiceContextList_out::operator ::IOP::ServiceContextList *&() // cast +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList *& +IOP::ServiceContextList_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE +::IOP::ServiceContextList * +IOP::ServiceContextList_out::operator-> (void) +{ + return this->ptr_; +} + +ACE_INLINE +IOP::ServiceContext & +IOP::ServiceContextList_out::operator[] (CORBA::ULong index) +{ + return this->ptr_->operator[] (index); +} + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::TaggedProfile::_tao_seq_Octet & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::TaggedProfile::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 + +ACE_INLINE +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedProfile &_tao_aggregate + ) +{ + if ( + (strm << _tao_aggregate.tag) && + (strm << _tao_aggregate.profile_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +ACE_INLINE +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedProfile &_tao_aggregate + ) +{ + if ( + (strm >> _tao_aggregate.tag) && + (strm >> _tao_aggregate.profile_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ +#define _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::IOR::_tao_seq_TaggedProfile & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::IOR::_tao_seq_TaggedProfile & + ); + +#endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 + +ACE_INLINE +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::IOR &_tao_aggregate + ) +{ + if ( + (strm << _tao_aggregate.type_id.in ()) && + (strm << _tao_aggregate.profiles) + ) + { + return 1; + } + else + { + return 0; + } +} + +ACE_INLINE +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::IOR &_tao_aggregate + ) +{ + if ( + (strm >> _tao_aggregate.type_id.out ()) && + (strm >> _tao_aggregate.profiles) + ) + { + return 1; + } + else + { + return 0; + } +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponent::_tao_seq_Octet & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::TaggedComponent::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 + +ACE_INLINE +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::TaggedComponent &_tao_aggregate + ) +{ + if ( + (strm << _tao_aggregate.tag) && + (strm << _tao_aggregate.component_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +ACE_INLINE +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::TaggedComponent &_tao_aggregate + ) +{ + if ( + (strm >> _tao_aggregate.tag) && + (strm >> _tao_aggregate.component_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ +#define _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::MultipleComponentProfile & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::MultipleComponentProfile & + ); + +#endif /* _TAO_CDR_OP_IOP_MultipleComponentProfile_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponentList_I_ +#define _TAO_CDR_OP_IOP_TaggedComponentList_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponentList & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::TaggedComponentList & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponentList_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_TaggedComponentSeq_I_ +#define _TAO_CDR_OP_IOP_TaggedComponentSeq_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::TaggedComponentSeq & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::TaggedComponentSeq & + ); + +#endif /* _TAO_CDR_OP_IOP_TaggedComponentSeq_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ +#define _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::ServiceContext::_tao_seq_Octet & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::ServiceContext::_tao_seq_Octet & + ); + +#endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_I_ */ + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:71 + +ACE_INLINE +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const IOP::ServiceContext &_tao_aggregate + ) +{ + if ( + (strm << _tao_aggregate.context_id) && + (strm << _tao_aggregate.context_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +ACE_INLINE +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + IOP::ServiceContext &_tao_aggregate + ) +{ + if ( + (strm >> _tao_aggregate.context_id) && + (strm >> _tao_aggregate.context_data) + ) + { + return 1; + } + else + { + return 0; + } +} + +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_ci.cpp:84 + +#if !defined _TAO_CDR_OP_IOP_ServiceContextList_I_ +#define _TAO_CDR_OP_IOP_ServiceContextList_I_ + +CORBA::Boolean TAO_Export operator<< ( + TAO_OutputCDR &, + const IOP::ServiceContextList & + ); + +CORBA::Boolean TAO_Export operator>> ( + TAO_InputCDR &, + IOP::ServiceContextList & + ); + +#endif /* _TAO_CDR_OP_IOP_ServiceContextList_I_ */ + |