diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-03-07 15:44:31 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-03-07 15:44:31 +0000 |
commit | 4f38713c61a001552798392e8e7d62b1e9fd3d35 (patch) | |
tree | c2e3e9f8e8c52158b993555d6d63f76ecfe9fc06 | |
parent | 254ddad857deb390df2d91f17fe39cf7369611f3 (diff) | |
download | ATCD-4f38713c61a001552798392e8e7d62b1e9fd3d35.tar.gz |
ChangeLogTag:Mon Mar 03 14:07:10 2003 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r-- | TAO/tao/Buffering_Constraint_Policy.cpp | 4 | ||||
-rw-r--r-- | TAO/tao/ChangeLog | 54 | ||||
-rw-r--r-- | TAO/tao/IOP.pidl | 112 | ||||
-rw-r--r-- | TAO/tao/IOPC.cpp | 5002 | ||||
-rw-r--r-- | TAO/tao/IOPC.h | 1998 | ||||
-rw-r--r-- | TAO/tao/IOPC.i | 2940 | ||||
-rw-r--r-- | TAO/tao/LocalObject.i | 1 | ||||
-rw-r--r-- | TAO/tao/ORB_Core.cpp | 70 | ||||
-rw-r--r-- | TAO/tao/ORB_Core.h | 15 | ||||
-rw-r--r-- | TAO/tao/Object.cpp | 376 | ||||
-rw-r--r-- | TAO/tao/Object.h | 33 | ||||
-rw-r--r-- | TAO/tao/Object.i | 4 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Collocated_Object.cpp | 7 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ImR_LocatorS.cpp | 583 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ImplRepoS.cpp | 1649 | ||||
-rw-r--r-- | TAO/tao/PortableServer/PolicyS.cpp | 7 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp | 10 | ||||
-rw-r--r-- | TAO/tao/Resource_Factory.cpp | 5 | ||||
-rw-r--r-- | TAO/tao/Resource_Factory.h | 25 | ||||
-rw-r--r-- | TAO/tao/TAO.dsp | 24 | ||||
-rw-r--r-- | TAO/tao/default_resource.cpp | 95 | ||||
-rw-r--r-- | TAO/tao/default_resource.h | 12 |
22 files changed, 1751 insertions, 11275 deletions
diff --git a/TAO/tao/Buffering_Constraint_Policy.cpp b/TAO/tao/Buffering_Constraint_Policy.cpp index 25d3cc8d152..24d0b3812f1 100644 --- a/TAO/tao/Buffering_Constraint_Policy.cpp +++ b/TAO/tao/Buffering_Constraint_Policy.cpp @@ -12,7 +12,9 @@ ACE_RCSID(TAO, Buffering_Constraint_Policy, "$Id$") #endif /* __ACE_INLINE__ */ TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy (const TAO::BufferingConstraint &buffering_constraint) - : buffering_constraint_ (buffering_constraint) + : TAO::BufferingConstraintPolicy (), + TAO_Local_RefCounted_Object (), + buffering_constraint_ (buffering_constraint) { } diff --git a/TAO/tao/ChangeLog b/TAO/tao/ChangeLog index f768ffee42b..97a43c108b7 100644 --- a/TAO/tao/ChangeLog +++ b/TAO/tao/ChangeLog @@ -1,3 +1,57 @@ +Mon Mar 03 14:07:10 2003 Balachandran Natarajan <bala@cs.wustl.edu> + + * tao/IOP_Codec.pidl: + * tao/IOP_IOR.pidl: New files. + + * tao/IOP.pidl: Split the IOP.pidl into two pidl files. + + * tao/IOPC.cpp + * tao/IOPC.h: + * tao/IOPC.i: New generated files. + + * tao/Buffering_Constraint_Policy.cpp: Initialized the base + classes properly. + + * tao/ORB_Core.cpp: + * tao/ORB_Core.h: Incomplete changes to initialize the CORBA + object. + + * tao/Object.cpp: + * tao/Object.h: + * tao/Object.i: Added partial support for delayed creation of + CORBA::Objects. This included adding a new static method + tao_object_initialize (). The extraction operator will extract + out to a IOP::IOR if lazy evaluation is used. Removing + _object_key () since it serves very less purpose in this object + but for just accessing the Stub to get the key. The lazy + evaulation would be happy with this scenario! + + * tao/Resource_Factory.cpp: + * tao/Resource_Factory.h: Added the follwoing virtual methods + - create_corba_object_lock (), which creates a SYNCH_MUTEX or a + NULL_MUTEX as the case may be for CORBA::Object. + - resource_usage_strategy (), a strategy for advising whether + the resources are used actively or lazily within the ORB. This + strategy is not useful through out the ORB right away. There + is atleast one place where this might be used now and it is in + CORBA::Object. The >> of a CORBA::Object from a TAO_InputCDR + will use this strategy. + + * tao/default_resource.cpp: + * tao/default_resource.h: Concrete implementations for the above + pure virtual methods within the default factory. + + * tao/TAO.dsp: Added new files in to the project files. + + * tao/PortableServer/Collocated_Object.cpp: + * tao/PortableServer/ImR_LocatorS.cpp: + * tao/PortableServer/ImplRepoS.cpp: + * tao/PortableServer/PolicyS.cpp: + * tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp: Use the stub + object on the CORBA::Object to access the ObjectKey instead of + calling _object_key (). The method _object_key () is going to + be removed. + Sat Feb 22 22:30:25 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu> * Merged with the main trunk. diff --git a/TAO/tao/IOP.pidl b/TAO/tao/IOP.pidl index 8e111dc8c94..b54f0bd6d5c 100644 --- a/TAO/tao/IOP.pidl +++ b/TAO/tao/IOP.pidl @@ -29,115 +29,7 @@ #ifndef TAO_IOP_PIDL #define TAO_IOP_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 - - 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 "" +#include "IOP_IOR.pidl" +#include "IOP_Codec.pidl" #endif /* TAO_IOP_PIDL */ diff --git a/TAO/tao/IOPC.cpp b/TAO/tao/IOPC.cpp index 4054502091b..97fc94ff486 100644 --- a/TAO/tao/IOPC.cpp +++ b/TAO/tao/IOPC.cpp @@ -19,8 +19,11 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -#include "IOPC.h" +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314 + +#include "IOPC.h" #include "tao/Stub.h" #include "tao/Invocation.h" #include "tao/PortableInterceptor.h" @@ -31,6 +34,7 @@ #include "tao/ClientInterceptorAdapter.h" #endif /* TAO_HAS_INTERCEPTORS == 1 */ + #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig #endif /* __BORLANDC__ */ @@ -39,4999 +43,3 @@ #include "IOPC.i" #endif /* !defined INLINE */ -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_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_INTERNET_IOP, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_MULTIPLE_COMPONENTS, 1U) -TAO_NAMESPACE_END -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 - -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_ - -// ************************************************************* -// IOP::TaggedProfile::_tao_seq_Octet -// ************************************************************* - -IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (void) -{} -IOP::TaggedProfile::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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 - -void IOP::IOR::_tao_any_destructor (void *_tao_void_pointer) -{ - IOR *tmp = ACE_static_cast (IOR*, _tao_void_pointer); - delete tmp; -} - - -#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) // Dtor. -{ - 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_ - -// ************************************************************* -// IOP::IOR::_tao_seq_TaggedProfile -// ************************************************************* - -IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (void) -{} -IOP::IOR::_tao_seq_TaggedProfile::_tao_seq_TaggedProfile (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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 - -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 - -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_ - -// ************************************************************* -// IOP::TaggedComponent::_tao_seq_Octet -// ************************************************************* - -IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (void) -{} -IOP::TaggedComponent::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - - -#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) // Dtor. -{ - this->_deallocate_buffer (); -} - - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CS_) -#define _IOP_MULTIPLECOMPONENTPROFILE_CS_ - -// ************************************************************* -// IOP::MultipleComponentProfile -// ************************************************************* - -IOP::MultipleComponentProfile::MultipleComponentProfile (void) -{} -IOP::MultipleComponentProfile::MultipleComponentProfile (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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 - - -#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) // Dtor. -{ - this->_deallocate_buffer (); -} - - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_IOP_TAGGEDCOMPONENTLIST_CS_) -#define _IOP_TAGGEDCOMPONENTLIST_CS_ - -// ************************************************************* -// IOP::TaggedComponentList -// ************************************************************* - -IOP::TaggedComponentList::TaggedComponentList (void) -{} -IOP::TaggedComponentList::TaggedComponentList (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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 - - -#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) // Dtor. -{ - this->_deallocate_buffer (); -} - - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_IOP_TAGGEDCOMPONENTSEQ_CS_) -#define _IOP_TAGGEDCOMPONENTSEQ_CS_ - -// ************************************************************* -// IOP::TaggedComponentSeq -// ************************************************************* - -IOP::TaggedComponentSeq::TaggedComponentSeq (void) -{} -IOP::TaggedComponentSeq::TaggedComponentSeq (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ORB_TYPE, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_CODE_SETS, 1U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_POLICIES, 2U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ALTERNATE_IIOP_ADDRESS, 3U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_COMPLETE_OBJECT_KEY, 5U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_ENDPOINT_ID_POSITION, 6U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_LOCATION_POLICY, 12U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_STRING_BINDING, 100U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_BINDING_NAME, 101U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_DCE_NO_PIPES, 102U) -TAO_NAMESPACE_END -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 - -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 - -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_ - -// ************************************************************* -// IOP::ServiceContext::_tao_seq_Octet -// ************************************************************* - -IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (void) -{} -IOP::ServiceContext::_tao_seq_Octet::_tao_seq_Octet (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - - -#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) // Dtor. -{ - this->_deallocate_buffer (); -} - - -#endif /* end #if !defined */ - - -#endif /* !TAO_USE_SEQUENCE_TEMPLATES */ - -#if !defined (_IOP_SERVICECONTEXTLIST_CS_) -#define _IOP_SERVICECONTEXTLIST_CS_ - -// ************************************************************* -// IOP::ServiceContextList -// ************************************************************* - -IOP::ServiceContextList::ServiceContextList (void) -{} -IOP::ServiceContextList::ServiceContextList (CORBA::ULong max) // uses max size - : -#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) // copy ctor - : -#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 */ - -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_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TransactionService, 0U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, CodeSets, 1U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, ChainBypassCheck, 2U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, ChainBypassInfo, 3U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, LogicalThreadId, 4U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, BI_DIR_IIOP, 5U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, SendingContextRunTime, 6U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, INVOCATION_POLICIES, 7U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, UnknownExceptionInfo, 9U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, RTCorbaPriority, 10U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, RTCorbaPriorityRange, 11U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_GROUP, 27U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_PRIMARY, 28U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_FT_HEARTBEAT_ENABLED, 29U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, FT_GROUP_VERSION, 12U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, FT_REQUEST, 13U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_UIPMC, 1413566220U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_GROUP, 1413566211U) -TAO_NAMESPACE_END -TAO_NAMESPACE_TYPE (const CORBA::ULong) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::ULong, TAG_GROUP_IIOP, 1413566212U) -TAO_NAMESPACE_END - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:67 - -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; -} - -// ************************************************************* -// IOP::Codec_var -// TAO_IDL - Generated from -// be/be_interface.cpp:654 -// ************************************************************* - -IOP::Codec_var::Codec_var (void) // default constructor - : 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) // copy constructor - : TAO_Base_var (), - ptr_ (Codec::_duplicate (p.ptr ())) -{} - -IOP::Codec_var::~Codec_var (void) // destructor -{ - 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; -} - -// ************************************************************* -// IOP::Codec_out -// TAO_IDL - Generated from -// be/be_interface.cpp:932 -// ************************************************************* - -IOP::Codec_out::Codec_out (Codec_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::IOP::Codec::_nil (); -} - -IOP::Codec_out::Codec_out (Codec_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::IOP::Codec::_nil (); -} - -IOP::Codec_out::Codec_out (const ::IOP::Codec_out &p) // copy constructor - : 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) // ptr -{ - return this->ptr_; -} - -::IOP::Codec_ptr -IOP::Codec_out::operator-> (void) -{ - return this->ptr_; -} - - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:198 - -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) - this->_add_ref (); - return retv; -} - -const char* IOP::Codec::_interface_repository_id (void) const -{ - return "IDL:omg.org/IOP/Codec:1.0"; -} - -// Default constructor. -IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", - "InvalidTypeForEncoding") -{ -} - -// Destructor - all members are of self managing types. -IOP::Codec::InvalidTypeForEncoding::~InvalidTypeForEncoding (void) -{ -} - -// Copy constructor. -IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) -{ -} - -// Assignment operator. -IOP::Codec::InvalidTypeForEncoding& -IOP::Codec::InvalidTypeForEncoding::operator= (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp) -{ - 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 *exc) -{ - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0", exc->_rep_id ())) - { - return ACE_dynamic_cast (InvalidTypeForEncoding *, exc); - } - 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 () -{ - 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 ()); -} - -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 extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::InvalidTypeForEncoding::_type (void) const -{ - return ::IOP::Codec::_tc_InvalidTypeForEncoding; -} - -// Default constructor. -IOP::Codec::FormatMismatch::FormatMismatch (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", - "FormatMismatch") -{ -} - -// Destructor - all members are of self managing types. -IOP::Codec::FormatMismatch::~FormatMismatch (void) -{ -} - -// Copy constructor. -IOP::Codec::FormatMismatch::FormatMismatch (const ::IOP::Codec::FormatMismatch &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) -{ -} - -// Assignment operator. -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 *exc) -{ - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/FormatMismatch:1.0", exc->_rep_id ())) - { - return ACE_dynamic_cast (FormatMismatch *, exc); - } - 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 () -{ - 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 ()); -} - -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 extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::FormatMismatch::_type (void) const -{ - return ::IOP::Codec::_tc_FormatMismatch; -} - -// Default constructor. -IOP::Codec::TypeMismatch::TypeMismatch (void) - : CORBA::UserException ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", - "TypeMismatch") -{ -} - -// Destructor - all members are of self managing types. -IOP::Codec::TypeMismatch::~TypeMismatch (void) -{ -} - -// Copy constructor. -IOP::Codec::TypeMismatch::TypeMismatch (const ::IOP::Codec::TypeMismatch &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) -{ -} - -// Assignment operator. -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 *exc) -{ - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/Codec/TypeMismatch:1.0", exc->_rep_id ())) - { - return ACE_dynamic_cast (TypeMismatch *, exc); - } - 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 () -{ - 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 ()); -} - -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 extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::Codec::TypeMismatch::_type (void) const -{ - return ::IOP::Codec::_tc_TypeMismatch; -} - -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 - -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_NAMESPACE_TYPE (const CORBA::Short) -TAO_NAMESPACE_BEGIN (IOP) -TAO_NAMESPACE_DEFINE (const CORBA::Short, ENCODING_CDR_ENCAPS, 0) -TAO_NAMESPACE_END -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 - -void IOP::Encoding::_tao_any_destructor (void *_tao_void_pointer) -{ - Encoding *tmp = ACE_static_cast (Encoding*, _tao_void_pointer); - delete tmp; -} - - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:67 - -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; -} - -// ************************************************************* -// IOP::CodecFactory_var -// TAO_IDL - Generated from -// be/be_interface.cpp:654 -// ************************************************************* - -IOP::CodecFactory_var::CodecFactory_var (void) // default constructor - : 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) // copy constructor - : TAO_Base_var (), - ptr_ (CodecFactory::_duplicate (p.ptr ())) -{} - -IOP::CodecFactory_var::~CodecFactory_var (void) // destructor -{ - 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; -} - -// ************************************************************* -// IOP::CodecFactory_out -// TAO_IDL - Generated from -// be/be_interface.cpp:932 -// ************************************************************* - -IOP::CodecFactory_out::CodecFactory_out (CodecFactory_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::IOP::CodecFactory::_nil (); -} - -IOP::CodecFactory_out::CodecFactory_out (CodecFactory_var &p) // constructor from _var - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::IOP::CodecFactory::_nil (); -} - -IOP::CodecFactory_out::CodecFactory_out (const ::IOP::CodecFactory_out &p) // copy constructor - : 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) // ptr -{ - return this->ptr_; -} - -::IOP::CodecFactory_ptr -IOP::CodecFactory_out::operator-> (void) -{ - return this->ptr_; -} - - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:198 - -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) - this->_add_ref (); - return retv; -} - -const char* IOP::CodecFactory::_interface_repository_id (void) const -{ - return "IDL:omg.org/IOP/CodecFactory:1.0"; -} - -// Default constructor. -IOP::CodecFactory::UnknownEncoding::UnknownEncoding (void) - : CORBA::UserException ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", - "UnknownEncoding") -{ -} - -// Destructor - all members are of self managing types. -IOP::CodecFactory::UnknownEncoding::~UnknownEncoding (void) -{ -} - -// Copy constructor. -IOP::CodecFactory::UnknownEncoding::UnknownEncoding (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp) - : CORBA::UserException (_tao_excp._rep_id (), - _tao_excp._name ()) -{ -} - -// Assignment operator. -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 *exc) -{ - if (!ACE_OS::strcmp ("IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0", exc->_rep_id ())) - { - return ACE_dynamic_cast (UnknownEncoding *, exc); - } - 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 () -{ - 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 ()); -} - -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 extension - the virtual _type method. -CORBA::TypeCode_ptr IOP::CodecFactory::UnknownEncoding::_type (void) const -{ - return ::IOP::CodecFactory::_tc_UnknownEncoding; -} - -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 -// be/be_visitor_structure/any_op_cs.cpp:58 - -// 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 result = - type->equivalent ( - IOP::_tc_TaggedProfile - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::TaggedProfile*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedProfile *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedProfile, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedProfile, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedProfile::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 - -// 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 result = - type->equivalent ( - IOP::_tc_IOR - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::IOR*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::IOR *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::IOR, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_IOR, - 1, - ACE_static_cast (void *, tmp), - IOP::IOR::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 - -// 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 result = - type->equivalent ( - IOP::_tc_TaggedComponent - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::TaggedComponent*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponent *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponent, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponent, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponent::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 - -// 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 result = - type->equivalent ( - IOP::_tc_MultipleComponentProfile - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::MultipleComponentProfile*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::MultipleComponentProfile *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::MultipleComponentProfile, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_MultipleComponentProfile, - 1, - ACE_static_cast (void *, tmp), - IOP::MultipleComponentProfile::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 - -// 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 result = - type->equivalent ( - IOP::_tc_TaggedComponentList - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::TaggedComponentList*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponentList *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponentList, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponentList, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponentList::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 - -// 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 result = - type->equivalent ( - IOP::_tc_TaggedComponentSeq - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::TaggedComponentSeq*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::TaggedComponentSeq *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::TaggedComponentSeq, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_TaggedComponentSeq, - 1, - ACE_static_cast (void *, tmp), - IOP::TaggedComponentSeq::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 - -// 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 result = - type->equivalent ( - IOP::_tc_ServiceContext - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::ServiceContext*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::ServiceContext *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::ServiceContext, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_ServiceContext, - 1, - ACE_static_cast (void *, tmp), - IOP::ServiceContext::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_sequence/any_op_cs.cpp:61 - -// 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 result = - type->equivalent ( - IOP::_tc_ServiceContextList - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast( - const IOP::ServiceContextList*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::ServiceContextList *tmp = 0; - ACE_NEW_RETURN ( - tmp, - IOP::ServiceContextList, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_ServiceContextList, - 1, - ACE_static_cast (void *, tmp), - IOP::ServiceContextList::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_interface/any_op_cs.cpp:60 - -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); -} - -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 result = - type->equivalent ( - IOP::_tc_Codec - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - _tao_elem = - ACE_reinterpret_cast ( - IOP::Codec_ptr, - ACE_const_cast (void *, _tao_any.value ()) - ); - - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - _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 -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Codec::InvalidTypeForEncoding &_tao_elem - ) -{ - IOP::Codec::InvalidTypeForEncoding *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::InvalidTypeForEncoding (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_InvalidTypeForEncoding, - 1, - _tao_elem_copy, - IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Codec::InvalidTypeForEncoding *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_InvalidTypeForEncoding, - 1, - _tao_elem, - IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::InvalidTypeForEncoding *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::Codec::InvalidTypeForEncoding*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::InvalidTypeForEncoding *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_InvalidTypeForEncoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::InvalidTypeForEncoding *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Codec::FormatMismatch &_tao_elem - ) -{ - IOP::Codec::FormatMismatch *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::FormatMismatch (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_FormatMismatch, - 1, - _tao_elem_copy, - IOP::Codec::FormatMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Codec::FormatMismatch *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_FormatMismatch, - 1, - _tao_elem, - IOP::Codec::FormatMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::FormatMismatch *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::Codec::FormatMismatch*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::FormatMismatch *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_FormatMismatch - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::FormatMismatch *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Codec::TypeMismatch &_tao_elem - ) -{ - IOP::Codec::TypeMismatch *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::Codec::TypeMismatch (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::Codec::_tc_TypeMismatch, - 1, - _tao_elem_copy, - IOP::Codec::TypeMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Codec::TypeMismatch *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::Codec::_tc_TypeMismatch, - 1, - _tao_elem, - IOP::Codec::TypeMismatch::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::Codec::TypeMismatch *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::Codec::TypeMismatch*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::Codec::TypeMismatch *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::Codec::_tc_TypeMismatch - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::Codec::TypeMismatch *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_structure/any_op_cs.cpp:58 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::Encoding &_tao_elem - ) -{ - TAO_OutputCDR stream; - - if (stream << _tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_Encoding, - TAO_ENCAP_BYTE_ORDER, - stream.begin () - ); - } -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::Encoding *_tao_elem - ) -{ - TAO_OutputCDR stream; - - if (stream << *_tao_elem) - { - _tao_any._tao_replace ( - IOP::_tc_Encoding, - TAO_ENCAP_BYTE_ORDER, - stream.begin (), - 1, - _tao_elem, - IOP::Encoding::_tao_any_destructor - ); - } -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - 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 result = - type->equivalent ( - IOP::_tc_Encoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - if (_tao_any.any_owns_data ()) - { - _tao_elem = ACE_static_cast ( - const IOP::Encoding*, - _tao_any.value () - ); - - return 1; - } - else - { - IOP::Encoding *tmp; - ACE_NEW_RETURN ( - tmp, - IOP::Encoding, - 0 - ); - - TAO_InputCDR stream ( - _tao_any._tao_get_cdr (), - _tao_any._tao_byte_order () - ); - - if (stream >> *tmp) - { - ((CORBA::Any *)&_tao_any)->_tao_replace ( - IOP::_tc_Encoding, - 1, - ACE_static_cast (void *, tmp), - IOP::Encoding::_tao_any_destructor - ); - - _tao_elem = tmp; - return 1; - } - else - { - delete tmp; - } - } - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// TAO_IDL - Generated from -// be/be_visitor_interface/any_op_cs.cpp:60 - -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); -} - -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 result = - type->equivalent ( - IOP::_tc_CodecFactory - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (!result) - { - return 0; // not equivalent - } - - _tao_elem = - ACE_reinterpret_cast ( - IOP::CodecFactory_ptr, - ACE_const_cast (void *, _tao_any.value ()) - ); - - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - _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 */ - - -// TAO_IDL - Generated from -// be/be_visitor_exception/any_op_cs.cpp:60 - -// Copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - const IOP::CodecFactory::UnknownEncoding &_tao_elem - ) -{ - IOP::CodecFactory::UnknownEncoding *_tao_elem_copy = 0; - ACE_NEW ( - _tao_elem_copy, - IOP::CodecFactory::UnknownEncoding (_tao_elem) - ); - - _tao_any._tao_replace ( - IOP::CodecFactory::_tc_UnknownEncoding, - 1, - _tao_elem_copy, - IOP::CodecFactory::UnknownEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Non-copying insertion. -void operator<<= ( - CORBA::Any &_tao_any, - IOP::CodecFactory::UnknownEncoding *_tao_elem - ) -{ - _tao_any._tao_replace ( - IOP::CodecFactory::_tc_UnknownEncoding, - 1, - _tao_elem, - IOP::CodecFactory::UnknownEncoding::_tao_any_destructor - ); - - _tao_any.contains_local (1); -} - -// Extraction to non-const pointer (deprecated). -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any,IOP::CodecFactory::UnknownEncoding *&_tao_elem - ) -{ - return _tao_any >>= ACE_const_cast( - const IOP::CodecFactory::UnknownEncoding*&, - _tao_elem - ); -} - -// Extraction to const pointer. -CORBA::Boolean operator>>= ( - const CORBA::Any &_tao_any, - const IOP::CodecFactory::UnknownEncoding *&_tao_elem - ) -{ - _tao_elem = 0; - ACE_TRY_NEW_ENV - { - CORBA::TypeCode_var type = _tao_any.type (); - - CORBA::Boolean result = - type->equivalent ( - IOP::CodecFactory::_tc_UnknownEncoding - ACE_ENV_ARG_PARAMETER - ); - ACE_TRY_CHECK; - - if (result == 0) - { - return 0; // not equivalent - } - - _tao_elem = (IOP::CodecFactory::UnknownEncoding *)_tao_any.value (); - return 1; - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -#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 - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedProfile::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - -#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - -#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) - { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) - { - 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; // error -} - -#endif /* _TAO_CDR_OP_IOP_TaggedProfile__tao_seq_Octet_CPP_ */ - - -#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 - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm << _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm >> _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -#endif /* _TAO_CDR_OP_IOP_IOR__tao_seq_TaggedProfile_CPP_ */ - - -#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 - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::TaggedComponent::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - -#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - -#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) - { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) - { - 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; // error -} - -#endif /* _TAO_CDR_OP_IOP_TaggedComponent__tao_seq_Octet_CPP_ */ - -CORBA::Boolean operator<< ( - TAO_OutputCDR &strm, - const IOP::MultipleComponentProfile &_tao_sequence - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm << _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm >> _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -CORBA::Boolean operator<< ( - TAO_OutputCDR &strm, - const IOP::TaggedComponentList &_tao_sequence - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm << _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm >> _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -CORBA::Boolean operator<< ( - TAO_OutputCDR &strm, - const IOP::TaggedComponentSeq &_tao_sequence - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm << _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm >> _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - - -#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 - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - { - TAO_Unbounded_Sequence<CORBA::Octet> *oseq = - ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (IOP::ServiceContext::_tao_seq_Octet *)&_tao_sequence); - if (oseq->mb ()) - return strm.write_octet_array_mb (oseq->mb ()); - else - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - -#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - -#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - -#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) - if (ACE_BIT_DISABLED (strm.start ()->flags (), - ACE_Message_Block::DONT_DELETE)) - { - TAO_ORB_Core* orb_core = strm.orb_core (); - if (orb_core != 0 && - strm.orb_core ()->resource_factory ()-> - input_cdr_allocator_type_locked () == 1) - { - 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; // error -} - -#endif /* _TAO_CDR_OP_IOP_ServiceContext__tao_seq_Octet_CPP_ */ - -CORBA::Boolean operator<< ( - TAO_OutputCDR &strm, - const IOP::ServiceContextList &_tao_sequence - ) -{ - if (strm << _tao_sequence.length ()) - { - // encode all elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm << _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} - -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 1159.) - if (_tao_seq_len > strm.length()) - return 0; - // set the length of the sequence - _tao_sequence.length (_tao_seq_len); - // If length is 0 we return true. - if (0 >= _tao_seq_len) - return 1; - // retrieve all the elements - CORBA::Boolean _tao_marshal_flag = 1; - for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++) - { - _tao_marshal_flag = (strm >> _tao_sequence[i]); - } - return _tao_marshal_flag; - } - return 0; // error -} diff --git a/TAO/tao/IOPC.h b/TAO/tao/IOPC.h index 883fda141e8..45442ff4974 100644 --- a/TAO/tao/IOPC.h +++ b/TAO/tao/IOPC.h @@ -19,20 +19,25 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -#ifndef _TAO_IDL_IOPC_H_ -#define _TAO_IDL_IOPC_H_ +// TAO_IDL - Generated from +// C:\work\ACE+TAO\Branch\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:151 + +#ifndef _TAO_IDL_ORIG_IOPC_H_ +#define _TAO_IDL_ORIG_IOPC_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 "Exception.h" -#include "Object.h" -#include "Any.h" + +#include "TAO_export.h" + +#include "IOP_IORC.h" +#include "IOP_CodecC.h" #if defined (TAO_EXPORT_MACRO) #undef TAO_EXPORT_MACRO @@ -57,1987 +62,18 @@ #pragma option push -w-rvl -w-rch -w-ccc -w-inl #endif /* __BORLANDC__ */ -TAO_NAMESPACE IOP -{ - typedef CORBA::ULong ProfileId; - typedef CORBA::ULong_out ProfileId_out; - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ProfileId; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_INTERNET_IOP; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_MULTIPLE_COMPONENTS; - - struct TaggedProfile; - class TaggedProfile_var; - - struct TAO_Export TaggedProfile - { - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef TaggedProfile_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - static void _tao_any_destructor (void*); - - ACE_NESTED_CLASS (IOP, ProfileId) tag; - -#if !defined (_IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CH_) -#define _IOP_TAGGEDPROFILE__TAO_SEQ_OCTET_CH_ - - class _tao_seq_Octet; - - // ************************************************************* - // _tao_seq_Octet - // ************************************************************* - - class TAO_Export _tao_seq_Octet : public -#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); // default ctor - _tao_seq_Octet (CORBA::ULong max); // uses max size - _tao_seq_Octet ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::Octet *buffer, - CORBA::Boolean release = 0 - ); - _tao_seq_Octet (const _tao_seq_Octet &); // copy ctor - ~_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 */ - - -#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef _tao_seq_Octet _profile_data_seq; -#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */ - - _tao_seq_Octet profile_data; - - }; - - 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_; - }; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedProfile; - - struct IOR; - class IOR_var; - - struct TAO_Export IOR - { - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef IOR_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - static void _tao_any_destructor (void*); - - TAO_String_Manager type_id; - -#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_MACRO _TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile - : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - _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_ - - class _tao_seq_TaggedProfile; - - // ************************************************************* - // _tao_seq_TaggedProfile - // ************************************************************* - - class TAO_Export _tao_seq_TaggedProfile : public -#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); // default ctor - _tao_seq_TaggedProfile (CORBA::ULong max); // uses max size - _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 &); // copy ctor - ~_tao_seq_TaggedProfile (void); - static void _tao_any_destructor (void*); - - }; - -#endif /* end #if !defined */ - - -#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef _tao_seq_TaggedProfile _profiles_seq; -#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */ - - _tao_seq_TaggedProfile profiles; - - }; - - 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_; - }; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_IOR; - - typedef CORBA::ULong ComponentId; - typedef CORBA::ULong_out ComponentId_out; - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ComponentId; - - struct TaggedComponent; - class TaggedComponent_var; - - struct TAO_Export TaggedComponent - { - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef TaggedComponent_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - static void _tao_any_destructor (void*); - - ACE_NESTED_CLASS (IOP, ComponentId) tag; - -#if !defined (_IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CH_) -#define _IOP_TAGGEDCOMPONENT__TAO_SEQ_OCTET_CH_ - - class _tao_seq_Octet; - - // ************************************************************* - // _tao_seq_Octet - // ************************************************************* - - class TAO_Export _tao_seq_Octet : public -#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); // default ctor - _tao_seq_Octet (CORBA::ULong max); // uses max size - _tao_seq_Octet ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::Octet *buffer, - CORBA::Boolean release = 0 - ); - _tao_seq_Octet (const _tao_seq_Octet &); // copy ctor - ~_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 */ - - -#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef _tao_seq_Octet _component_data_seq; -#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */ - - _tao_seq_Octet component_data; - - }; - - 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_; - }; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponent; - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CH_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CH_ - - class TAO_EXPORT_MACRO _TAO_Unbounded_Sequence_IOP_MultipleComponentProfile - : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - _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_ - - class MultipleComponentProfile; - class MultipleComponentProfile_var; - - // ************************************************************* - // MultipleComponentProfile - // ************************************************************* - - class TAO_Export MultipleComponentProfile : public -#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); // default ctor - MultipleComponentProfile (CORBA::ULong max); // uses max size - MultipleComponentProfile ( - CORBA::ULong max, - CORBA::ULong length, - TaggedComponent *buffer, - CORBA::Boolean release = 0 - ); - MultipleComponentProfile (const MultipleComponentProfile &); // copy ctor - ~MultipleComponentProfile (void); - static void _tao_any_destructor (void*); - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef MultipleComponentProfile_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - - }; - -#endif /* end #if !defined */ - - -#if !defined (_IOP_MULTIPLECOMPONENTPROFILE___VAR_CH_) -#define _IOP_MULTIPLECOMPONENTPROFILE___VAR_CH_ - - // ************************************************************* - // 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; - operator MultipleComponentProfile *&(); // variable-size base types only - - 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_ - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_MultipleComponentProfile; - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CH_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CH_ - - class TAO_EXPORT_MACRO _TAO_Unbounded_Sequence_IOP_TaggedComponentList - : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - _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_ - - class TaggedComponentList; - class TaggedComponentList_var; - - // ************************************************************* - // TaggedComponentList - // ************************************************************* - - class TAO_Export TaggedComponentList : public -#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); // default ctor - TaggedComponentList (CORBA::ULong max); // uses max size - TaggedComponentList ( - CORBA::ULong max, - CORBA::ULong length, - TaggedComponent *buffer, - CORBA::Boolean release = 0 - ); - TaggedComponentList (const TaggedComponentList &); // copy ctor - ~TaggedComponentList (void); - static void _tao_any_destructor (void*); - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef TaggedComponentList_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - - }; - -#endif /* end #if !defined */ - - -#if !defined (_IOP_TAGGEDCOMPONENTLIST___VAR_CH_) -#define _IOP_TAGGEDCOMPONENTLIST___VAR_CH_ - - // ************************************************************* - // 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; - operator TaggedComponentList *&(); // variable-size base types only - - 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_ - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponentList; - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CH_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CH_ - - class TAO_EXPORT_MACRO _TAO_Unbounded_Sequence_IOP_TaggedComponentSeq - : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - _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_ - - class TaggedComponentSeq; - class TaggedComponentSeq_var; - - // ************************************************************* - // TaggedComponentSeq - // ************************************************************* - - class TAO_Export TaggedComponentSeq : public -#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); // default ctor - TaggedComponentSeq (CORBA::ULong max); // uses max size - TaggedComponentSeq ( - CORBA::ULong max, - CORBA::ULong length, - TaggedComponent *buffer, - CORBA::Boolean release = 0 - ); - TaggedComponentSeq (const TaggedComponentSeq &); // copy ctor - ~TaggedComponentSeq (void); - static void _tao_any_destructor (void*); - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef TaggedComponentSeq_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - - }; - -#endif /* end #if !defined */ - - -#if !defined (_IOP_TAGGEDCOMPONENTSEQ___VAR_CH_) -#define _IOP_TAGGEDCOMPONENTSEQ___VAR_CH_ - - // ************************************************************* - // 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; - operator TaggedComponentSeq *&(); // variable-size base types only - - 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_ - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TaggedComponentSeq; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_ORB_TYPE; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_CODE_SETS; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_POLICIES; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_ALTERNATE_IIOP_ADDRESS; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_COMPLETE_OBJECT_KEY; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_ENDPOINT_ID_POSITION; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_LOCATION_POLICY; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_DCE_STRING_BINDING; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_DCE_BINDING_NAME; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_DCE_NO_PIPES; - - typedef CORBA::ULong ServiceId; - typedef CORBA::ULong_out ServiceId_out; - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceId; - - struct ServiceContext; - class ServiceContext_var; - - struct TAO_Export ServiceContext - { - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef ServiceContext_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - static void _tao_any_destructor (void*); - - ACE_NESTED_CLASS (IOP, ServiceId) context_id; - -#if !defined (_IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CH_) -#define _IOP_SERVICECONTEXT__TAO_SEQ_OCTET_CH_ - - class _tao_seq_Octet; - - // ************************************************************* - // _tao_seq_Octet - // ************************************************************* - - class TAO_Export _tao_seq_Octet : public -#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); // default ctor - _tao_seq_Octet (CORBA::ULong max); // uses max size - _tao_seq_Octet ( - CORBA::ULong max, - CORBA::ULong length, - CORBA::Octet *buffer, - CORBA::Boolean release = 0 - ); - _tao_seq_Octet (const _tao_seq_Octet &); // copy ctor - ~_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 */ - - -#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef _tao_seq_Octet _context_data_seq; -#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */ - - _tao_seq_Octet context_data; - - }; - - 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_; - }; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceContext; - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CH_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CH_ - - class TAO_EXPORT_MACRO _TAO_Unbounded_Sequence_IOP_ServiceContextList - : public TAO_Unbounded_Base_Sequence - { - public: - // = Initialization and termination methods. - _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_ - - class ServiceContextList; - class ServiceContextList_var; - - // ************************************************************* - // ServiceContextList - // ************************************************************* - - class TAO_Export ServiceContextList : public -#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); // default ctor - ServiceContextList (CORBA::ULong max); // uses max size - ServiceContextList ( - CORBA::ULong max, - CORBA::ULong length, - ServiceContext *buffer, - CORBA::Boolean release = 0 - ); - ServiceContextList (const ServiceContextList &); // copy ctor - ~ServiceContextList (void); - static void _tao_any_destructor (void*); - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef ServiceContextList_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - - }; - -#endif /* end #if !defined */ - - -#if !defined (_IOP_SERVICECONTEXTLIST___VAR_CH_) -#define _IOP_SERVICECONTEXTLIST___VAR_CH_ - - // ************************************************************* - // 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; - operator ServiceContextList *&(); // variable-size base types only - - 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_ - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServiceContextList; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TransactionService; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong CodeSets; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ChainBypassCheck; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ChainBypassInfo; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong LogicalThreadId; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong BI_DIR_IIOP; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong SendingContextRunTime; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong INVOCATION_POLICIES; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong UnknownExceptionInfo; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong RTCorbaPriority; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong RTCorbaPriorityRange; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_FT_GROUP; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_FT_PRIMARY; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_FT_HEARTBEAT_ENABLED; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong FT_GROUP_VERSION; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong FT_REQUEST; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_UIPMC; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_GROUP; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong TAG_GROUP_IIOP; - - -#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_ - - class TAO_Export Codec_var : public 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_NOT_USED - ); - 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_ - - 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 */ - - // ************************************************************* - // IOP::Codec - // TAO_IDL - Generated from - // be/be_visitor_interface/interface_ch.cpp:106 - // ************************************************************* - - -#if !defined (_IOP_CODEC_CH_) -#define _IOP_CODEC_CH_ - - class TAO_Export Codec - : public virtual CORBA::Object - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef Codec_ptr _ptr_type; - typedef Codec_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - 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*); - - -#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 - ); - - - virtual CORBA::TypeCode_ptr _type (void) const; - }; - -static ::CORBA::TypeCode_ptr _tc_InvalidTypeForEncoding; - - -#endif /* end #if !defined */ - - -#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 - ); - - - virtual CORBA::TypeCode_ptr _type (void) const; - }; - -static ::CORBA::TypeCode_ptr _tc_FormatMismatch; - - -#endif /* end #if !defined */ - - -#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 - ); - - - virtual CORBA::TypeCode_ptr _type (void) const; - }; - -static ::CORBA::TypeCode_ptr _tc_TypeMismatch; - - -#endif /* end #if !defined */ - - virtual ::CORBA::OctetSeq * encode ( - const CORBA::Any & data - ACE_ENV_ARG_DECL_WITH_DEFAULTS - ) - ACE_THROW_SPEC (( - CORBA::SystemException - , IOP::Codec::InvalidTypeForEncoding - )) = 0; - - virtual CORBA::Any * decode ( - const CORBA::OctetSeq & data - ACE_ENV_ARG_DECL_WITH_DEFAULTS - ) - ACE_THROW_SPEC (( - CORBA::SystemException - , IOP::Codec::FormatMismatch - )) = 0; - - virtual ::CORBA::OctetSeq * encode_value ( - const CORBA::Any & data - ACE_ENV_ARG_DECL_WITH_DEFAULTS - ) - ACE_THROW_SPEC (( - CORBA::SystemException - , IOP::Codec::InvalidTypeForEncoding - )) = 0; - - 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; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Codec; - - typedef CORBA::Short EncodingFormat; - typedef CORBA::Short_out EncodingFormat_out; - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_EncodingFormat; - - TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short ENCODING_CDR_ENCAPS; - - struct Encoding; - class Encoding_var; - - struct TAO_Export Encoding - { - -#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef Encoding_var _var_type; -#endif /* ! __GNUC__ || g++ >= 2.8 */ - - static void _tao_any_destructor (void*); - - ACE_NESTED_CLASS (IOP, EncodingFormat) format; - CORBA::Octet major_version; - CORBA::Octet minor_version; - - }; - - 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_; - }; - - typedef Encoding &Encoding_out; - - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Encoding; - - -#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_ - - class TAO_Export CodecFactory_var : public 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_NOT_USED - ); - 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_ - - 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 */ - - // ************************************************************* - // IOP::CodecFactory - // TAO_IDL - Generated from - // be/be_visitor_interface/interface_ch.cpp:106 - // ************************************************************* - - -#if !defined (_IOP_CODECFACTORY_CH_) -#define _IOP_CODECFACTORY_CH_ - - class TAO_Export CodecFactory - : public virtual CORBA::Object - { - public: - #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) - typedef CodecFactory_ptr _ptr_type; - typedef CodecFactory_var _var_type; - #endif /* ! __GNUC__ || g++ >= 2.8 */ - - 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*); - - -#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 - ); - - - virtual CORBA::TypeCode_ptr _type (void) const; - }; - -static ::CORBA::TypeCode_ptr _tc_UnknownEncoding; - - -#endif /* end #if !defined */ - - 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; - - 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_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_CodecFactory; - - -} -TAO_NAMESPACE_CLOSE // module IOP - -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_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_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_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_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_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_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_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 *&); -// Any operators for interface IOP::Codec -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_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_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_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_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 *&); -// Any operators for interface IOP::CodecFactory -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_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_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::TaggedProfile &); -TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::TaggedProfile &); - -#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_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::IOR &); -TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::IOR &); - -#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_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::TaggedComponent &); -TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::TaggedComponent &); - -#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_ */ - - -#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_ */ - - -#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_ */ - - -#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_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::ServiceContext &); -TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::ServiceContext &); - -#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_ */ - - -#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_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 "IOPC.i" diff --git a/TAO/tao/IOPC.i b/TAO/tao/IOPC.i index d026f5cdcba..e86a7e25a26 100644 --- a/TAO/tao/IOPC.i +++ b/TAO/tao/IOPC.i @@ -19,2944 +19,4 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -// ************************************************************* -// Inline operations for class IOP::TaggedProfile_var -// ************************************************************* - -ACE_INLINE -IOP::TaggedProfile_var::TaggedProfile_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::TaggedProfile (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedProfile_var::~TaggedProfile_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE IOP::TaggedProfile_var & -IOP::TaggedProfile_var::operator= (TaggedProfile *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE ::IOP::TaggedProfile_var & -IOP::TaggedProfile_var::operator= (const ::IOP::TaggedProfile_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - TaggedProfile *deep_copy = - new TaggedProfile (*p.ptr_); - - 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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedProfile_out::TaggedProfile_out (const ::IOP::TaggedProfile_out &p) // copy constructor - : 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 *p) -{ - this->ptr_ = p; - 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_; -} - -// ************************************************************* -// Inline operations for class IOP::IOR_var -// ************************************************************* - -ACE_INLINE -IOP::IOR_var::IOR_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::IOR (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::IOR_var::~IOR_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE IOP::IOR_var & -IOP::IOR_var::operator= (IOR *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE ::IOP::IOR_var & -IOP::IOR_var::operator= (const ::IOP::IOR_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - IOR *deep_copy = - new IOR (*p.ptr_); - - 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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::IOR_out::IOR_out (const ::IOP::IOR_out &p) // copy constructor - : 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 *p) -{ - this->ptr_ = p; - 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_; -} - - -#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_ - -// = Static operations. -ACE_INLINE IOP::TaggedProfile * -IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::allocbuf (CORBA::ULong size) -// Allocate storage for the sequence. -{ - 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) -// Free the sequence. -{ - delete [] buffer; -} - -ACE_INLINE -IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (void) // Default constructor. -{ -} - -ACE_INLINE -IOP::IOR::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile::_TAO_Unbounded_Sequence_IOP_IOR__tao_seq_TaggedProfile (CORBA::ULong maximum) // Constructor using a maximum length value. - : 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) -// Copy constructor. - : 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) -// Assignment operator. -{ - 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) -// operator [] -{ - 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 -// operator [] -{ - 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 */ -// ************************************************************* -// Inline operations for class IOP::TaggedComponent_var -// ************************************************************* - -ACE_INLINE -IOP::TaggedComponent_var::TaggedComponent_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::TaggedComponent (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponent_var::~TaggedComponent_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE IOP::TaggedComponent_var & -IOP::TaggedComponent_var::operator= (TaggedComponent *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE ::IOP::TaggedComponent_var & -IOP::TaggedComponent_var::operator= (const ::IOP::TaggedComponent_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - TaggedComponent *deep_copy = - new TaggedComponent (*p.ptr_); - - 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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponent_out::TaggedComponent_out (const ::IOP::TaggedComponent_out &p) // copy constructor - : 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 *p) -{ - this->ptr_ = p; - 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_; -} - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_MULTIPLECOMPONENTPROFILE_CI_ - -// = Static operations. -ACE_INLINE IOP::TaggedComponent * -IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::allocbuf (CORBA::ULong size) -// Allocate storage for the sequence. -{ - 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) -// Free the sequence. -{ - delete [] buffer; -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (void) // Default constructor. -{ -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile::_TAO_Unbounded_Sequence_IOP_MultipleComponentProfile (CORBA::ULong maximum) // Constructor using a maximum length value. - : 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) -// Copy constructor. - : 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) -// Assignment operator. -{ - 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) -// operator [] -{ - 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 -// operator [] -{ - 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_ - -// ************************************************************* -// Inline operations for class IOP::MultipleComponentProfile_var -// ************************************************************* - -ACE_INLINE -IOP::MultipleComponentProfile_var::MultipleComponentProfile_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::MultipleComponentProfile (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::MultipleComponentProfile_var::~MultipleComponentProfile_var (void) // destructor -{ - 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 = - new MultipleComponentProfile (*p.ptr_); - - 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_; -} - -// mapping for variable size -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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::MultipleComponentProfile_out::MultipleComponentProfile_out (const ::IOP::MultipleComponentProfile_out &p) // copy constructor - : 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 */ - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTLIST_CI_ - -// = Static operations. -ACE_INLINE IOP::TaggedComponent * -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::allocbuf (CORBA::ULong size) -// Allocate storage for the sequence. -{ - 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) -// Free the sequence. -{ - delete [] buffer; -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (void) // Default constructor. -{ -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentList::_TAO_Unbounded_Sequence_IOP_TaggedComponentList (CORBA::ULong maximum) // Constructor using a maximum length value. - : 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) -// Copy constructor. - : 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) -// Assignment operator. -{ - 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) -// operator [] -{ - 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 -// operator [] -{ - 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_ - -// ************************************************************* -// Inline operations for class IOP::TaggedComponentList_var -// ************************************************************* - -ACE_INLINE -IOP::TaggedComponentList_var::TaggedComponentList_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::TaggedComponentList (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponentList_var::~TaggedComponentList_var (void) // destructor -{ - 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 = - new TaggedComponentList (*p.ptr_); - - 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_; -} - -// mapping for variable size -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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponentList_out::TaggedComponentList_out (const ::IOP::TaggedComponentList_out &p) // copy constructor - : 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 */ - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_TAGGEDCOMPONENTSEQ_CI_ - -// = Static operations. -ACE_INLINE IOP::TaggedComponent * -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::allocbuf (CORBA::ULong size) -// Allocate storage for the sequence. -{ - 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) -// Free the sequence. -{ - delete [] buffer; -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (void) // Default constructor. -{ -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq::_TAO_Unbounded_Sequence_IOP_TaggedComponentSeq (CORBA::ULong maximum) // Constructor using a maximum length value. - : 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) -// Copy constructor. - : 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) -// Assignment operator. -{ - 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) -// operator [] -{ - 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 -// operator [] -{ - 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_ - -// ************************************************************* -// Inline operations for class IOP::TaggedComponentSeq_var -// ************************************************************* - -ACE_INLINE -IOP::TaggedComponentSeq_var::TaggedComponentSeq_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::TaggedComponentSeq (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponentSeq_var::~TaggedComponentSeq_var (void) // destructor -{ - 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 = - new TaggedComponentSeq (*p.ptr_); - - 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_; -} - -// mapping for variable size -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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::TaggedComponentSeq_out::TaggedComponentSeq_out (const ::IOP::TaggedComponentSeq_out &p) // copy constructor - : 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 */ - -// ************************************************************* -// Inline operations for class IOP::ServiceContext_var -// ************************************************************* - -ACE_INLINE -IOP::ServiceContext_var::ServiceContext_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::ServiceContext (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::ServiceContext_var::~ServiceContext_var (void) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE IOP::ServiceContext_var & -IOP::ServiceContext_var::operator= (ServiceContext *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE ::IOP::ServiceContext_var & -IOP::ServiceContext_var::operator= (const ::IOP::ServiceContext_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - ServiceContext *deep_copy = - new ServiceContext (*p.ptr_); - - 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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::ServiceContext_out::ServiceContext_out (const ::IOP::ServiceContext_out &p) // copy constructor - : 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 *p) -{ - this->ptr_ = p; - 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_; -} - - -#if !defined (TAO_USE_SEQUENCE_TEMPLATES) - -#if !defined (__TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_) -#define __TAO_UNBOUNDED_SEQUENCE_IOP_SERVICECONTEXTLIST_CI_ - -// = Static operations. -ACE_INLINE IOP::ServiceContext * -IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::allocbuf (CORBA::ULong size) -// Allocate storage for the sequence. -{ - 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) -// Free the sequence. -{ - delete [] buffer; -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (void) // Default constructor. -{ -} - -ACE_INLINE -IOP::_TAO_Unbounded_Sequence_IOP_ServiceContextList::_TAO_Unbounded_Sequence_IOP_ServiceContextList (CORBA::ULong maximum) // Constructor using a maximum length value. - : 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) -// Copy constructor. - : 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) -// Assignment operator. -{ - 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) -// operator [] -{ - 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 -// operator [] -{ - 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_ - -// ************************************************************* -// Inline operations for class IOP::ServiceContextList_var -// ************************************************************* - -ACE_INLINE -IOP::ServiceContextList_var::ServiceContextList_var (void) // default constructor - : 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) // copy constructor -{ - if (p.ptr_) - ACE_NEW (this->ptr_, ::IOP::ServiceContextList (*p.ptr_)); - else - this->ptr_ = 0; -} - -ACE_INLINE -IOP::ServiceContextList_var::~ServiceContextList_var (void) // destructor -{ - 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 = - new ServiceContextList (*p.ptr_); - - 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_; -} - -// mapping for variable size -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_; -} - -// ************************************************************* -// 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) // constructor from _var - : ptr_ (p.out ()) -{ - delete this->ptr_; - this->ptr_ = 0; -} - -ACE_INLINE -IOP::ServiceContextList_out::ServiceContextList_out (const ::IOP::ServiceContextList_out &p) // copy constructor - : 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 */ - -// ************************************************************* -// Inline operations for exception IOP::Codec::InvalidTypeForEncoding -// ************************************************************* - -// ************************************************************* -// Inline operations for exception IOP::Codec::FormatMismatch -// ************************************************************* - -// ************************************************************* -// Inline operations for exception IOP::Codec::TypeMismatch -// ************************************************************* - - -#if !defined (_IOP_CODEC___CI_) -#define _IOP_CODEC___CI_ - - -#endif /* end #if !defined */ - -// ************************************************************* -// Inline operations for class IOP::Encoding_var -// ************************************************************* - -ACE_INLINE -IOP::Encoding_var::Encoding_var (void) // default constructor - : 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) // copy constructor -{ - 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) // destructor -{ - delete this->ptr_; -} - -ACE_INLINE IOP::Encoding_var & -IOP::Encoding_var::operator= (Encoding *p) -{ - delete this->ptr_; - this->ptr_ = p; - return *this; -} - -ACE_INLINE ::IOP::Encoding_var & -IOP::Encoding_var::operator= (const ::IOP::Encoding_var &p) -{ - if (this != &p) - { - if (p.ptr_ == 0) - { - delete this->ptr_; - this->ptr_ = 0; - } - else - { - Encoding *deep_copy = - new Encoding (*p.ptr_); - - 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_; -} - -// ************************************************************* -// Inline operations for exception IOP::CodecFactory::UnknownEncoding -// ************************************************************* - - -#if !defined (_IOP_CODECFACTORY___CI_) -#define _IOP_CODECFACTORY___CI_ - - -#endif /* end #if !defined */ - - -#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_ */ - -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; - -} - - -#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_ */ - -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; - -} - - -#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_ */ - -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; - -} - - -#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_ */ - - -#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_ */ - - -#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_ */ - - -#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_ */ - -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; - -} - - -#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_ */ - -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/LocalObject.i b/TAO/tao/LocalObject.i index dc1e3061de5..6e0ac9a0b18 100644 --- a/TAO/tao/LocalObject.i +++ b/TAO/tao/LocalObject.i @@ -228,4 +228,3 @@ TAO_Local_RefCounted_Object::TAO_Local_RefCounted_Object (void) refcount_ (1) { } - diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp index 68f3347c5e3..30040267f43 100644 --- a/TAO/tao/ORB_Core.cpp +++ b/TAO/tao/ORB_Core.cpp @@ -1642,6 +1642,49 @@ TAO_ORB_Core::create_object (TAO_Stub *stub) return x; } +CORBA::Long +TAO_ORB_Core::initialize_object (TAO_Stub *stub, + CORBA::Object_ptr obj) +{ + /* + { + // @@ Ossama: maybe we need another lock for the table, to + // reduce contention on the Static_Object_Lock below, if so + // then we need to use that lock in the ORB_init() function. + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX, guard, + *ACE_Static_Object_Lock::instance (), + 0)); + + TAO_ORB_Table *table = TAO_ORB_Table::instance (); + TAO_ORB_Table::Iterator end = table->end (); + for (TAO_ORB_Table::Iterator i = table->begin (); + i != end; + ++i) + { + TAO_ORB_Core *other_core = (*i).int_id_; + CORBA::Long retval = + this->initialize_collocated_object (stub, + other_core, + obj); + if (retval != -1) + return retval; + } + } + + // @@ We should thow CORBA::NO_MEMORY in platforms with exceptions, + // but we are stuck in platforms without exceptions! + CORBA::Object_ptr x; + + // The constructor sets the proxy broker as the + // Remote one. + ACE_NEW_RETURN (x, + CORBA::Object (stub, 0), + 0); + return x; + */ + return 0; +} + CORBA::Object_ptr TAO_ORB_Core::create_collocated_object (TAO_Stub *stub, TAO_ORB_Core *orb_core, @@ -1663,6 +1706,33 @@ TAO_ORB_Core::create_collocated_object (TAO_Stub *stub, mprofile); } + +CORBA::Long +TAO_ORB_Core::initialize_collocated_object (TAO_Stub *stub, + TAO_ORB_Core *orb_core, + CORBA::Object_ptr obj) +{ + // @@ What about forwarding. With this approach we are never forwarded + // when we use collocation! + const TAO_MProfile &mprofile = stub->base_profiles (); + + if (!orb_core->optimize_collocation_objects ()) + return -1; + + if (!orb_core->use_global_collocation () && orb_core != this) + return -1; + + if (!orb_core->is_collocated (mprofile)) + return -1; + + // OK, the target ORB and the mprofile match, use the Adapter + // Registry of each ORB to find the right one. + + return -1; + /*orb_core->adapter_registry ()->create_collocated_object (stub, + mprofile);*/ +} + int TAO_ORB_Core::is_collocated (const TAO_MProfile& mprofile) { diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h index db54a0caf3c..7931c954b4d 100644 --- a/TAO/tao/ORB_Core.h +++ b/TAO/tao/ORB_Core.h @@ -704,6 +704,16 @@ public: /// object. CORBA::Object_ptr create_object (TAO_Stub *the_stub); + /// Initialize a new object, use the adapter registry to initialize a + /// collocated object, if not possible then initialize a regular + /// object. + /// NOTE: Why would this method be required? The answer is if the + /// user decides to use lazy initialization of CORBA object, then + /// this is the route that we have to take to do the + /// initialization. + CORBA::Long initialize_object (TAO_Stub *the_stub, + CORBA::Object_ptr obj); + /// Return ORBid string. const char *orbid (void) const; @@ -1002,6 +1012,11 @@ private: TAO_ORB_Core *other_orb, const TAO_MProfile &mprofile); + /// Try to initialize a new collocated object, using <other_orb> as the + /// target ORB. If not possible return -1. + CORBA::Long initialize_collocated_object (TAO_Stub *the_stub, + TAO_ORB_Core *other_orb, + CORBA::Object_ptr obj); protected: /// Synchronize internal state... diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp index 57865a54491..85199ef73ed 100644 --- a/TAO/tao/Object.cpp +++ b/TAO/tao/Object.cpp @@ -16,7 +16,6 @@ #include "tao/Remote_Object_Proxy_Broker.h" #include "tao/Dynamic_Adapter.h" #include "tao/IFR_Client_Adapter.h" - #include "ace/Dynamic_Service.h" #if !defined (__ACE_INLINE__) @@ -39,62 +38,107 @@ CORBA::Object::~Object (void) CORBA::Object::Object (TAO_Stub * protocol_proxy, CORBA::Boolean collocated, - TAO_Abstract_ServantBase * servant) - : is_collocated_ (collocated), - servant_ (servant), - is_local_ (protocol_proxy == 0 ? 1 : 0), - proxy_broker_ (0), - protocol_proxy_ (protocol_proxy), - refcount_ (1), - refcount_lock_ (0) -{ - if (protocol_proxy != 0) - { - // Only instantiate a lock if the object is unconstrained. - // Locality-constrained objects have no-op reference counting by - // default. Furthermore locality-constrained objects may be - // instantiated in the critical path. Instantiating a lock for - // unconstrained objects alone optimizes instantiation of such - // locality-constrained objects. - ACE_NEW (this->refcount_lock_, TAO_SYNCH_MUTEX); - - // If the object is collocated then set the broker using the - // factory otherwise use the remote proxy broker. - if (this->is_collocated_ && - _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer != 0) - this->proxy_broker_ = _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer (this); - else - this->proxy_broker_ = the_tao_remote_object_proxy_broker (); - } + TAO_Abstract_ServantBase * servant, + TAO_ORB_Core *orb_core) + : is_collocated_ (collocated) + , servant_ (servant) + , is_local_ (0) + , proxy_broker_ (0) + , is_evaluated_ (1) + , ior_ (0) + , orb_core_ (orb_core) + , protocol_proxy_ (protocol_proxy) + , refcount_ (1) + , refcount_lock_ (0) +{ + /// This constructor should not be called when the protocol proxy is + /// null ie. when the object is a LocalObject. Assert that + /// requirement. + ACE_ASSERT (this->protocol_proxy_ != 0); + + this->refcount_lock_ = + this->protocol_proxy_->orb_core ()->resource_factory ()->create_corba_object_lock (); + + // If the object is collocated then set the broker using the + // factory otherwise use the remote proxy broker. + if (this->is_collocated_ && + _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer != 0) + this->proxy_broker_ = _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer (this); + else + this->proxy_broker_ = the_tao_remote_object_proxy_broker (); +} + +CORBA::Object::Object (const IOP::IOR_var &ior, + TAO_ORB_Core *orb_core) + : is_collocated_ (0) + , servant_ (0) + , is_local_ (0) + , proxy_broker_ (0) + , is_evaluated_ (0) + , ior_ (ior) + , orb_core_ (orb_core) + , protocol_proxy_ (0) + , refcount_ (1) + , refcount_lock_ (0) +{ + this->refcount_lock_ = + this->orb_core_->resource_factory ()->create_corba_object_lock (); + + // If the object is collocated then set the broker using the + // factory otherwise use the remote proxy broker. + /*if (this->is_collocated_ && + _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer != 0) + this->proxy_broker_ = _TAO_collocation_Object_Proxy_Broker_Factory_function_pointer (this); + else + this->proxy_broker_ = the_tao_remote_object_proxy_broker ();*/ } +// Too tired to do this check in every method properly! +#define TAO_OBJECT_IOR_EVALUATE \ +if (!this->is_evaluated_) \ + { \ + ACE_GUARD (ACE_Lock , mon, *this->refcount_lock_); \ + CORBA::Object::tao_object_initialize (this); \ + } + +#define TAO_OBJECT_IOR_EVALUATE_RETURN \ +if (!this->is_evaluated_) \ + { \ + ACE_GUARD_RETURN (ACE_Lock , mon, *this->refcount_lock_, 0); \ + CORBA::Object::tao_object_initialize (this); \ + } + void CORBA::Object::_add_ref (void) { - if (this->refcount_lock_ != 0) - { - ACE_GUARD (TAO_SYNCH_MUTEX, mon, *this->refcount_lock_); + ACE_ASSERT (this->refcount_lock_ != 0); - this->refcount_++; - } + ACE_GUARD (ACE_Lock , + mon, + *this->refcount_lock_); + + this->refcount_++; } void CORBA::Object::_remove_ref (void) { - if (this->refcount_lock_ != 0) - { - { - ACE_GUARD (TAO_SYNCH_MUTEX, mon, *this->refcount_lock_); + ACE_ASSERT (this->refcount_lock_ != 0); - this->refcount_--; + { + ACE_GUARD (ACE_Lock, + mon, + *this->refcount_lock_); - if (this->refcount_ != 0) - return; - } + this->refcount_--; - delete this; - } + if (this->refcount_ != 0) + return; + } + + ACE_ASSERT (this->refcount_ == 0); + + delete this; } void @@ -117,6 +161,8 @@ CORBA::Boolean CORBA::Object::_is_a (const char *type_id ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + // NOTE: if istub->type_id is nonzero and we have local knowledge of // it, we can answer this question without a costly remote call. // @@ -177,6 +223,8 @@ CORBA::ULong CORBA::Object::_hash (CORBA::ULong maximum ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (this->protocol_proxy_ != 0) return this->protocol_proxy_->hash (maximum ACE_ENV_ARG_PARAMETER); else @@ -203,6 +251,8 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj return 1; } + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (this->protocol_proxy_ != 0) return this->protocol_proxy_->is_equivalent (other_obj); @@ -214,6 +264,8 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj TAO_ObjectKey * CORBA::Object::_key (ACE_ENV_SINGLE_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (this->_stubobj () && this->_stubobj ()->profile_in_use ()) return this->_stubobj ()->profile_in_use ()->_key (); @@ -230,11 +282,12 @@ CORBA::Object::_key (ACE_ENV_SINGLE_ARG_DECL) 0); } -const TAO_ObjectKey & +/*const TAO_ObjectKey & CORBA::Object::_object_key (void) { + TAO_OBJECT_IOR_EVALUATE_RETURN; return this->_stubobj ()->profile_in_use ()->object_key (); -} +}*/ void * CORBA::Object::_tao_QueryInterface (ptr_arith_t type) @@ -275,6 +328,8 @@ CORBA::Object::is_nil_i (CORBA::Object_ptr obj) return 0; } + + #if (TAO_HAS_MINIMUM_CORBA == 0) void @@ -286,6 +341,8 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx, CORBA::Flags req_flags ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE; + // Since we don't really support Context, anything but a null pointer // is a no-no. // Neither can we create a request object from locality constrained @@ -324,6 +381,8 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx, CORBA::Flags req_flags ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE; + // Since we don't really support Context, anything but a null pointer // is a no-no. // Neither can we create a request object from locality constrained @@ -355,6 +414,7 @@ CORBA::Request_ptr CORBA::Object::_request (const char *operation ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; if (this->protocol_proxy_) { TAO_Dynamic_Adapter *dynamic_adapter = @@ -383,6 +443,8 @@ CORBA::Object::_request (const char *operation CORBA::Boolean CORBA::Object::_non_existent (ACE_ENV_SINGLE_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + CORBA::Boolean _tao_retval = 0; // Get the right Proxy. @@ -403,6 +465,8 @@ CORBA::Object::_non_existent (ACE_ENV_SINGLE_ARG_DECL) CORBA::InterfaceDef_ptr CORBA::Object::_get_interface (ACE_ENV_SINGLE_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + // Get the right Proxy. TAO_Object_Proxy_Impl &the_proxy = this->proxy_broker_->select_proxy (this @@ -423,6 +487,8 @@ CORBA::Object::_get_implementation (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) CORBA::Object_ptr CORBA::Object::_get_component (ACE_ENV_SINGLE_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + // Get the right Proxy. TAO_Object_Proxy_Impl &the_proxy = this->proxy_broker_->select_proxy (this @@ -450,6 +516,8 @@ CORBA::Object::_get_policy ( CORBA::PolicyType type ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (this->protocol_proxy_) return this->protocol_proxy_->get_policy (type ACE_ENV_ARG_PARAMETER); @@ -462,6 +530,8 @@ CORBA::Object::_get_client_policy ( CORBA::PolicyType type ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (this->protocol_proxy_) return this->_stubobj ()->get_client_policy (type ACE_ENV_ARG_PARAMETER); @@ -475,6 +545,8 @@ CORBA::Object::_set_policy_overrides ( CORBA::SetOverrideType set_add ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + if (!this->protocol_proxy_) ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), CORBA::Policy::_nil ()); @@ -507,6 +579,7 @@ CORBA::PolicyList * CORBA::Object::_get_policy_overrides (const CORBA::PolicyTypeSeq & types ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; if (this->protocol_proxy_) return this->protocol_proxy_->get_policy_overrides (types ACE_ENV_ARG_PARAMETER); @@ -519,6 +592,8 @@ CORBA::Object::_validate_connection ( CORBA::PolicyList_out inconsistent_policies ACE_ENV_ARG_DECL) { + TAO_OBJECT_IOR_EVALUATE_RETURN; + inconsistent_policies = 0; #if (TAO_HAS_MINIMUM_CORBA == 1) @@ -543,7 +618,9 @@ CORBA::Object::_validate_connection ( #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ -// **************************************************************** +/***************************************************************** + * Global Functions + ****************************************************************/ CORBA::Boolean operator<< (TAO_OutputCDR& cdr, const CORBA::Object* x) @@ -583,44 +660,35 @@ operator<< (TAO_OutputCDR& cdr, const CORBA::Object* x) return (CORBA::Boolean) cdr.good_bit (); } -CORBA::Boolean -operator>> (TAO_InputCDR& cdr, CORBA::Object*& x) +/*static*/ void +CORBA::Object::tao_object_initialize (CORBA::Object *obj) { - CORBA::String_var type_hint; - - if ((cdr >> type_hint.inout ()) == 0) - return 0; - - CORBA::ULong profile_count; - if ((cdr >> profile_count) == 0) - return 0; + CORBA::ULong profile_count = + obj->ior_->profiles.length (); + // Assumption is that after calling this method, folks should test + // for protocol_procy_ or whatever to make sure that things have + // been initialized! if (profile_count == 0) - { - x = CORBA::Object::_nil (); - return (CORBA::Boolean) cdr.good_bit (); - } + return; // get a profile container to store all profiles in the IOR. TAO_MProfile mp (profile_count); - TAO_ORB_Core *orb_core = cdr.orb_core (); + TAO_ORB_Core *&orb_core = obj->orb_core_; if (orb_core == 0) { orb_core = TAO_ORB_Core_instance (); if (TAO_debug_level > 0) { ACE_DEBUG ((LM_WARNING, - ACE_LIB_TEXT ("TAO (%P|%t) WARNING: extracting object from ") + ACE_LIB_TEXT ("TAO (%P|%t) - Object::tao_object_initialize ") + ACE_LIB_TEXT ("WARNING: extracting object from ") ACE_LIB_TEXT ("default ORB_Core\n"))); } } - // Ownership of type_hint is given to TAO_Stub - // TAO_Stub will make a copy of mp! - TAO_Stub *objdata = 0; - ACE_DECLARE_NEW_CORBA_ENV; ACE_TRY { @@ -628,10 +696,10 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x) orb_core->connector_registry (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - for (CORBA::ULong i = 0; i != profile_count && cdr.good_bit (); ++i) + for (CORBA::ULong i = 0; i != profile_count; ++i) { - TAO_Profile *pfile = - connector_registry->create_profile (cdr); + TAO_Profile *pfile = 0; + //connector_registry->create_profile (obj->ior_->profiles.); if (pfile != 0) mp.give_profile (pfile); } @@ -641,19 +709,19 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x) { // @@ This occurs when profile creation fails when decoding the // profile from the IOR. - ACE_ERROR_RETURN ((LM_ERROR, - ACE_LIB_TEXT ("TAO (%P|%t) ERROR: Could not create all ") - ACE_LIB_TEXT ("profiles while extracting object\n") - ACE_LIB_TEXT ("TAO (%P|%t) ERROR: reference from the ") - ACE_LIB_TEXT ("CDR stream.\n")), - 0); + ACE_ERROR ((LM_ERROR, + ACE_LIB_TEXT ("TAO (%P|%t) ERROR: Could not create all ") + ACE_LIB_TEXT ("profiles while extracting object\n") + ACE_LIB_TEXT ("TAO (%P|%t) ERROR: reference from the ") + ACE_LIB_TEXT ("CDR stream.\n"))); } - objdata = orb_core->create_stub (type_hint.in (), - mp - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + /* objdata = + orb_core->create_stub (type_hint.in (), + mp + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; */ } ACE_CATCHANY { @@ -663,20 +731,162 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x) ACE_LIB_TEXT ("object when demarshaling object ") ACE_LIB_TEXT ("reference.\n")); - return 0; + return; } ACE_ENDTRY; ACE_CHECK_RETURN (0); TAO_Stub_Auto_Ptr safe_objdata (objdata); - x = orb_core->create_object (safe_objdata.get ()); - if (x == 0) - return 0; + int retval = + orb_core->initialize_object (safe_objdata.get (), + obj); + if (retval == -1) + return; + + obj->protocol_proxy_ = objdata; // Transfer ownership to the CORBA::Object (void) safe_objdata.release (); + return; +} + +CORBA::Boolean +operator>> (TAO_InputCDR& cdr, CORBA::Object*& x) +{ + int lazy_strategy = 0; + TAO_ORB_Core *orb_core = cdr.orb_core (); + + if (orb_core == 0) + { + orb_core = TAO_ORB_Core_instance (); + if (TAO_debug_level > 0) + { + ACE_DEBUG ((LM_WARNING, + ACE_LIB_TEXT ("TAO (%P|%t) WARNING: extracting object from ") + ACE_LIB_TEXT ("default ORB_Core\n"))); + } + } + else + { + if (orb_core->resource_factory ()->resource_usage_strategy () == + TAO_Resource_Factory::TAO_LAZY) + lazy_strategy = 1; + cout << "Amba here " << endl; + } + + if (!lazy_strategy) + { + // If the user has set up a eager strategy.. + CORBA::String_var type_hint; + + if ((cdr >> type_hint.inout ()) == 0) + return 0; + + CORBA::ULong profile_count; + if ((cdr >> profile_count) == 0) + return 0; + + if (profile_count == 0) + { + x = CORBA::Object::_nil (); + return (CORBA::Boolean) cdr.good_bit (); + } + + // get a profile container to store all profiles in the IOR. + TAO_MProfile mp (profile_count); + + TAO_ORB_Core *orb_core = cdr.orb_core (); + if (orb_core == 0) + { + orb_core = TAO_ORB_Core_instance (); + if (TAO_debug_level > 0) + { + ACE_DEBUG ((LM_WARNING, + ACE_LIB_TEXT ("TAO (%P|%t) - Object::tao_object_initialize ") + ACE_LIB_TEXT ("WARNING: extracting object from ") + ACE_LIB_TEXT ("default ORB_Core\n"))); + } + } + + // Ownership of type_hint is given to TAO_Stub + // TAO_Stub will make a copy of mp! + + TAO_Stub *objdata = 0; + + ACE_DECLARE_NEW_CORBA_ENV; + ACE_TRY + { + TAO_Connector_Registry *connector_registry = + orb_core->connector_registry (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_TRY_CHECK; + + for (CORBA::ULong i = 0; i != profile_count && cdr.good_bit (); ++i) + { + TAO_Profile *pfile = + connector_registry->create_profile (cdr); + if (pfile != 0) + mp.give_profile (pfile); + } + + // Make sure we got some profiles! + if (mp.profile_count () != profile_count) + { + // @@ This occurs when profile creation fails when decoding the + // profile from the IOR. + ACE_ERROR_RETURN ((LM_ERROR, + ACE_LIB_TEXT ("TAO (%P|%t) ERROR: Could not create all ") + ACE_LIB_TEXT ("profiles while extracting object\n") + ACE_LIB_TEXT ("TAO (%P|%t) ERROR: reference from the ") + ACE_LIB_TEXT ("CDR stream.\n")), + 0); + } + + + objdata = orb_core->create_stub (type_hint.in (), + mp + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } + ACE_CATCHANY + { + if (TAO_debug_level > 0) + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + ACE_LIB_TEXT ("TAO (%P|%t) ERROR creating stub ") + ACE_LIB_TEXT ("object when demarshaling object ") + ACE_LIB_TEXT ("reference.\n")); + + return 0; + } + ACE_ENDTRY; + ACE_CHECK_RETURN (0); + + TAO_Stub_Auto_Ptr safe_objdata (objdata); + + x = orb_core->create_object (safe_objdata.get ()); + if (x == 0) + return 0; + + // Transfer ownership to the CORBA::Object + (void) safe_objdata.release (); + } + else + { + // Lazy strategy! + IOP::IOR ior; + + cdr >> ior; + + // Maken IOR_var that can be use to initialize the CORBA::Object + IOP::IOR_var ior_var (&ior); + + ACE_NEW_RETURN (x, + CORBA::Object (ior_var, + orb_core), + 0); + } + return (CORBA::Boolean) cdr.good_bit (); } diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h index 0c8fa95ede0..cc8976bc93e 100644 --- a/TAO/tao/Object.h +++ b/TAO/tao/Object.h @@ -29,11 +29,13 @@ #include "tao/Policy_ForwardC.h" #include "ace/Synch.h" +#include "tao/IOP_IORC.h" class TAO_Stub; class TAO_Abstract_ServantBase; class TAO_Object_Proxy_Broker; class TAO_ObjectKey; +class TAO_ORB_Core; namespace CORBA { @@ -75,6 +77,9 @@ namespace CORBA /// Uninlined part of the now-inlined CORBA::is_nil(). static CORBA::Boolean is_nil_i (CORBA::Object_ptr obj); + /// Helper function for reading contents of an IOR + static void tao_object_initialize (Object *); + // These calls correspond to over-the-wire operations, or at least // do so in many common cases. The normal implementation assumes a // particular simple, efficient, protocol-neutral interface for @@ -202,7 +207,7 @@ namespace CORBA * If there's no in-use profile, then the program will * probably crash. This method does not create a new copy. */ - virtual const TAO_ObjectKey &_object_key (void); + // virtual const TAO_ObjectKey &_object_key (void); /// Downcasting this object pointer to some other derived class. /// This QueryInterface stuff only work for local object. @@ -229,9 +234,13 @@ namespace CORBA //@} /// Constructor - Object (TAO_Stub *p = 0, + Object (TAO_Stub *p, CORBA::Boolean collocated = 0, - TAO_Abstract_ServantBase *servant = 0); + TAO_Abstract_ServantBase *servant = 0, + TAO_ORB_Core *orb_core = 0); + + Object (const IOP::IOR_var &ior, + TAO_ORB_Core *orb_core = 0); /// Get the underlying stub object. virtual TAO_Stub *_stubobj (void) const; @@ -245,7 +254,7 @@ namespace CORBA protected: /// Initializing a local object. - Object (int dummy); + Object (int dummy = 0); private: @@ -271,6 +280,16 @@ namespace CORBA private: + /// Flag to indicate whether the IOP::IOR has been evaluated fully. + Boolean is_evaluated_; + + /// If the IOR hasnt been evaluated fully, then the contents of + /// the IOR that we received should be in here! + IOP::IOR_var ior_; + + /// Cached pointer of our ORB_Core + TAO_ORB_Core *orb_core_; + /** * Pointer to the protocol-specific "object" containing important * profiling information regarding this proxy. @@ -288,12 +307,8 @@ namespace CORBA * reason for this is that locality-constrained objects that do * not require reference counting (the default) may be * instantiated in the critical path. - * - * @note This assumes that unconstrained objects will not be - * instantiated in the critical path. */ - TAO_SYNCH_MUTEX * refcount_lock_; - + ACE_Lock * refcount_lock_; }; /** diff --git a/TAO/tao/Object.i b/TAO/tao/Object.i index 4e0549d0209..3deb41590d7 100644 --- a/TAO/tao/Object.i +++ b/TAO/tao/Object.i @@ -10,12 +10,16 @@ CORBA::Object::Object (int) servant_ (0), is_local_ (1), proxy_broker_ (0), + is_evaluated_ (1), + ior_ (), + orb_core_ (0), protocol_proxy_ (0), refcount_ (1), refcount_lock_ (0) { } + ACE_INLINE CORBA::Object_ptr CORBA::Object::_duplicate (CORBA::Object_ptr obj) { diff --git a/TAO/tao/PortableServer/Collocated_Object.cpp b/TAO/tao/PortableServer/Collocated_Object.cpp index 0fa5d53e912..be4acff5662 100644 --- a/TAO/tao/PortableServer/Collocated_Object.cpp +++ b/TAO/tao/PortableServer/Collocated_Object.cpp @@ -6,6 +6,7 @@ #include "tao/ORB_Core.h" #include "tao/Stub.h" +#include "tao/Profile.h" #if !defined (__ACE_INLINE__) # include "Collocated_Object.i" @@ -62,7 +63,7 @@ TAO_Collocated_Object::_is_a (const CORBA::Char *logical_type_id ); CORBA::Object_var forward_to; - servant_upcall.prepare_for_upcall (this->_object_key (), + servant_upcall.prepare_for_upcall (stub->profile_in_use ()->object_key (), "_is_a", forward_to.out () ACE_ENV_ARG_PARAMETER); @@ -132,7 +133,7 @@ TAO_Collocated_Object::_non_existent (ACE_ENV_SINGLE_ARG_DECL) ); CORBA::Object_var forward_to; - servant_upcall.prepare_for_upcall (this->_object_key (), + servant_upcall.prepare_for_upcall (stub->profile_in_use ()->object_key (), "_non_existent", forward_to.out () ACE_ENV_ARG_PARAMETER); @@ -184,7 +185,7 @@ TAO_Collocated_Object::_get_component (ACE_ENV_SINGLE_ARG_DECL) ); CORBA::Object_var forward_to; - servant_upcall.prepare_for_upcall (this->_object_key (), + servant_upcall.prepare_for_upcall (stub->profile_in_use ()->object_key (), "_component", forward_to.out () ACE_ENV_ARG_PARAMETER); diff --git a/TAO/tao/PortableServer/ImR_LocatorS.cpp b/TAO/tao/PortableServer/ImR_LocatorS.cpp index b70622170e8..2960c3a23c2 100644 --- a/TAO/tao/PortableServer/ImR_LocatorS.cpp +++ b/TAO/tao/PortableServer/ImR_LocatorS.cpp @@ -20,7 +20,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_codegen.cpp:663 #ifndef _TAO_IDL_IMR_LOCATORS_CPP_ @@ -33,6 +33,7 @@ #include "tao/TAO_Server_Request.h" #include "tao/ORB_Core.h" #include "tao/Stub.h" +#include "tao/Profile.h" #include "tao/IFR_Client_Adapter.h" #include "tao/PortableInterceptor.h" @@ -133,41 +134,41 @@ TAO_ImplementationRepository_Locator_Perfect_Hash_OpTable::lookup (const char *s static const class TAO_operation_db_entry wordlist[] = { {"",0},{"",0},{"",0},{"",0}, - {"list", &POA_ImplementationRepository::Locator::list_skel}, + {"list", &POA_ImplementationRepository::Locator::list_skel}, {"",0},{"",0},{"",0},{"",0}, - {"find", &POA_ImplementationRepository::Locator::find_skel}, + {"find", &POA_ImplementationRepository::Locator::find_skel}, {"",0},{"",0},{"",0}, - {"remove_server", &POA_ImplementationRepository::Locator::remove_server_skel}, + {"remove_server", &POA_ImplementationRepository::Locator::remove_server_skel}, {"",0}, - {"register_server", &POA_ImplementationRepository::Locator::register_server_skel}, + {"register_server", &POA_ImplementationRepository::Locator::register_server_skel}, {"",0}, - {"reregister_server", &POA_ImplementationRepository::Locator::reregister_server_skel}, - {"register_activator", &POA_ImplementationRepository::Locator::register_activator_skel}, + {"reregister_server", &POA_ImplementationRepository::Locator::reregister_server_skel}, + {"register_activator", &POA_ImplementationRepository::Locator::register_activator_skel}, {"",0}, - {"shutdown_server", &POA_ImplementationRepository::Locator::shutdown_server_skel}, + {"shutdown_server", &POA_ImplementationRepository::Locator::shutdown_server_skel}, {"",0}, - {"server_is_running", &POA_ImplementationRepository::Locator::server_is_running_skel}, + {"server_is_running", &POA_ImplementationRepository::Locator::server_is_running_skel}, {"",0},{"",0}, - {"remove_server_in_location", &POA_ImplementationRepository::Locator::remove_server_in_location_skel}, + {"remove_server_in_location", &POA_ImplementationRepository::Locator::remove_server_in_location_skel}, {"",0},{"",0}, - {"server_is_shutting_down", &POA_ImplementationRepository::Locator::server_is_shutting_down_skel}, + {"server_is_shutting_down", &POA_ImplementationRepository::Locator::server_is_shutting_down_skel}, {"",0}, - {"activate_server", &POA_ImplementationRepository::Locator::activate_server_skel}, + {"activate_server", &POA_ImplementationRepository::Locator::activate_server_skel}, {"",0}, - {"shutdown_server_in_location", &POA_ImplementationRepository::Locator::shutdown_server_in_location_skel}, + {"shutdown_server_in_location", &POA_ImplementationRepository::Locator::shutdown_server_in_location_skel}, {"",0},{"",0}, {"_component", &POA_ImplementationRepository::Locator::_component_skel}, {"",0},{"",0}, {"_non_existent", &POA_ImplementationRepository::Locator::_non_existent_skel}, {"",0}, - {"server_is_shutting_down_in_location", &POA_ImplementationRepository::Locator::server_is_shutting_down_in_location_skel}, + {"server_is_shutting_down_in_location", &POA_ImplementationRepository::Locator::server_is_shutting_down_in_location_skel}, {"",0}, - {"activate_server_in_location", &POA_ImplementationRepository::Locator::activate_server_in_location_skel}, - {"activate_server_with_startup", &POA_ImplementationRepository::Locator::activate_server_with_startup_skel}, + {"activate_server_in_location", &POA_ImplementationRepository::Locator::activate_server_in_location_skel}, + {"activate_server_with_startup", &POA_ImplementationRepository::Locator::activate_server_with_startup_skel}, {"",0}, {"_is_a", &POA_ImplementationRepository::Locator::_is_a_skel}, {"",0},{"",0},{"",0},{"",0}, - {"unregister_activator", &POA_ImplementationRepository::Locator::unregister_activator_skel}, + {"unregister_activator", &POA_ImplementationRepository::Locator::unregister_activator_skel}, {"",0},{"",0},{"",0},{"",0}, {"_interface", &POA_ImplementationRepository::Locator::_interface_skel}, }; @@ -201,7 +202,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * server, const char * location ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -234,16 +235,16 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * server_; const char * location_; - + }; TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location::TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location ( @@ -269,19 +270,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_locati Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -295,15 +296,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_locati Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_activate_server_in_location_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_activate_server_in_location_exceptiondata[] = { ImplementationRepository::_tc_NotFound, ImplementationRepository::_tc_CannotActivate }; - + exception_list->length (2); for (CORBA::ULong i = 0; i < 2; ++i) { @@ -316,7 +317,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_locati } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -327,7 +328,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_locati CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -360,7 +361,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * server, const char * location ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -393,16 +394,16 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * server_; const char * location_; - + }; TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location::TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location ( @@ -428,19 +429,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -454,14 +455,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_remove_server_in_location_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_remove_server_in_location_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -474,7 +475,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -485,7 +486,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -518,7 +519,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * server, const char * location ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -551,16 +552,16 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * server_; const char * location_; - + }; TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location::TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location ( @@ -586,19 +587,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_locati Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -612,14 +613,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_locati Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_shutdown_server_in_location_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_shutdown_server_in_location_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -632,7 +633,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_locati } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -643,7 +644,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_locati CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -676,7 +677,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * server, const char * location ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -709,16 +710,16 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * server_; const char * location_; - + }; TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location::TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location ( @@ -744,19 +745,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_i Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -770,14 +771,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_i Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_server_is_shutting_down_in_location_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_server_is_shutting_down_in_location_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -790,7 +791,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_i } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -801,7 +802,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_i CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -834,7 +835,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * location, CORBA::Object_ptr object_ref ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -869,11 +870,11 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * location_; @@ -904,19 +905,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::argum Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= object_ref_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -930,14 +931,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::excep Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_register_activator_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_register_activator_exceptiondata[] = { ImplementationRepository::_tc_AlreadyRegistered }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -950,7 +951,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::excep } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -961,11 +962,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::resul CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -989,7 +990,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::targe return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator::result (CORBA::ULong result) { // Update the result. @@ -1005,7 +1006,7 @@ public: POA_ImplementationRepository::Locator *tao_impl, const char * location, CORBA::Object_ptr object_ref ACE_ENV_ARG_DECL_WITH_DEFAULTS - + ); virtual Dynamic::ParameterList * arguments ( @@ -1040,11 +1041,11 @@ private: TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator & ); - + private: POA_ImplementationRepository::Locator *_tao_impl; const char * location_; @@ -1075,19 +1076,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::arg Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; - + parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= location_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; (*parameter_list)[len].argument <<= object_ref_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1101,14 +1102,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::exc Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_unregister_activator_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Locator_unregister_activator_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -1121,7 +1122,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::exc } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1132,11 +1133,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::res CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -1160,7 +1161,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::tar return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator::result (CORBA::ULong result) { // Update the result. @@ -1187,7 +1188,7 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::_TAO_Locato { for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) this->proxy_cache_[i] = 0; - + } POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::~_TAO_Locator_Strategized_Proxy_Broker (void) @@ -1195,12 +1196,12 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::~_TAO_Locat for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) { delete this->proxy_cache_[i]; - + // Hack to prevent bug mentioned in 1204. Refer to 1204 // for details.. this->proxy_cache_[i] = 0; } - + } ImplementationRepository::_TAO_Locator_Proxy_Impl& @@ -1212,25 +1213,25 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::select_prox int strategy = TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + if (this->proxy_cache_[strategy] != 0) return *this->proxy_cache_[strategy]; - + this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + return *this->proxy_cache_[strategy]; - + } -void +void POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::create_proxy ( int strategy ACE_ENV_ARG_DECL ) { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - + if (this->proxy_cache_[strategy] == 0) { switch (strategy) @@ -1243,7 +1244,7 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::create_prox ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: ACE_NEW_THROW_EX ( this->proxy_cache_[strategy], @@ -1252,7 +1253,7 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::create_prox ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: default: ACE_NEW_THROW_EX ( @@ -1262,9 +1263,9 @@ POA_ImplementationRepository::_TAO_Locator_Strategized_Proxy_Broker::create_prox ); ACE_CHECK; break; - + } - + } } @@ -1287,13 +1288,13 @@ ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_function (CORBA::Obje int ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_Initializer (long) { - ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_Locator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = +static int ImplementationRepository__TAO_Locator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_Initializer)); @@ -1326,18 +1327,18 @@ void POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::activate_ser ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "activate_server_in_location", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1365,18 +1366,18 @@ void POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::remove_serve ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "remove_server_in_location", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1404,18 +1405,18 @@ void POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::shutdown_ser ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "shutdown_server_in_location", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1443,18 +1444,18 @@ void POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::server_is_sh ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "server_is_shutting_down_in_location", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1484,18 +1485,18 @@ CORBA::ULong POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::regi ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "register_activator", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + return ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1525,18 +1526,18 @@ CORBA::ULong POA_ImplementationRepository::_TAO_Locator_ThruPOA_Proxy_Impl::unre ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "unregister_activator", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + return ACE_reinterpret_cast ( POA_ImplementationRepository::Locator_ptr, servant_upcall.servant ()->_downcast ( @@ -1579,7 +1580,7 @@ void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::activate_serv server, location ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::remove_server_in_location ( @@ -1600,7 +1601,7 @@ void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::remove_server server, location ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::shutdown_server_in_location ( @@ -1621,7 +1622,7 @@ void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::shutdown_serv server, location ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::server_is_shutting_down_in_location ( @@ -1642,7 +1643,7 @@ void POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::server_is_shu server, location ACE_ENV_ARG_PARAMETER ); - + } CORBA::ULong POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::register_activator ( @@ -1663,7 +1664,7 @@ CORBA::ULong POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::regis location, object_ref ACE_ENV_ARG_PARAMETER ); - + } CORBA::ULong POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::unregister_activator ( @@ -1684,7 +1685,7 @@ CORBA::ULong POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::unreg location, object_ref ACE_ENV_ARG_PARAMETER ); - + } @@ -1692,7 +1693,7 @@ CORBA::ULong POA_ImplementationRepository::_TAO_Locator_Direct_Proxy_Impl::unreg // End Direct Proxy Implementation /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::Locator::Locator (void) @@ -1709,7 +1710,7 @@ POA_ImplementationRepository::Locator::~Locator (void) { } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::activate_server_in_location_skel ( @@ -1738,12 +1739,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_activate_server_in_location _tao_ri ( _tao_server_request, _tao_upcall, @@ -1751,32 +1752,32 @@ ACE_THROW (CORBA::MARSHAL ()); server.in (), location.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->activate_server_in_location ( server.in (), location.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -1792,51 +1793,51 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::remove_server_in_location_skel ( @@ -1865,12 +1866,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_remove_server_in_location _tao_ri ( _tao_server_request, _tao_upcall, @@ -1878,32 +1879,32 @@ ACE_THROW (CORBA::MARSHAL ()); server.in (), location.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->remove_server_in_location ( server.in (), location.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -1919,51 +1920,51 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::shutdown_server_in_location_skel ( @@ -1992,12 +1993,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_shutdown_server_in_location _tao_ri ( _tao_server_request, _tao_upcall, @@ -2005,32 +2006,32 @@ ACE_THROW (CORBA::MARSHAL ()); server.in (), location.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->shutdown_server_in_location ( server.in (), location.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -2046,51 +2047,51 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::server_is_shutting_down_in_location_skel ( @@ -2119,12 +2120,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_server_is_shutting_down_in_location _tao_ri ( _tao_server_request, _tao_upcall, @@ -2132,32 +2133,32 @@ ACE_THROW (CORBA::MARSHAL ()); server.in (), location.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->server_is_shutting_down_in_location ( server.in (), location.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -2173,51 +2174,51 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::register_activator_skel ( @@ -2246,12 +2247,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_register_activator _tao_ri ( _tao_server_request, _tao_upcall, @@ -2259,32 +2260,32 @@ ACE_THROW (CORBA::MARSHAL ()); location.in (), object_ref.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->register_activator ( location.in (), object_ref.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { CORBA::ULong _tao_retval_info = _tao_retval; @@ -2302,48 +2303,48 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval) )) @@ -2353,7 +2354,7 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:103 void POA_ImplementationRepository::Locator::unregister_activator_skel ( @@ -2382,12 +2383,12 @@ ACE_THROW (CORBA::MARSHAL ()); #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Locator_unregister_activator _tao_ri ( _tao_server_request, _tao_upcall, @@ -2395,32 +2396,32 @@ ACE_THROW (CORBA::MARSHAL ()); location.in (), object_ref.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->unregister_activator ( location.in (), object_ref.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; - + #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { CORBA::ULong _tao_retval_info = _tao_retval; @@ -2438,48 +2439,48 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval) )) @@ -2489,11 +2490,11 @@ ACE_THROW (CORBA::MARSHAL ()); ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:163 void POA_ImplementationRepository::Locator::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -2505,10 +2506,10 @@ void POA_ImplementationRepository::Locator::_is_a_skel ( CORBA::String_var value; if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) @@ -2516,7 +2517,7 @@ void POA_ImplementationRepository::Locator::_is_a_skel ( } void POA_ImplementationRepository::Locator::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -2526,7 +2527,7 @@ void POA_ImplementationRepository::Locator::_non_existent_skel ( CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) @@ -2534,7 +2535,7 @@ void POA_ImplementationRepository::Locator::_non_existent_skel ( } void POA_ImplementationRepository::Locator::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -2543,27 +2544,27 @@ void POA_ImplementationRepository::Locator::_interface_skel ( POA_ImplementationRepository::Locator *_tao_impl = (POA_ImplementationRepository::Locator *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -2575,7 +2576,7 @@ void POA_ImplementationRepository::Locator::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -2583,7 +2584,7 @@ void POA_ImplementationRepository::Locator::_interface_skel ( } void POA_ImplementationRepository::Locator::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -2593,7 +2594,7 @@ void POA_ImplementationRepository::Locator::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); if (!(_tao_out << _tao_retval._retn ())) @@ -2637,19 +2638,19 @@ void* POA_ImplementationRepository::Locator::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::Locator_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:ImplementationRepository/Administration:1.0") == 0) { return ACE_static_cast (POA_ImplementationRepository::Administration_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -2681,10 +2682,10 @@ POA_ImplementationRepository::Locator::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -2709,7 +2710,7 @@ POA_ImplementationRepository::Locator::_this (ACE_ENV_SINGLE_ARG_DECL) 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); return ::ImplementationRepository::Locator::_unchecked_narrow (obj.in ()); diff --git a/TAO/tao/PortableServer/ImplRepoS.cpp b/TAO/tao/PortableServer/ImplRepoS.cpp index 23ba7b864dc..f46fb953637 100644 --- a/TAO/tao/PortableServer/ImplRepoS.cpp +++ b/TAO/tao/PortableServer/ImplRepoS.cpp @@ -20,7 +20,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_codegen.cpp:670 #ifndef _TAO_IDL_ORIG_IMPLREPOS_CPP_ @@ -33,6 +33,7 @@ #include "tao/TAO_Server_Request.h" #include "tao/ORB_Core.h" #include "tao/Stub.h" +#include "tao/Profile.h" #include "tao/IFR_Client_Adapter.h" #include "tao/PortableInterceptor.h" #if TAO_HAS_INTERCEPTORS == 1 @@ -136,10 +137,10 @@ TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable::lookup (const ch static const class TAO_operation_db_entry wordlist[] = { {"",0},{"",0},{"",0},{"",0}, - {"ping", &POA_ImplementationRepository::ServerObject::ping_skel}, + {"ping", &POA_ImplementationRepository::ServerObject::ping_skel}, {"_is_a", &POA_ImplementationRepository::ServerObject::_is_a_skel}, {"",0},{"",0}, - {"shutdown", &POA_ImplementationRepository::ServerObject::shutdown_skel}, + {"shutdown", &POA_ImplementationRepository::ServerObject::shutdown_skel}, {"",0}, {"_component", &POA_ImplementationRepository::ServerObject::_component_skel}, {"",0},{"",0}, @@ -181,45 +182,45 @@ public: POA_ImplementationRepository::ServerObject *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping & ); - + private: POA_ImplementationRepository::ServerObject *_tao_impl; - + }; // TAO_IDL - Generated from @@ -245,7 +246,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -259,11 +260,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -274,7 +275,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -310,45 +311,45 @@ public: POA_ImplementationRepository::ServerObject *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown & ); - + private: POA_ImplementationRepository::ServerObject *_tao_impl; - + }; // TAO_IDL - Generated from @@ -374,7 +375,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::arguments Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -388,11 +389,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::exceptions Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -403,7 +404,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -456,7 +457,7 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::~_TAO_ for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) { delete this->proxy_cache_[i]; - + // Hack to prevent bug mentioned in 1204. Refer to 1204 // for details.. this->proxy_cache_[i] = 0; @@ -472,26 +473,26 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::select int strategy = TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + if (this->proxy_cache_[strategy] != 0) { return *this->proxy_cache_[strategy]; } - + this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + return *this->proxy_cache_[strategy]; } -void +void POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::create_proxy ( int strategy ACE_ENV_ARG_DECL ) { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - + if (this->proxy_cache_[strategy] == 0) { switch (strategy) @@ -504,7 +505,7 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::create ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: ACE_NEW_THROW_EX ( this->proxy_cache_[strategy], @@ -513,7 +514,7 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::create ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: default: ACE_NEW_THROW_EX ( @@ -544,13 +545,13 @@ ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function (CORBA: int ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer (long) { - ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_ServerObject_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = +static int ImplementationRepository__TAO_ServerObject_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer)); @@ -566,7 +567,7 @@ POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::_TAO_ServerO // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::ping ( @@ -577,36 +578,36 @@ void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::ping ( CORBA::SystemException )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "ping", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerObject:1.0" ) )->ping ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdown ( @@ -617,31 +618,31 @@ void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdow CORBA::SystemException )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "shutdown", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerObject:1.0" ) )->shutdown ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); }// @@ -665,10 +666,10 @@ void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::ping ( POA_ImplementationRepository::ServerObject_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerObject:1.0") )->ping ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown ( @@ -682,10 +683,10 @@ void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown POA_ImplementationRepository::ServerObject_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerObject:1.0") )->shutdown ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); - + } @@ -694,7 +695,7 @@ void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::ServerObject::ServerObject (void) @@ -710,7 +711,7 @@ POA_ImplementationRepository::ServerObject::~ServerObject (void) { } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::ServerObject::ping_skel ( @@ -726,49 +727,49 @@ void POA_ImplementationRepository::ServerObject::ping_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->ping ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -784,51 +785,51 @@ void POA_ImplementationRepository::ServerObject::ping_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::ServerObject::shutdown_skel ( @@ -844,49 +845,49 @@ void POA_ImplementationRepository::ServerObject::shutdown_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->shutdown ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -902,55 +903,55 @@ void POA_ImplementationRepository::ServerObject::shutdown_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:163 void POA_ImplementationRepository::ServerObject::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -960,22 +961,22 @@ void POA_ImplementationRepository::ServerObject::_is_a_skel ( POA_ImplementationRepository::ServerObject *_tao_impl = (POA_ImplementationRepository::ServerObject *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerObject::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -985,16 +986,16 @@ void POA_ImplementationRepository::ServerObject::_non_existent_skel ( CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerObject::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -1003,27 +1004,27 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( POA_ImplementationRepository::ServerObject *_tao_impl = (POA_ImplementationRepository::ServerObject *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -1035,7 +1036,7 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -1043,7 +1044,7 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( } void POA_ImplementationRepository::ServerObject::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -1053,10 +1054,10 @@ void POA_ImplementationRepository::ServerObject::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -1094,13 +1095,13 @@ void* POA_ImplementationRepository::ServerObject::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::ServerObject_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -1132,10 +1133,10 @@ POA_ImplementationRepository::ServerObject::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -1160,7 +1161,7 @@ POA_ImplementationRepository::ServerObject::_this (ACE_ENV_SINGLE_ARG_DECL) 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); return ::ImplementationRepository::ServerObject::_unchecked_narrow (obj.in ()); @@ -1248,29 +1249,29 @@ TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable::lookup (const static const class TAO_operation_db_entry wordlist[] = { {"",0},{"",0},{"",0},{"",0}, - {"find", &POA_ImplementationRepository::Administration::find_skel}, + {"find", &POA_ImplementationRepository::Administration::find_skel}, {"",0},{"",0},{"",0},{"",0}, {"_is_a", &POA_ImplementationRepository::Administration::_is_a_skel}, {"_interface", &POA_ImplementationRepository::Administration::_interface_skel}, {"",0},{"",0}, - {"remove_server", &POA_ImplementationRepository::Administration::remove_server_skel}, + {"remove_server", &POA_ImplementationRepository::Administration::remove_server_skel}, {"",0}, - {"register_server", &POA_ImplementationRepository::Administration::register_server_skel}, + {"register_server", &POA_ImplementationRepository::Administration::register_server_skel}, {"",0}, - {"reregister_server", &POA_ImplementationRepository::Administration::reregister_server_skel}, + {"reregister_server", &POA_ImplementationRepository::Administration::reregister_server_skel}, {"",0}, - {"activate_server", &POA_ImplementationRepository::Administration::activate_server_skel}, - {"shutdown_server", &POA_ImplementationRepository::Administration::shutdown_server_skel}, + {"activate_server", &POA_ImplementationRepository::Administration::activate_server_skel}, + {"shutdown_server", &POA_ImplementationRepository::Administration::shutdown_server_skel}, {"",0}, - {"server_is_running", &POA_ImplementationRepository::Administration::server_is_running_skel}, + {"server_is_running", &POA_ImplementationRepository::Administration::server_is_running_skel}, {"",0}, - {"list", &POA_ImplementationRepository::Administration::list_skel}, + {"list", &POA_ImplementationRepository::Administration::list_skel}, {"_component", &POA_ImplementationRepository::Administration::_component_skel}, {"",0},{"",0}, {"_non_existent", &POA_ImplementationRepository::Administration::_non_existent_skel}, {"",0},{"",0},{"",0}, - {"activate_server_with_startup", &POA_ImplementationRepository::Administration::activate_server_with_startup_skel}, - {"server_is_shutting_down", &POA_ImplementationRepository::Administration::server_is_shutting_down_skel}, + {"activate_server_with_startup", &POA_ImplementationRepository::Administration::activate_server_with_startup_skel}, + {"server_is_shutting_down", &POA_ImplementationRepository::Administration::server_is_shutting_down_skel}, }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) @@ -1307,45 +1308,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -1374,15 +1375,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1396,15 +1397,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound, ImplementationRepository::_tc_CannotActivate }; - + exception_list->length (2); for (CORBA::ULong i = 0; i < 2; ++i) { @@ -1416,7 +1417,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1427,7 +1428,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1465,47 +1466,47 @@ public: const CORBA::Long & check_startup ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (char * result); private: TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const CORBA::Long & check_startup_;char * _result; }; @@ -1537,19 +1538,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= check_startup_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1563,15 +1564,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_with_startup_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_with_startup_exceptiondata[] = { ImplementationRepository::_tc_NotFound, ImplementationRepository::_tc_CannotActivate }; - + exception_list->length (2); for (CORBA::ULong i = 0; i < 2; ++i) { @@ -1583,7 +1584,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1594,11 +1595,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -1622,7 +1623,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup::result (char * result) { // Update the result. @@ -1643,45 +1644,45 @@ public: const ImplementationRepository::StartupOptions & options ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const ImplementationRepository::StartupOptions & options_; }; @@ -1713,19 +1714,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->options_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1739,14 +1740,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_register_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_register_server_exceptiondata[] = { ImplementationRepository::_tc_AlreadyRegistered }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -1758,7 +1759,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1769,7 +1770,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1807,45 +1808,45 @@ public: const ImplementationRepository::StartupOptions & options ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const ImplementationRepository::StartupOptions & options_; }; @@ -1877,19 +1878,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->options_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1903,11 +1904,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1918,7 +1919,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1955,45 +1956,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2022,15 +2023,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::arg Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2044,14 +2045,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::exc Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_remove_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_remove_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2063,7 +2064,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::exc return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2074,7 +2075,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::res CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2111,45 +2112,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2178,15 +2179,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2200,14 +2201,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_shutdown_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_shutdown_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2219,7 +2220,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2230,7 +2231,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2269,47 +2270,47 @@ public: ImplementationRepository::ServerObject_ptr server_object ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (char * result); private: TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const char * addr_; ImplementationRepository::ServerObject_ptr server_object_;char * _result; @@ -2344,23 +2345,23 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (3); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= addr_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->server_object_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2374,14 +2375,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_running_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_running_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2393,7 +2394,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2404,11 +2405,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -2432,7 +2433,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running::result (char * result) { // Update the result. @@ -2452,45 +2453,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2519,15 +2520,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2541,14 +2542,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_shutting_down_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_shutting_down_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2560,7 +2561,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2571,7 +2572,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2608,45 +2609,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_find ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_find & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_find & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2675,15 +2676,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2697,14 +2698,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_find_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_find_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2716,7 +2717,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::exceptions ( return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_find::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2727,7 +2728,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2761,50 +2762,50 @@ public: TAO_ServerRequest &_tao_server_request, TAO_Object_Adapter::Servant_Upcall *tao_servant_upcall, POA_ImplementationRepository::Administration *tao_impl, - const CORBA::ULong & how_many + const CORBA::ULong & how_many ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_list ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_list & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_list & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - - const CORBA::ULong & how_many_; + + const CORBA::ULong & how_many_; }; @@ -2815,13 +2816,13 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::TAO_ServerRe TAO_ServerRequest &_tao_server_request, TAO_Object_Adapter::Servant_Upcall *_tao_servant_upcall, POA_ImplementationRepository::Administration *tao_impl, - const CORBA::ULong & how_many + const CORBA::ULong & how_many ACE_ENV_ARG_DECL_NOT_USED ) : TAO_ServerRequestInfo (_tao_server_request, _tao_servant_upcall), _tao_impl (tao_impl), - how_many_ (how_many) + how_many_ (how_many) {} @@ -2835,15 +2836,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= how_many_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2858,11 +2859,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_list::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2873,7 +2874,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2926,7 +2927,7 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::~_TA for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) { delete this->proxy_cache_[i]; - + // Hack to prevent bug mentioned in 1204. Refer to 1204 // for details.. this->proxy_cache_[i] = 0; @@ -2942,26 +2943,26 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::sele int strategy = TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + if (this->proxy_cache_[strategy] != 0) { return *this->proxy_cache_[strategy]; } - + this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + return *this->proxy_cache_[strategy]; } -void +void POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::create_proxy ( int strategy ACE_ENV_ARG_DECL ) { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - + if (this->proxy_cache_[strategy] == 0) { switch (strategy) @@ -2974,7 +2975,7 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::crea ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: ACE_NEW_THROW_EX ( this->proxy_cache_[strategy], @@ -2983,7 +2984,7 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::crea ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: default: ACE_NEW_THROW_EX ( @@ -3014,13 +3015,13 @@ ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function (CORB int ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer (long) { - ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_Administration_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = +static int ImplementationRepository__TAO_Administration_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer)); @@ -3036,7 +3037,7 @@ POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::_TAO_Admin // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server ( @@ -3050,37 +3051,37 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activ , ImplementationRepository::CannotActivate )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "activate_server", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->activate_server ( - + server ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server_with_startup ( @@ -3102,32 +3103,32 @@ char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::act ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "activate_server_with_startup", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval._retn ()); - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval._retn ()); - + return ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->activate_server_with_startup ( - + server, check_startup ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::register_server ( @@ -3141,38 +3142,38 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::regis , ImplementationRepository::AlreadyRegistered )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "register_server", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->register_server ( - + server, options ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::reregister_server ( @@ -3185,38 +3186,38 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::rereg CORBA::SystemException )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "reregister_server", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->reregister_server ( - + server, options ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remove_server ( @@ -3229,37 +3230,37 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remov , ImplementationRepository::NotFound )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "remove_server", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->remove_server ( - + server ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutdown_server ( @@ -3272,37 +3273,37 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutd , ImplementationRepository::NotFound )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "shutdown_server", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->shutdown_server ( - + server ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_running ( @@ -3324,25 +3325,25 @@ char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::ser ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "server_is_running", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval._retn ()); - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval._retn ()); - + return ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->server_is_running ( - + server, addr, server_object @@ -3350,7 +3351,7 @@ char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::ser ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_shutting_down ( @@ -3363,37 +3364,37 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::serve , ImplementationRepository::NotFound )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "server_is_shutting_down", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->server_is_shutting_down ( - + server ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find ( @@ -3407,38 +3408,38 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find , ImplementationRepository::NotFound )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "find", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->find ( - + server, info ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list ( @@ -3452,31 +3453,31 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list CORBA::SystemException )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "list", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->list ( - + how_many, server_list, server_iterator @@ -3506,11 +3507,11 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activa POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->activate_server ( - + server ACE_ENV_ARG_PARAMETER ); - + } char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server_with_startup ( @@ -3528,12 +3529,12 @@ char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::acti POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->activate_server_with_startup ( - + server, check_startup ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::register_server ( @@ -3550,12 +3551,12 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::regist POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->register_server ( - + server, options ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::reregister_server ( @@ -3571,12 +3572,12 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::reregi POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->reregister_server ( - + server, options ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::remove_server ( @@ -3592,11 +3593,11 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::remove POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->remove_server ( - + server ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::shutdown_server ( @@ -3612,11 +3613,11 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::shutdo POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->shutdown_server ( - + server ACE_ENV_ARG_PARAMETER ); - + } char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_running ( @@ -3634,13 +3635,13 @@ char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::serv POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->server_is_running ( - + server, addr, server_object ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_shutting_down ( @@ -3656,11 +3657,11 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->server_is_shutting_down ( - + server ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::find ( @@ -3677,12 +3678,12 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::find POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->find ( - + server, info ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list ( @@ -3699,13 +3700,13 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list POA_ImplementationRepository::Administration_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") )->list ( - + how_many, server_list, server_iterator ACE_ENV_ARG_PARAMETER ); - + } @@ -3714,7 +3715,7 @@ void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::Administration::Administration (void) @@ -3730,7 +3731,7 @@ POA_ImplementationRepository::Administration::~Administration (void) { } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::activate_server_skel ( @@ -3747,9 +3748,9 @@ void POA_ImplementationRepository::Administration::activate_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) )) @@ -3758,47 +3759,47 @@ void POA_ImplementationRepository::Administration::activate_server_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->activate_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -3814,51 +3815,51 @@ void POA_ImplementationRepository::Administration::activate_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::activate_server_with_startup_skel ( @@ -3877,7 +3878,7 @@ void POA_ImplementationRepository::Administration::activate_server_with_startup_ CORBA::String_var _tao_retval; CORBA::String_var server; CORBA::Long check_startup; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> check_startup) @@ -3887,51 +3888,51 @@ void POA_ImplementationRepository::Administration::activate_server_with_startup_ #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + check_startup ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->activate_server_with_startup ( - + server.in (), - + check_startup ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { char * _tao_retval_info = _tao_retval._retn (); @@ -3950,58 +3951,58 @@ void POA_ImplementationRepository::Administration::activate_server_with_startup_ ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval.in ()) )) ACE_THROW (CORBA::MARSHAL ()); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::register_server_skel ( @@ -4018,10 +4019,10 @@ void POA_ImplementationRepository::Administration::register_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; ImplementationRepository::StartupOptions options; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> options) @@ -4031,51 +4032,51 @@ void POA_ImplementationRepository::Administration::register_server_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->register_server ( - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4091,51 +4092,51 @@ void POA_ImplementationRepository::Administration::register_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::reregister_server_skel ( @@ -4152,10 +4153,10 @@ void POA_ImplementationRepository::Administration::reregister_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; ImplementationRepository::StartupOptions options; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> options) @@ -4165,51 +4166,51 @@ void POA_ImplementationRepository::Administration::reregister_server_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->reregister_server ( - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4225,51 +4226,51 @@ void POA_ImplementationRepository::Administration::reregister_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::remove_server_skel ( @@ -4286,9 +4287,9 @@ void POA_ImplementationRepository::Administration::remove_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) )) @@ -4297,47 +4298,47 @@ void POA_ImplementationRepository::Administration::remove_server_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->remove_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4353,51 +4354,51 @@ void POA_ImplementationRepository::Administration::remove_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::shutdown_server_skel ( @@ -4414,9 +4415,9 @@ void POA_ImplementationRepository::Administration::shutdown_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) )) @@ -4425,47 +4426,47 @@ void POA_ImplementationRepository::Administration::shutdown_server_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->shutdown_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4481,51 +4482,51 @@ void POA_ImplementationRepository::Administration::shutdown_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::server_is_running_skel ( @@ -4545,7 +4546,7 @@ void POA_ImplementationRepository::Administration::server_is_running_skel ( CORBA::String_var server; CORBA::String_var addr; ImplementationRepository::ServerObject_var server_object; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> addr.out ()) && @@ -4556,55 +4557,55 @@ void POA_ImplementationRepository::Administration::server_is_running_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + addr.in (), - + server_object.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->server_is_running ( - + server.in (), - + addr.in (), - + server_object.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { char * _tao_retval_info = _tao_retval._retn (); @@ -4623,58 +4624,58 @@ void POA_ImplementationRepository::Administration::server_is_running_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval.in ()) )) ACE_THROW (CORBA::MARSHAL ()); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::server_is_shutting_down_skel ( @@ -4691,9 +4692,9 @@ void POA_ImplementationRepository::Administration::server_is_shutting_down_skel _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) )) @@ -4702,47 +4703,47 @@ void POA_ImplementationRepository::Administration::server_is_shutting_down_skel #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->server_is_shutting_down ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4758,51 +4759,51 @@ void POA_ImplementationRepository::Administration::server_is_shutting_down_skel ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::find_skel ( @@ -4818,10 +4819,10 @@ void POA_ImplementationRepository::Administration::find_skel ( POA_ImplementationRepository::Administration *, _tao_servant ); - + CORBA::String_var server; ImplementationRepository::ServerInformation_var info; - + if (!( (_tao_in >> server.out ()) )) @@ -4830,49 +4831,49 @@ void POA_ImplementationRepository::Administration::find_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_find _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->find ( - + server.in (), - + info.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4888,58 +4889,58 @@ void POA_ImplementationRepository::Administration::find_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << info.in ()) )) ACE_THROW (CORBA::MARSHAL ()); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::Administration::list_skel ( @@ -4955,12 +4956,12 @@ void POA_ImplementationRepository::Administration::list_skel ( POA_ImplementationRepository::Administration *, _tao_servant ); - + CORBA::ULong how_many; ImplementationRepository::ServerInformationList_var server_list; - + ImplementationRepository::ServerInformationIterator_var server_iterator; - + if (!( (_tao_in >> how_many) )) @@ -4969,52 +4970,52 @@ void POA_ImplementationRepository::Administration::list_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_list _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - - how_many + + how_many ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->list ( - + how_many, - + server_list.out (), - + server_iterator.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -5030,63 +5031,63 @@ void POA_ImplementationRepository::Administration::list_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << server_list.in ()) && (_tao_out << server_iterator.in ()) )) ACE_THROW (CORBA::MARSHAL ()); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:163 void POA_ImplementationRepository::Administration::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5096,22 +5097,22 @@ void POA_ImplementationRepository::Administration::_is_a_skel ( POA_ImplementationRepository::Administration *_tao_impl = (POA_ImplementationRepository::Administration *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::Administration::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5121,16 +5122,16 @@ void POA_ImplementationRepository::Administration::_non_existent_skel ( CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::Administration::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5139,27 +5140,27 @@ void POA_ImplementationRepository::Administration::_interface_skel ( POA_ImplementationRepository::Administration *_tao_impl = (POA_ImplementationRepository::Administration *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -5171,7 +5172,7 @@ void POA_ImplementationRepository::Administration::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -5179,7 +5180,7 @@ void POA_ImplementationRepository::Administration::_interface_skel ( } void POA_ImplementationRepository::Administration::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5189,10 +5190,10 @@ void POA_ImplementationRepository::Administration::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -5230,13 +5231,13 @@ void* POA_ImplementationRepository::Administration::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::Administration_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -5268,10 +5269,10 @@ POA_ImplementationRepository::Administration::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -5296,7 +5297,7 @@ POA_ImplementationRepository::Administration::_this (ACE_ENV_SINGLE_ARG_DECL) 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); return ::ImplementationRepository::Administration::_unchecked_narrow (obj.in ()); @@ -5385,8 +5386,8 @@ TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable::loo { {"",0},{"",0},{"",0},{"",0},{"",0}, {"_is_a", &POA_ImplementationRepository::ServerInformationIterator::_is_a_skel}, - {"next_n", &POA_ImplementationRepository::ServerInformationIterator::next_n_skel}, - {"destroy", &POA_ImplementationRepository::ServerInformationIterator::destroy_skel}, + {"next_n", &POA_ImplementationRepository::ServerInformationIterator::next_n_skel}, + {"destroy", &POA_ImplementationRepository::ServerInformationIterator::destroy_skel}, {"",0},{"",0}, {"_component", &POA_ImplementationRepository::ServerInformationIterator::_component_skel}, {"",0},{"",0}, @@ -5429,47 +5430,47 @@ public: const CORBA::ULong & how_many ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (CORBA::Boolean result); private: TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n & ); - + private: POA_ImplementationRepository::ServerInformationIterator *_tao_impl; - + const CORBA::ULong & how_many_;CORBA::Boolean _result; }; @@ -5498,15 +5499,15 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= how_many_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -5520,11 +5521,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -5535,11 +5536,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= CORBA::Any::from_boolean (this->_result); - + return safe_result_any._retn (); } @@ -5563,7 +5564,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n::result (CORBA::Boolean result) { // Update the result. @@ -5582,45 +5583,45 @@ public: POA_ImplementationRepository::ServerInformationIterator *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy & ); - + private: POA_ImplementationRepository::ServerInformationIterator *_tao_impl; - + }; // TAO_IDL - Generated from @@ -5646,7 +5647,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -5660,11 +5661,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -5675,7 +5676,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -5728,7 +5729,7 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) { delete this->proxy_cache_[i]; - + // Hack to prevent bug mentioned in 1204. Refer to 1204 // for details.. this->proxy_cache_[i] = 0; @@ -5744,26 +5745,26 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B int strategy = TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + if (this->proxy_cache_[strategy] != 0) { return *this->proxy_cache_[strategy]; } - + this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - + return *this->proxy_cache_[strategy]; } -void +void POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::create_proxy ( int strategy ACE_ENV_ARG_DECL ) { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - + if (this->proxy_cache_[strategy] == 0) { switch (strategy) @@ -5776,7 +5777,7 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: ACE_NEW_THROW_EX ( this->proxy_cache_[strategy], @@ -5785,7 +5786,7 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B ); ACE_CHECK; break; - + case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: default: ACE_NEW_THROW_EX ( @@ -5816,13 +5817,13 @@ ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_fun int ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer (long) { - ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = +static int ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (long, ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer)); @@ -5838,7 +5839,7 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl: // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 CORBA::Boolean POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::next_n ( @@ -5858,32 +5859,32 @@ CORBA::Boolean POA_ImplementationRepository::_TAO_ServerInformationIterator_Thru ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "next_n", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK_RETURN (_tao_retval); - + return ACE_reinterpret_cast ( POA_ImplementationRepository::ServerInformationIterator_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerInformationIterator:1.0" ) )->next_n ( - + how_many, server_list ACE_ENV_ARG_PARAMETER ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 void POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::destroy ( @@ -5894,31 +5895,31 @@ void POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_ CORBA::SystemException )) { - + TAO_Object_Adapter::Servant_Upcall servant_upcall ( _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "destroy", forward_to.out () ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerInformationIterator_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerInformationIterator:1.0" ) )->destroy ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); }// @@ -5944,12 +5945,12 @@ CORBA::Boolean POA_ImplementationRepository::_TAO_ServerInformationIterator_Dire POA_ImplementationRepository::ServerInformationIterator_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerInformationIterator:1.0") )->next_n ( - + how_many, server_list ACE_ENV_ARG_PARAMETER ); - + } void POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::destroy ( @@ -5963,10 +5964,10 @@ void POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_I POA_ImplementationRepository::ServerInformationIterator_ptr, _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerInformationIterator:1.0") )->destroy ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); - + } @@ -5975,7 +5976,7 @@ void POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_I /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::ServerInformationIterator::ServerInformationIterator (void) @@ -5991,7 +5992,7 @@ POA_ImplementationRepository::ServerInformationIterator::~ServerInformationItera { } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( @@ -6010,8 +6011,8 @@ void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( CORBA::Boolean _tao_retval = 0; CORBA::ULong how_many; ImplementationRepository::ServerInformationList_var server_list; - - + + if (!( (_tao_in >> how_many) )) @@ -6020,49 +6021,49 @@ void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + how_many ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->next_n ( - + how_many, - + server_list.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { CORBA::Boolean _tao_retval_info = _tao_retval; @@ -6080,59 +6081,59 @@ void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << CORBA::Any::from_boolean (_tao_retval)) && (_tao_out << server_list.in ()) )) ACE_THROW (CORBA::MARSHAL ()); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_operation/operation_ss.cpp:100 void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( @@ -6148,49 +6149,49 @@ void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->destroy ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -6206,55 +6207,55 @@ void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be/be_visitor_interface/interface_ss.cpp:163 void POA_ImplementationRepository::ServerInformationIterator::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6264,22 +6265,22 @@ void POA_ImplementationRepository::ServerInformationIterator::_is_a_skel ( POA_ImplementationRepository::ServerInformationIterator *_tao_impl = (POA_ImplementationRepository::ServerInformationIterator *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6289,16 +6290,16 @@ void POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6307,27 +6308,27 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( POA_ImplementationRepository::ServerInformationIterator *_tao_impl = (POA_ImplementationRepository::ServerInformationIterator *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -6339,7 +6340,7 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -6347,7 +6348,7 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( } void POA_ImplementationRepository::ServerInformationIterator::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6357,10 +6358,10 @@ void POA_ImplementationRepository::ServerInformationIterator::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -6398,13 +6399,13 @@ void* POA_ImplementationRepository::ServerInformationIterator::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::ServerInformationIterator_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -6436,10 +6437,10 @@ POA_ImplementationRepository::ServerInformationIterator::_this (ACE_ENV_SINGLE_A { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -6464,7 +6465,7 @@ POA_ImplementationRepository::ServerInformationIterator::_this (ACE_ENV_SINGLE_A 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); return ::ImplementationRepository::ServerInformationIterator::_unchecked_narrow (obj.in ()); diff --git a/TAO/tao/PortableServer/PolicyS.cpp b/TAO/tao/PortableServer/PolicyS.cpp index bb8ad64ba03..f05323a2ff8 100644 --- a/TAO/tao/PortableServer/PolicyS.cpp +++ b/TAO/tao/PortableServer/PolicyS.cpp @@ -29,6 +29,7 @@ #include "tao/TAO_Server_Request.h" #include "tao/ORB_Core.h" #include "tao/Stub.h" +#include "tao/Profile.h" #include "tao/IFR_Client_Adapter.h" #include "tao/PortableInterceptor.h" @@ -647,7 +648,7 @@ CORBA::PolicyType POA_CORBA::_TAO_Policy_ThruPOA_Proxy_Impl::policy_type ( ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "policy_type", forward_to.out () ACE_ENV_ARG_PARAMETER @@ -680,7 +681,7 @@ CORBA::PolicyType POA_CORBA::_TAO_Policy_ThruPOA_Proxy_Impl::policy_type ( ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "copy", forward_to.out () ACE_ENV_ARG_PARAMETER @@ -711,7 +712,7 @@ void POA_CORBA::_TAO_Policy_ThruPOA_Proxy_Impl::destroy ( ); CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_object_key (), + _collocated_tao_target_->_stubobj ()->profile_in_use ()->object_key (), "destroy", forward_to.out () ACE_ENV_ARG_PARAMETER diff --git a/TAO/tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp b/TAO/tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp index cdcf0596013..6cfcd57b356 100644 --- a/TAO/tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp +++ b/TAO/tao/PortableServer/ThruPOA_Object_Proxy_Impl.cpp @@ -5,7 +5,7 @@ #include "tao/ORB_Core.h" #include "tao/Stub.h" - +#include "tao/Profile.h" ACE_RCSID(tao, TAO_ThruPOA_Object_Proxy_Impl, "$Id$") @@ -30,7 +30,7 @@ TAO_ThruPOA_Object_Proxy_Impl::_is_a (const CORBA::Object_ptr target, CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - target->_object_key (), + target->_stubobj ()->profile_in_use ()->object_key (), "_is_a", forward_to.out () ACE_ENV_ARG_PARAMETER @@ -61,7 +61,7 @@ TAO_ThruPOA_Object_Proxy_Impl::_non_existent (const CORBA::Object_ptr target CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - target->_object_key (), + target->_stubobj ()->profile_in_use ()->object_key (), "_non_existent", forward_to.out () ACE_ENV_ARG_PARAMETER @@ -99,7 +99,7 @@ TAO_ThruPOA_Object_Proxy_Impl::_get_interface (const CORBA::Object_ptr target CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - target->_object_key (), + target->_stubobj ()->profile_in_use ()->object_key (), "_interface", forward_to.out () ACE_ENV_ARG_PARAMETER @@ -136,7 +136,7 @@ TAO_ThruPOA_Object_Proxy_Impl::_get_component (const CORBA::Object_ptr target CORBA::Object_var forward_to; servant_upcall.prepare_for_upcall ( - target->_object_key (), + target->_stubobj ()->profile_in_use ()->object_key (), "_component", forward_to.out () ACE_ENV_ARG_PARAMETER); diff --git a/TAO/tao/Resource_Factory.cpp b/TAO/tao/Resource_Factory.cpp index 22e921674a8..c777b8ab7d9 100644 --- a/TAO/tao/Resource_Factory.cpp +++ b/TAO/tao/Resource_Factory.cpp @@ -188,6 +188,11 @@ TAO_Resource_Factory::locked_transport_cache (void) return 0; } +ACE_Lock * +TAO_Resource_Factory::create_corba_object_lock (void) +{ + return 0; +} int TAO_Resource_Factory::load_default_protocols (void) diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h index 3cf5e3d286e..c41e74be487 100644 --- a/TAO/tao/Resource_Factory.h +++ b/TAO/tao/Resource_Factory.h @@ -113,19 +113,21 @@ public: NOOP }; + enum Resource_Usage + { + /// Use resources in an eager fashion + TAO_EAGER, + + /// Use resources in a lazy manner + TAO_LAZY + }; + // = Initialization and termination methods. TAO_Resource_Factory (void); virtual ~TAO_Resource_Factory (void); // = Resource Retrieval -#if 0 - /// @@ todo: Need to go at a later date! - /// @@ Backwards compatibility, return 1 if the ORB core should use - /// TSS resources - virtual int use_tss_resources (void) const; -#endif /*if 0*/ - /// @@ Backwards compatibility, return 1 if the ORB core should use /// Locked_Data_Blocks virtual int use_locked_data_blocks (void) const; @@ -188,14 +190,16 @@ public: int &number_of_names); /// Creates the lock for the lock needed in the Cache Map - /// @@todo: This method needs to go away as it doesnt make much - /// sense now. + /// @deprecated: virtual ACE_Lock *create_cached_connection_lock (void); /// Should the transport cache have a lock or not? Return 1 if the /// transport cache needs to be locked else return 0 virtual int locked_transport_cache (void); + /// Creates the lock for the CORBA Object + virtual ACE_Lock *create_corba_object_lock (void); + /// Creates the flushing strategy. The new instance is owned by the /// caller. virtual TAO_Flushing_Strategy *create_flushing_strategy (void) = 0; @@ -213,6 +217,9 @@ public: /// user attempts to set options on an unused factory. virtual void disable_factory (void) = 0; + /// Return the resource usage strategy. + virtual TAO_Resource_Factory::Resource_Usage resource_usage_strategy (void) const = 0; + protected: /** * Loads the default protocols. This method is used so that the diff --git a/TAO/tao/TAO.dsp b/TAO/tao/TAO.dsp index 0735cf51f82..7644f373986 100644 --- a/TAO/tao/TAO.dsp +++ b/TAO/tao/TAO.dsp @@ -515,6 +515,14 @@ SOURCE=.\Invocation_Endpoint_Selectors.cpp # End Source File
# Begin Source File
+SOURCE=.\IOP_CodecC.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\IOP_IORC.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\IOPC.cpp
# End Source File
# Begin Source File
@@ -1335,6 +1343,14 @@ SOURCE=.\Invocation_Endpoint_Selectors.h # End Source File
# Begin Source File
+SOURCE=.\IOP_CodecC.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\IOP_IORC.h
+# End Source File
+# Begin Source File
+
SOURCE=.\IOPC.h
# End Source File
# Begin Source File
@@ -2079,6 +2095,14 @@ SOURCE=.\Invocation_Endpoint_Selectors.i # End Source File
# Begin Source File
+SOURCE=.\IOP_CodecC.i
+# End Source File
+# Begin Source File
+
+SOURCE=.\IOP_IORC.i
+# End Source File
+# Begin Source File
+
SOURCE=.\IOPC.i
# End Source File
# Begin Source File
diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp index 24c7cccf5a6..5079a5f0de8 100644 --- a/TAO/tao/default_resource.cpp +++ b/TAO/tao/default_resource.cpp @@ -35,20 +35,22 @@ ACE_RCSID (tao, "$Id$") TAO_Default_Resource_Factory::TAO_Default_Resource_Factory (void) - : use_locked_data_blocks_ (1), - parser_names_count_ (0), - parser_names_ (0), - protocol_factories_ (), - connection_purging_type_ (TAO_CONNECTION_PURGING_STRATEGY), - cache_maximum_ (TAO_CONNECTION_CACHE_MAXIMUM), - purge_percentage_ (TAO_PURGE_PERCENT), - max_muxed_connections_ (0), - reactor_mask_signals_ (1), - dynamically_allocated_reactor_ (0), - options_processed_ (0), - factory_disabled_ (0), - cached_connection_lock_type_ (TAO_THREAD_LOCK), - flushing_strategy_type_ (TAO_LEADER_FOLLOWER_FLUSHING) + : use_locked_data_blocks_ (1) + , parser_names_count_ (0) + , parser_names_ (0) + , protocol_factories_ () + , connection_purging_type_ (TAO_CONNECTION_PURGING_STRATEGY) + , cache_maximum_ (TAO_CONNECTION_CACHE_MAXIMUM) + , purge_percentage_ (TAO_PURGE_PERCENT) + , max_muxed_connections_ (0) + , reactor_mask_signals_ (1) + , dynamically_allocated_reactor_ (0) + , options_processed_ (0) + , factory_disabled_ (0) + , cached_connection_lock_type_ (TAO_THREAD_LOCK) + , corba_object_lock_type_ (TAO_THREAD_LOCK) + , flushing_strategy_type_ (TAO_LEADER_FOLLOWER_FLUSHING) + , resource_usage_strategy_ (TAO_Resource_Factory::TAO_EAGER) { } @@ -282,6 +284,49 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[]) } } else if (ACE_OS::strcasecmp (argv[curarg], + ACE_LIB_TEXT("-ORBCorbaObjectLock")) == 0) + { + curarg++; + if (curarg < argc) + { + ACE_TCHAR* name = argv[curarg]; + + if (ACE_OS::strcasecmp (name, + ACE_LIB_TEXT("thread")) == 0) + this->corba_object_lock_type_ = TAO_THREAD_LOCK; + else if (ACE_OS::strcasecmp (name, + ACE_LIB_TEXT("null")) == 0) + { + // @@ Bug 940 :This is a sort of hack now. We need to put + // this in a common place once we get the common + // switch that is documented in bug 940... + this->corba_object_lock_type_ = TAO_NULL_LOCK; + } + else + this->report_option_value_error (ACE_LIB_TEXT("-ORBCorbaObjectLock"), name); + } + } + else if (ACE_OS::strcasecmp (argv[curarg], + ACE_LIB_TEXT("-ORBResourceUsage")) == 0) + { + curarg++; + if (curarg < argc) + { + ACE_TCHAR* name = argv[curarg]; + + if (ACE_OS::strcasecmp (name, + ACE_LIB_TEXT("eager")) == 0) + this->resource_usage_strategy_ = TAO_EAGER; + else if (ACE_OS::strcasecmp (name, + ACE_LIB_TEXT("lazy")) == 0) + { + this->resource_usage_strategy_ = TAO_LAZY; + } + else + this->report_option_value_error (ACE_LIB_TEXT("-ORBResourceUsage"), name); + } + } + else if (ACE_OS::strcasecmp (argv[curarg], ACE_LIB_TEXT("-ORBFlushingStrategy")) == 0) { curarg++; @@ -734,6 +779,22 @@ TAO_Default_Resource_Factory::locked_transport_cache (void) return 1; } +ACE_Lock * +TAO_Default_Resource_Factory::create_corba_object_lock (void) +{ + ACE_Lock *the_lock = 0; + + if (this->corba_object_lock_type_ == TAO_NULL_LOCK) + ACE_NEW_RETURN (the_lock, + ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX>, + 0); + else + ACE_NEW_RETURN (the_lock, + ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, + 0); + + return the_lock; +} TAO_Flushing_Strategy * TAO_Default_Resource_Factory::create_flushing_strategy (void) @@ -812,6 +873,12 @@ TAO_Default_Resource_Factory::disable_factory (void) } } +TAO_Resource_Factory::Resource_Usage +TAO_Default_Resource_Factory::resource_usage_strategy (void)const +{ + return this->resource_usage_strategy_; +} + // **************************************************************** ACE_STATIC_SVC_DEFINE (TAO_Default_Resource_Factory, diff --git a/TAO/tao/default_resource.h b/TAO/tao/default_resource.h index 8500447bc79..e8955871063 100644 --- a/TAO/tao/default_resource.h +++ b/TAO/tao/default_resource.h @@ -96,10 +96,6 @@ public: int cdr_allocator_source (void); // = Resource Retrieval -#if 0 - // @@@todo: Need to go at a later date - virtual int use_tss_resources (void) const; -#endif /*if 0*/ virtual int use_locked_data_blocks (void) const; virtual ACE_Reactor *get_reactor (void); virtual void reclaim_reactor (ACE_Reactor *); @@ -120,6 +116,7 @@ public: virtual int purge_percentage (void) const; virtual int max_muxed_connections (void) const; virtual ACE_Lock *create_cached_connection_lock (void); + virtual ACE_Lock *create_corba_object_lock (void); virtual int locked_transport_cache (void); virtual TAO_Flushing_Strategy *create_flushing_strategy (void); virtual TAO_Connection_Purging_Strategy *create_purging_strategy (void); @@ -127,6 +124,7 @@ public: virtual void disable_factory (void); + virtual TAO_Resource_Factory::Resource_Usage resource_usage_strategy (void) const; //@} protected: @@ -212,6 +210,9 @@ private: /// Type of lock used by the cached connector. Lock_Type cached_connection_lock_type_; + /// Type of lock used by the corba object. + Lock_Type corba_object_lock_type_; + enum Flushing_Strategy_Type { TAO_LEADER_FOLLOWER_FLUSHING, @@ -221,6 +222,9 @@ private: /// Type of flushing strategy configured int flushing_strategy_type_; + + /// Resource usage strategy + Resource_Usage resource_usage_strategy_; }; #if defined (__ACE_INLINE__) |