Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DynamicC.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // -*- C++ -*-
00003 //
00004 // $Id: DynamicC.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00005 
00006 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00007 // TAO and the TAO IDL Compiler have been developed by:
00008 //       Center for Distributed Object Computing
00009 //       Washington University
00010 //       St. Louis, MO
00011 //       USA
00012 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00013 // and
00014 //       Distributed Object Computing Laboratory
00015 //       University of California at Irvine
00016 //       Irvine, CA
00017 //       USA
00018 //       http://doc.ece.uci.edu/
00019 //
00020 // Information about TAO is available at:
00021 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00022 
00023 #include "DynamicC.h"
00024 
00025 #include "tao/Stub.h"
00026 #include "tao/Invocation.h"
00027 #include "tao/PortableInterceptor.h"
00028 #include "tao/StringSeqC.h"
00029 
00030 #if TAO_HAS_INTERCEPTORS == 1
00031 #include "tao/RequestInfo_Util.h"
00032 #include "tao/ClientRequestInfo_i.h"
00033 #include "tao/ClientInterceptorAdapter.h"
00034 #endif  /* TAO_HAS_INTERCEPTORS == 1 */
00035 
00036 #if defined (__BORLANDC__)
00037 #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
00038 #endif /* __BORLANDC__ */
00039 
00040 #if !defined (__ACE_INLINE__)
00041 #include "DynamicC.i"
00042 #endif /* !defined INLINE */
00043 
00044 static const CORBA::Long _oc_Dynamic_Parameter[] =
00045 {
00046   TAO_ENCAP_BYTE_ORDER, // byte order
00047   26,
00048   ACE_NTOHL (0x49444c3a), 
00049   ACE_NTOHL (0x44796e61), 
00050   ACE_NTOHL (0x6d69632f), 
00051   ACE_NTOHL (0x50617261), 
00052   ACE_NTOHL (0x6d657465), 
00053   ACE_NTOHL (0x723a312e), 
00054   ACE_NTOHL (0x30000000),  // repository ID = IDL:Dynamic/Parameter:1.0
00055   10,
00056   ACE_NTOHL (0x50617261), 
00057   ACE_NTOHL (0x6d657465), 
00058   ACE_NTOHL (0x72000000),  // name = Parameter
00059   2, // member count
00060   9,
00061   ACE_NTOHL (0x61726775), 
00062   ACE_NTOHL (0x6d656e74), 
00063   ACE_NTOHL (0x0),  // name = argument
00064   CORBA::tk_any,
00065 
00066   5,
00067   ACE_NTOHL (0x6d6f6465), 
00068   ACE_NTOHL (0x0),  // name = mode
00069   CORBA::tk_enum, // typecode kind
00070   116, // encapsulation length
00071     TAO_ENCAP_BYTE_ORDER, // byte order
00072     36,
00073     ACE_NTOHL (0x49444c3a), 
00074     ACE_NTOHL (0x6f6d672e), 
00075     ACE_NTOHL (0x6f72672f), 
00076     ACE_NTOHL (0x434f5242), 
00077     ACE_NTOHL (0x412f5061), 
00078     ACE_NTOHL (0x72616d65), 
00079     ACE_NTOHL (0x7465724d), 
00080     ACE_NTOHL (0x6f64653a), 
00081     ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CORBA/ParameterMode:1.0
00082     14,
00083     ACE_NTOHL (0x50617261), 
00084     ACE_NTOHL (0x6d657465), 
00085     ACE_NTOHL (0x724d6f64), 
00086     ACE_NTOHL (0x65000000),  // name = ParameterMode
00087     3, // member count
00088     9,
00089     ACE_NTOHL (0x50415241), 
00090     ACE_NTOHL (0x4d5f494e), 
00091     ACE_NTOHL (0x0),  // name = PARAM_IN
00092     10,
00093     ACE_NTOHL (0x50415241), 
00094     ACE_NTOHL (0x4d5f4f55), 
00095     ACE_NTOHL (0x54000000),  // name = PARAM_OUT
00096     12,
00097     ACE_NTOHL (0x50415241), 
00098     ACE_NTOHL (0x4d5f494e), 
00099     ACE_NTOHL (0x4f555400),  // name = PARAM_INOUT
00100 
00101 };
00102 
00103 static CORBA::TypeCode _tc_TAO_tc_Dynamic_Parameter (
00104     CORBA::tk_struct,
00105     sizeof (_oc_Dynamic_Parameter),
00106     (char *) &_oc_Dynamic_Parameter,
00107     0,
00108     sizeof (Dynamic::Parameter)
00109   );
00110 
00111 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00112 TAO_NAMESPACE_BEGIN (Dynamic)
00113 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_Parameter, &_tc_TAO_tc_Dynamic_Parameter)
00114 TAO_NAMESPACE_END
00115 
00116 void Dynamic::Parameter::_tao_any_destructor (void *_tao_void_pointer)
00117 {
00118   Parameter *tmp = ACE_static_cast (Parameter*, _tao_void_pointer);
00119   delete tmp;
00120 }
00121 
00122 
00123 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00124 
00125 #if !defined (__TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CS_)
00126 #define __TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CS_
00127 
00128 void
00129 Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_allocate_buffer (CORBA::ULong length)
00130 {
00131   Dynamic::Parameter* tmp = 0;
00132   tmp = _TAO_Unbounded_Sequence_Dynamic_ParameterList::allocbuf (length);
00133   
00134   if (this->buffer_ != 0)
00135   {
00136     Dynamic::Parameter *old = ACE_reinterpret_cast (Dynamic::Parameter *,this->buffer_);
00137     
00138     for (CORBA::ULong i = 0; i < this->length_; ++i)
00139       tmp[i] = old[i];
00140     
00141     if (this->release_)
00142       _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (old);
00143     
00144   }
00145   this->buffer_ = tmp;
00146 }
00147 
00148 void
00149 Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::_deallocate_buffer (void)
00150 {
00151   if (this->buffer_ == 0 || this->release_ == 0)
00152     return;
00153   
00154   Dynamic::Parameter *tmp = ACE_reinterpret_cast (Dynamic::Parameter *,this->buffer_);
00155   
00156   _TAO_Unbounded_Sequence_Dynamic_ParameterList::freebuf (tmp);
00157   this->buffer_ = 0;
00158 } 
00159 
00160 Dynamic::_TAO_Unbounded_Sequence_Dynamic_ParameterList::~_TAO_Unbounded_Sequence_Dynamic_ParameterList (void) // Dtor.
00161 {
00162   this->_deallocate_buffer ();
00163 }
00164 
00165 
00166 #endif /* end #if !defined */
00167 
00168 
00169 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00170 
00171 #if !defined (_DYNAMIC_PARAMETERLIST_CS_)
00172 #define _DYNAMIC_PARAMETERLIST_CS_
00173 
00174 // *************************************************************
00175 // Dynamic::ParameterList
00176 // *************************************************************
00177 
00178 Dynamic::ParameterList::ParameterList (void)
00179 {}
00180 Dynamic::ParameterList::ParameterList (CORBA::ULong max) // uses max size
00181   : 
00182 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00183 _TAO_Unbounded_Sequence_Dynamic_ParameterList
00184 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00185 TAO_Unbounded_Sequence<Dynamic::Parameter>
00186 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00187  (max)
00188 {}
00189 Dynamic::ParameterList::ParameterList (CORBA::ULong max, CORBA::ULong length, Dynamic::Parameter *buffer, CORBA::Boolean release)
00190   : 
00191 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00192 _TAO_Unbounded_Sequence_Dynamic_ParameterList
00193 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00194 TAO_Unbounded_Sequence<Dynamic::Parameter>
00195 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00196  (max, length, buffer, release)
00197 {}
00198 Dynamic::ParameterList::ParameterList (const ParameterList &seq) // copy ctor
00199   : 
00200 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00201 _TAO_Unbounded_Sequence_Dynamic_ParameterList
00202 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00203 TAO_Unbounded_Sequence<Dynamic::Parameter>
00204 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00205  (seq)
00206 {}
00207 Dynamic::ParameterList::~ParameterList (void) // dtor
00208 {}
00209 void Dynamic::ParameterList::_tao_any_destructor (void *_tao_void_pointer)
00210 {
00211   ParameterList *tmp = ACE_static_cast (ParameterList*, _tao_void_pointer);
00212   delete tmp;
00213 }
00214 
00215 
00216 #endif /* end #if !defined */
00217 
00218 static const CORBA::Long _oc_Dynamic_ParameterList[] =
00219 {
00220   TAO_ENCAP_BYTE_ORDER, // byte order
00221   30,
00222   ACE_NTOHL (0x49444c3a), 
00223   ACE_NTOHL (0x44796e61), 
00224   ACE_NTOHL (0x6d69632f), 
00225   ACE_NTOHL (0x50617261), 
00226   ACE_NTOHL (0x6d657465), 
00227   ACE_NTOHL (0x724c6973), 
00228   ACE_NTOHL (0x743a312e), 
00229   ACE_NTOHL (0x30000000),  // repository ID = IDL:Dynamic/ParameterList:1.0
00230   14,
00231   ACE_NTOHL (0x50617261), 
00232   ACE_NTOHL (0x6d657465), 
00233   ACE_NTOHL (0x724c6973), 
00234   ACE_NTOHL (0x74000000),  // name = ParameterList
00235   CORBA::tk_sequence, // typecode kind
00236   228, // encapsulation length
00237     TAO_ENCAP_BYTE_ORDER, // byte order
00238     CORBA::tk_struct, // typecode kind
00239     212, // encapsulation length
00240       TAO_ENCAP_BYTE_ORDER, // byte order
00241       26,
00242       ACE_NTOHL (0x49444c3a), 
00243       ACE_NTOHL (0x44796e61), 
00244       ACE_NTOHL (0x6d69632f), 
00245       ACE_NTOHL (0x50617261), 
00246       ACE_NTOHL (0x6d657465), 
00247       ACE_NTOHL (0x723a312e), 
00248       ACE_NTOHL (0x30000000),  // repository ID = IDL:Dynamic/Parameter:1.0
00249       10,
00250       ACE_NTOHL (0x50617261), 
00251       ACE_NTOHL (0x6d657465), 
00252       ACE_NTOHL (0x72000000),  // name = Parameter
00253       2, // member count
00254       9,
00255       ACE_NTOHL (0x61726775), 
00256       ACE_NTOHL (0x6d656e74), 
00257       ACE_NTOHL (0x0),  // name = argument
00258       CORBA::tk_any,
00259 
00260       5,
00261       ACE_NTOHL (0x6d6f6465), 
00262       ACE_NTOHL (0x0),  // name = mode
00263       CORBA::tk_enum, // typecode kind
00264       116, // encapsulation length
00265         TAO_ENCAP_BYTE_ORDER, // byte order
00266         36,
00267         ACE_NTOHL (0x49444c3a), 
00268         ACE_NTOHL (0x6f6d672e), 
00269         ACE_NTOHL (0x6f72672f), 
00270         ACE_NTOHL (0x434f5242), 
00271         ACE_NTOHL (0x412f5061), 
00272         ACE_NTOHL (0x72616d65), 
00273         ACE_NTOHL (0x7465724d), 
00274         ACE_NTOHL (0x6f64653a), 
00275         ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CORBA/ParameterMode:1.0
00276         14,
00277         ACE_NTOHL (0x50617261), 
00278         ACE_NTOHL (0x6d657465), 
00279         ACE_NTOHL (0x724d6f64), 
00280         ACE_NTOHL (0x65000000),  // name = ParameterMode
00281         3, // member count
00282         9,
00283         ACE_NTOHL (0x50415241), 
00284         ACE_NTOHL (0x4d5f494e), 
00285         ACE_NTOHL (0x0),  // name = PARAM_IN
00286         10,
00287         ACE_NTOHL (0x50415241), 
00288         ACE_NTOHL (0x4d5f4f55), 
00289         ACE_NTOHL (0x54000000),  // name = PARAM_OUT
00290         12,
00291         ACE_NTOHL (0x50415241), 
00292         ACE_NTOHL (0x4d5f494e), 
00293         ACE_NTOHL (0x4f555400),  // name = PARAM_INOUT
00294 
00295 
00296     0U,
00297 
00298 };
00299 
00300 static CORBA::TypeCode _tc_TAO_tc_Dynamic_ParameterList (
00301     CORBA::tk_alias,
00302     sizeof (_oc_Dynamic_ParameterList),
00303     (char *) &_oc_Dynamic_ParameterList,
00304     0,
00305     sizeof (Dynamic::ParameterList)
00306   );
00307 
00308 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00309 TAO_NAMESPACE_BEGIN (Dynamic)
00310 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ParameterList, &_tc_TAO_tc_Dynamic_ParameterList)
00311 TAO_NAMESPACE_END
00312 
00313 static const CORBA::Long _oc_Dynamic_ContextList[] =
00314 {
00315   TAO_ENCAP_BYTE_ORDER, // byte order
00316   28,
00317   ACE_NTOHL (0x49444c3a), 
00318   ACE_NTOHL (0x44796e61), 
00319   ACE_NTOHL (0x6d69632f), 
00320   ACE_NTOHL (0x436f6e74), 
00321   ACE_NTOHL (0x6578744c), 
00322   ACE_NTOHL (0x6973743a), 
00323   ACE_NTOHL (0x312e3000),  // repository ID = IDL:Dynamic/ContextList:1.0
00324   12,
00325   ACE_NTOHL (0x436f6e74), 
00326   ACE_NTOHL (0x6578744c), 
00327   ACE_NTOHL (0x69737400),  // name = ContextList
00328   CORBA::tk_alias, // typecode kind for typedefs
00329   80, // encapsulation length
00330     TAO_ENCAP_BYTE_ORDER, // byte order
00331     32,
00332     ACE_NTOHL (0x49444c3a), 
00333     ACE_NTOHL (0x6f6d672e), 
00334     ACE_NTOHL (0x6f72672f), 
00335     ACE_NTOHL (0x434f5242), 
00336     ACE_NTOHL (0x412f5374), 
00337     ACE_NTOHL (0x72696e67), 
00338     ACE_NTOHL (0x5365713a), 
00339     ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CORBA/StringSeq:1.0
00340     10,
00341     ACE_NTOHL (0x53747269), 
00342     ACE_NTOHL (0x6e675365), 
00343     ACE_NTOHL (0x71000000),  // name = StringSeq
00344     CORBA::tk_sequence, // typecode kind
00345     16, // encapsulation length
00346       TAO_ENCAP_BYTE_ORDER, // byte order
00347       CORBA::tk_string, 
00348       0U, // string length
00349       0U,
00350 
00351 
00352 };
00353 
00354 static CORBA::TypeCode _tc_TAO_tc_Dynamic_ContextList (
00355     CORBA::tk_alias,
00356     sizeof (_oc_Dynamic_ContextList),
00357     (char *) &_oc_Dynamic_ContextList,
00358     0,
00359     sizeof (Dynamic::ContextList)
00360   );
00361 
00362 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00363 TAO_NAMESPACE_BEGIN (Dynamic)
00364 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ContextList, &_tc_TAO_tc_Dynamic_ContextList)
00365 TAO_NAMESPACE_END
00366 
00367 static const CORBA::Long _oc_Dynamic_TypeCode[] =
00368 {
00369   TAO_ENCAP_BYTE_ORDER, // byte order
00370   25,
00371   ACE_NTOHL (0x49444c3a), 
00372   ACE_NTOHL (0x44796e61), 
00373   ACE_NTOHL (0x6d69632f), 
00374   ACE_NTOHL (0x54797065), 
00375   ACE_NTOHL (0x436f6465), 
00376   ACE_NTOHL (0x3a312e30), 
00377   ACE_NTOHL (0x0),  // repository ID = IDL:Dynamic/TypeCode:1.0
00378   9,
00379   ACE_NTOHL (0x54797065), 
00380   ACE_NTOHL (0x436f6465), 
00381   ACE_NTOHL (0x0),  // name = TypeCode
00382   CORBA::tk_TypeCode,
00383 
00384 };
00385 
00386 static CORBA::TypeCode _tc_TAO_tc_Dynamic_TypeCode (
00387     CORBA::tk_alias,
00388     sizeof (_oc_Dynamic_TypeCode),
00389     (char *) &_oc_Dynamic_TypeCode,
00390     0,
00391     sizeof (Dynamic::TypeCode)
00392   );
00393 
00394 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00395 TAO_NAMESPACE_BEGIN (Dynamic)
00396 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_TypeCode, &_tc_TAO_tc_Dynamic_TypeCode)
00397 TAO_NAMESPACE_END
00398 
00399 
00400 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00401 
00402 #if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CS_)
00403 #define __TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CS_
00404 
00405 // The Base_Sequence functions, please see tao/Sequence.h
00406 void
00407 Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_allocate_buffer (CORBA::ULong length)
00408 {
00409   CORBA::TypeCode **tmp = 0;
00410   tmp = _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::allocbuf (length);
00411   
00412   if (this->buffer_ != 0)
00413   {
00414     CORBA::TypeCode **old = ACE_reinterpret_cast (CORBA::TypeCode**, this->buffer_);
00415     for (CORBA::ULong i = 0; i < this->length_; ++i)
00416       {
00417         if (!this->release_)
00418           {
00419             tmp[i] = CORBA::TypeCode::_duplicate (old[i]);
00420           }
00421         else
00422           {
00423             tmp[i] = old[i];
00424           }
00425       }
00426     
00427     if (this->release_)
00428       {
00429         delete[] old;
00430       }
00431   }
00432   this->buffer_ = tmp;
00433 }
00434 
00435 void
00436 Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_deallocate_buffer (void)
00437 {
00438   if (this->buffer_ == 0 || this->release_ == 0)
00439     return;
00440   CORBA::TypeCode **tmp = ACE_reinterpret_cast (CORBA::TypeCode**, this->buffer_);
00441   
00442   for (CORBA::ULong i = 0; i < this->length_; ++i)
00443     {
00444       CORBA::release (tmp[i]);
00445       tmp[i] = CORBA::TypeCode::_nil ();
00446     }
00447   
00448   _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::freebuf (tmp);
00449   this->buffer_ = 0;
00450 }
00451 
00452 Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::~_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (void)
00453 {
00454   this->_deallocate_buffer ();
00455 }
00456 
00457 void
00458 Dynamic::_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList::_shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)
00459 {
00460   CORBA::TypeCode **tmp = ACE_reinterpret_cast (CORBA::TypeCode**, this->buffer_);
00461   
00462   for (CORBA::ULong i = nl; i < ol; ++i)
00463     {
00464       CORBA::release (tmp[i]);
00465       tmp[i] = CORBA::TypeCode::_nil ();
00466     }
00467 }
00468 
00469 
00470 #endif /* end #if !defined */
00471 
00472 
00473 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00474 
00475 #if !defined (_DYNAMIC_EXCEPTIONLIST_CS_)
00476 #define _DYNAMIC_EXCEPTIONLIST_CS_
00477 
00478 // *************************************************************
00479 // Dynamic::ExceptionList
00480 // *************************************************************
00481 
00482 Dynamic::ExceptionList::ExceptionList (void)
00483 {}
00484 Dynamic::ExceptionList::ExceptionList (CORBA::ULong max) // uses max size
00485   : 
00486 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00487 _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList
00488 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00489 TAO_Unbounded_Pseudo_Sequence<CORBA::TypeCode,CORBA::TypeCode_var>
00490 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00491  (max)
00492 {}
00493 Dynamic::ExceptionList::ExceptionList (CORBA::ULong max, CORBA::ULong length, CORBA::TypeCode_ptr *buffer, CORBA::Boolean release)
00494   : 
00495 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00496 _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList
00497 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00498 TAO_Unbounded_Pseudo_Sequence<CORBA::TypeCode,CORBA::TypeCode_var>
00499 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00500  (max, length, buffer, release)
00501 {}
00502 Dynamic::ExceptionList::ExceptionList (const ExceptionList &seq) // copy ctor
00503   : 
00504 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00505 _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList
00506 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00507 TAO_Unbounded_Pseudo_Sequence<CORBA::TypeCode,CORBA::TypeCode_var>
00508 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00509  (seq)
00510 {}
00511 Dynamic::ExceptionList::~ExceptionList (void) // dtor
00512 {}
00513 void Dynamic::ExceptionList::_tao_any_destructor (void *_tao_void_pointer)
00514 {
00515   ExceptionList *tmp = ACE_static_cast (ExceptionList*, _tao_void_pointer);
00516   delete tmp;
00517 }
00518 
00519 
00520 #endif /* end #if !defined */
00521 
00522 static const CORBA::Long _oc_Dynamic_ExceptionList[] =
00523 {
00524   TAO_ENCAP_BYTE_ORDER, // byte order
00525   30,
00526   ACE_NTOHL (0x49444c3a), 
00527   ACE_NTOHL (0x44796e61), 
00528   ACE_NTOHL (0x6d69632f), 
00529   ACE_NTOHL (0x45786365), 
00530   ACE_NTOHL (0x7074696f), 
00531   ACE_NTOHL (0x6e4c6973), 
00532   ACE_NTOHL (0x743a312e), 
00533   ACE_NTOHL (0x30000000),  // repository ID = IDL:Dynamic/ExceptionList:1.0
00534   14,
00535   ACE_NTOHL (0x45786365), 
00536   ACE_NTOHL (0x7074696f), 
00537   ACE_NTOHL (0x6e4c6973), 
00538   ACE_NTOHL (0x74000000),  // name = ExceptionList
00539   CORBA::tk_sequence, // typecode kind
00540   72, // encapsulation length
00541     TAO_ENCAP_BYTE_ORDER, // byte order
00542     CORBA::tk_alias, // typecode kind for typedefs
00543     56, // encapsulation length
00544       TAO_ENCAP_BYTE_ORDER, // byte order
00545       25,
00546       ACE_NTOHL (0x49444c3a), 
00547       ACE_NTOHL (0x44796e61), 
00548       ACE_NTOHL (0x6d69632f), 
00549       ACE_NTOHL (0x54797065), 
00550       ACE_NTOHL (0x436f6465), 
00551       ACE_NTOHL (0x3a312e30), 
00552       ACE_NTOHL (0x0),  // repository ID = IDL:Dynamic/TypeCode:1.0
00553       9,
00554       ACE_NTOHL (0x54797065), 
00555       ACE_NTOHL (0x436f6465), 
00556       ACE_NTOHL (0x0),  // name = TypeCode
00557       CORBA::tk_TypeCode,
00558 
00559 
00560     0U,
00561 
00562 };
00563 
00564 static CORBA::TypeCode _tc_TAO_tc_Dynamic_ExceptionList (
00565     CORBA::tk_alias,
00566     sizeof (_oc_Dynamic_ExceptionList),
00567     (char *) &_oc_Dynamic_ExceptionList,
00568     0,
00569     sizeof (Dynamic::ExceptionList)
00570   );
00571 
00572 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00573 TAO_NAMESPACE_BEGIN (Dynamic)
00574 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_ExceptionList, &_tc_TAO_tc_Dynamic_ExceptionList)
00575 TAO_NAMESPACE_END
00576 
00577 static const CORBA::Long _oc_Dynamic_RequestContext[] =
00578 {
00579   TAO_ENCAP_BYTE_ORDER, // byte order
00580   31,
00581   ACE_NTOHL (0x49444c3a), 
00582   ACE_NTOHL (0x44796e61), 
00583   ACE_NTOHL (0x6d69632f), 
00584   ACE_NTOHL (0x52657175), 
00585   ACE_NTOHL (0x65737443), 
00586   ACE_NTOHL (0x6f6e7465), 
00587   ACE_NTOHL (0x78743a31), 
00588   ACE_NTOHL (0x2e300000),  // repository ID = IDL:Dynamic/RequestContext:1.0
00589   15,
00590   ACE_NTOHL (0x52657175), 
00591   ACE_NTOHL (0x65737443), 
00592   ACE_NTOHL (0x6f6e7465), 
00593   ACE_NTOHL (0x78740000),  // name = RequestContext
00594   CORBA::tk_alias, // typecode kind for typedefs
00595   80, // encapsulation length
00596     TAO_ENCAP_BYTE_ORDER, // byte order
00597     32,
00598     ACE_NTOHL (0x49444c3a), 
00599     ACE_NTOHL (0x6f6d672e), 
00600     ACE_NTOHL (0x6f72672f), 
00601     ACE_NTOHL (0x434f5242), 
00602     ACE_NTOHL (0x412f5374), 
00603     ACE_NTOHL (0x72696e67), 
00604     ACE_NTOHL (0x5365713a), 
00605     ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CORBA/StringSeq:1.0
00606     10,
00607     ACE_NTOHL (0x53747269), 
00608     ACE_NTOHL (0x6e675365), 
00609     ACE_NTOHL (0x71000000),  // name = StringSeq
00610     CORBA::tk_sequence, // typecode kind
00611     16, // encapsulation length
00612       TAO_ENCAP_BYTE_ORDER, // byte order
00613       CORBA::tk_string, 
00614       0U, // string length
00615       0U,
00616 
00617 
00618 };
00619 
00620 static CORBA::TypeCode _tc_TAO_tc_Dynamic_RequestContext (
00621     CORBA::tk_alias,
00622     sizeof (_oc_Dynamic_RequestContext),
00623     (char *) &_oc_Dynamic_RequestContext,
00624     0,
00625     sizeof (Dynamic::RequestContext)
00626   );
00627 
00628 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00629 TAO_NAMESPACE_BEGIN (Dynamic)
00630 TAO_NAMESPACE_DEFINE (::CORBA::TypeCode_ptr, _tc_RequestContext, &_tc_TAO_tc_Dynamic_RequestContext)
00631 TAO_NAMESPACE_END
00632 
00633 
00634 // TAO_IDL - Generated from 
00635 // be/be_visitor_structure/any_op_cs.cpp:58
00636 
00637 // Copying insertion.
00638 void operator<<= (
00639     CORBA::Any &_tao_any,
00640     const Dynamic::Parameter &_tao_elem
00641   )
00642 {
00643   TAO_OutputCDR stream;
00644   
00645   if (stream << _tao_elem)
00646     {
00647       _tao_any._tao_replace (
00648           Dynamic::_tc_Parameter,
00649           TAO_ENCAP_BYTE_ORDER,
00650           stream.begin ()
00651         );
00652     }
00653 }
00654 
00655 // Non-copying insertion.
00656 void operator<<= (
00657     CORBA::Any &_tao_any,
00658     Dynamic::Parameter *_tao_elem
00659   )
00660 {
00661   TAO_OutputCDR stream;
00662   
00663   if (stream << *_tao_elem)
00664     {
00665       _tao_any._tao_replace (
00666           Dynamic::_tc_Parameter,
00667           TAO_ENCAP_BYTE_ORDER,
00668           stream.begin (),
00669           1,
00670           _tao_elem,
00671           Dynamic::Parameter::_tao_any_destructor
00672         );
00673     }
00674 }
00675 
00676 // Extraction to non-const pointer (deprecated).
00677 CORBA::Boolean operator>>= (
00678     const CORBA::Any &_tao_any,
00679     Dynamic::Parameter *&_tao_elem
00680   )
00681 {
00682   return _tao_any >>= ACE_const_cast (
00683       const Dynamic::Parameter *&,
00684       _tao_elem
00685     );
00686 }
00687 
00688 // Extraction to const pointer.
00689 CORBA::Boolean operator>>= (
00690     const CORBA::Any &_tao_any,
00691     const Dynamic::Parameter *&_tao_elem
00692   )
00693 {
00694   _tao_elem = 0;
00695   
00696   ACE_TRY_NEW_ENV
00697   {
00698     CORBA::TypeCode_var type = _tao_any.type ();
00699     
00700     CORBA::Boolean result =
00701       type->equivalent (
00702           Dynamic::_tc_Parameter
00703           ACE_ENV_ARG_PARAMETER
00704         );
00705     ACE_TRY_CHECK;
00706     
00707     if (result == 0)
00708       {
00709         return 0; // not equivalent
00710       }
00711     
00712     if (_tao_any.any_owns_data ())
00713       {
00714         _tao_elem = ACE_static_cast (
00715             const Dynamic::Parameter*,
00716             _tao_any.value ()
00717           );
00718         
00719         return 1;
00720       }
00721     else
00722       {
00723         Dynamic::Parameter *tmp;
00724         ACE_NEW_RETURN (
00725             tmp,
00726             Dynamic::Parameter,
00727             0
00728           );
00729         
00730         TAO_InputCDR stream (
00731             _tao_any._tao_get_cdr (),
00732             _tao_any._tao_byte_order ()
00733           );
00734         
00735         if (stream >> *tmp)
00736           {
00737             ((CORBA::Any *)&_tao_any)->_tao_replace (
00738                 Dynamic::_tc_Parameter,
00739                 1,
00740                 ACE_static_cast (void *, tmp),
00741                 Dynamic::Parameter::_tao_any_destructor
00742               );
00743             
00744             _tao_elem = tmp;
00745             return 1;
00746           }
00747         else
00748           {
00749             delete tmp;
00750           }
00751       }
00752   }
00753   ACE_CATCHANY
00754   {
00755   }
00756   ACE_ENDTRY;
00757   
00758   return 0;
00759 }
00760 
00761 
00762 // TAO_IDL - Generated from 
00763 // be/be_visitor_sequence/any_op_cs.cpp:61
00764 
00765 // Copying insertion.
00766 void operator<<= (
00767     CORBA::Any &_tao_any,
00768     const Dynamic::ParameterList &_tao_elem
00769   )
00770 {
00771   TAO_OutputCDR stream;
00772   
00773   if (stream << _tao_elem)
00774     {
00775       _tao_any._tao_replace (
00776           Dynamic::_tc_ParameterList,
00777           TAO_ENCAP_BYTE_ORDER,
00778           stream.begin ()
00779         );
00780     }
00781 }
00782 
00783 // Non-copying insertion.
00784 void operator<<= (
00785     CORBA::Any &_tao_any,
00786     Dynamic::ParameterList *_tao_elem
00787   )
00788 {
00789   TAO_OutputCDR stream;
00790   
00791   if (stream << *_tao_elem)
00792     {
00793       _tao_any._tao_replace (
00794           Dynamic::_tc_ParameterList,
00795           TAO_ENCAP_BYTE_ORDER,
00796           stream.begin (),
00797           1,
00798           _tao_elem,
00799           Dynamic::ParameterList::_tao_any_destructor
00800         );
00801     }
00802 }
00803 
00804 // Extraction to non-const pointer (deprecated).
00805 CORBA::Boolean operator>>= (
00806     const CORBA::Any &_tao_any,
00807     Dynamic::ParameterList *&_tao_elem
00808   )
00809 {
00810   return _tao_any >>= ACE_const_cast(
00811       const Dynamic::ParameterList*&,
00812       _tao_elem
00813     );
00814 }
00815 
00816 // Extraction to const pointer.
00817 CORBA::Boolean operator>>= (
00818     const CORBA::Any &_tao_any,
00819     const Dynamic::ParameterList *&_tao_elem
00820   )
00821 {
00822   _tao_elem = 0;
00823   
00824   ACE_TRY_NEW_ENV
00825   {
00826     CORBA::TypeCode_var type = _tao_any.type ();
00827     
00828     CORBA::Boolean result =
00829       type->equivalent (
00830           Dynamic::_tc_ParameterList
00831           ACE_ENV_ARG_PARAMETER
00832         );
00833     ACE_TRY_CHECK;
00834     
00835     if (!result)
00836       {
00837         return 0; // not equivalent
00838       }
00839     
00840     if (_tao_any.any_owns_data ())
00841       {
00842         _tao_elem = ACE_static_cast(
00843             const Dynamic::ParameterList*,
00844             _tao_any.value ()
00845           );
00846         
00847         return 1;
00848       }
00849     else
00850       {
00851         Dynamic::ParameterList *tmp = 0;
00852         ACE_NEW_RETURN (
00853             tmp,
00854             Dynamic::ParameterList,
00855             0
00856           );
00857         
00858         TAO_InputCDR stream (
00859             _tao_any._tao_get_cdr (),
00860             _tao_any._tao_byte_order ()
00861           );
00862         
00863         if (stream >> *tmp)
00864           {
00865             ((CORBA::Any *)&_tao_any)->_tao_replace (
00866                 Dynamic::_tc_ParameterList,
00867                 1,
00868                 ACE_static_cast (void *, tmp),
00869                 Dynamic::ParameterList::_tao_any_destructor
00870               );
00871             
00872             _tao_elem = tmp;
00873             return 1;
00874           }
00875         else
00876           {
00877             delete tmp;
00878           }
00879       }
00880   }
00881   ACE_CATCHANY
00882   {
00883   }
00884   ACE_ENDTRY;
00885   
00886   return 0;
00887 }
00888 
00889 
00890 // TAO_IDL - Generated from 
00891 // be/be_visitor_sequence/any_op_cs.cpp:61
00892 
00893 // Copying insertion.
00894 void operator<<= (
00895     CORBA::Any &_tao_any,
00896     const Dynamic::ExceptionList &_tao_elem
00897   )
00898 {
00899   TAO_OutputCDR stream;
00900   
00901   if (stream << _tao_elem)
00902     {
00903       _tao_any._tao_replace (
00904           Dynamic::_tc_ExceptionList,
00905           TAO_ENCAP_BYTE_ORDER,
00906           stream.begin ()
00907         );
00908     }
00909 }
00910 
00911 // Non-copying insertion.
00912 void operator<<= (
00913     CORBA::Any &_tao_any,
00914     Dynamic::ExceptionList *_tao_elem
00915   )
00916 {
00917   TAO_OutputCDR stream;
00918   
00919   if (stream << *_tao_elem)
00920     {
00921       _tao_any._tao_replace (
00922           Dynamic::_tc_ExceptionList,
00923           TAO_ENCAP_BYTE_ORDER,
00924           stream.begin (),
00925           1,
00926           _tao_elem,
00927           Dynamic::ExceptionList::_tao_any_destructor
00928         );
00929     }
00930 }
00931 
00932 // Extraction to non-const pointer (deprecated).
00933 CORBA::Boolean operator>>= (
00934     const CORBA::Any &_tao_any,
00935     Dynamic::ExceptionList *&_tao_elem
00936   )
00937 {
00938   return _tao_any >>= ACE_const_cast(
00939       const Dynamic::ExceptionList*&,
00940       _tao_elem
00941     );
00942 }
00943 
00944 // Extraction to const pointer.
00945 CORBA::Boolean operator>>= (
00946     const CORBA::Any &_tao_any,
00947     const Dynamic::ExceptionList *&_tao_elem
00948   )
00949 {
00950   _tao_elem = 0;
00951   
00952   ACE_TRY_NEW_ENV
00953   {
00954     CORBA::TypeCode_var type = _tao_any.type ();
00955     
00956     CORBA::Boolean result =
00957       type->equivalent (
00958           Dynamic::_tc_ExceptionList
00959           ACE_ENV_ARG_PARAMETER
00960         );
00961     ACE_TRY_CHECK;
00962     
00963     if (!result)
00964       {
00965         return 0; // not equivalent
00966       }
00967     
00968     if (_tao_any.any_owns_data ())
00969       {
00970         _tao_elem = ACE_static_cast(
00971             const Dynamic::ExceptionList*,
00972             _tao_any.value ()
00973           );
00974         
00975         return 1;
00976       }
00977     else
00978       {
00979         Dynamic::ExceptionList *tmp = 0;
00980         ACE_NEW_RETURN (
00981             tmp,
00982             Dynamic::ExceptionList,
00983             0
00984           );
00985         
00986         TAO_InputCDR stream (
00987             _tao_any._tao_get_cdr (),
00988             _tao_any._tao_byte_order ()
00989           );
00990         
00991         if (stream >> *tmp)
00992           {
00993             ((CORBA::Any *)&_tao_any)->_tao_replace (
00994                 Dynamic::_tc_ExceptionList,
00995                 1,
00996                 ACE_static_cast (void *, tmp),
00997                 Dynamic::ExceptionList::_tao_any_destructor
00998               );
00999             
01000             _tao_elem = tmp;
01001             return 1;
01002           }
01003         else
01004           {
01005             delete tmp;
01006           }
01007       }
01008   }
01009   ACE_CATCHANY
01010   {
01011   }
01012   ACE_ENDTRY;
01013   
01014   return 0;
01015 }
01016 
01017 CORBA::Boolean operator<< (
01018     TAO_OutputCDR &strm,
01019     const Dynamic::ParameterList &_tao_sequence
01020   )
01021 {
01022   if (strm << _tao_sequence.length ())
01023   {
01024     // encode all elements
01025     CORBA::Boolean _tao_marshal_flag = 1;
01026     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01027     {
01028       _tao_marshal_flag = (strm << _tao_sequence[i]);
01029     }
01030     return _tao_marshal_flag;
01031   }
01032   return 0; // error
01033 }
01034 
01035 CORBA::Boolean operator>> (
01036     TAO_InputCDR &strm,
01037     Dynamic::ParameterList &_tao_sequence
01038   )
01039 {
01040   CORBA::ULong _tao_seq_len;
01041   if (strm >> _tao_seq_len)
01042   {
01043     // Add a check to the length of the sequence
01044     // to make sure it does not exceed the length
01045     // of the stream. (See bug 1159.)
01046     if (_tao_seq_len > strm.length())
01047       return 0;
01048     // set the length of the sequence
01049     _tao_sequence.length (_tao_seq_len);
01050     // If length is 0 we return true.
01051     if (0 >= _tao_seq_len) 
01052       return 1;
01053     // retrieve all the elements
01054     CORBA::Boolean _tao_marshal_flag = 1;
01055     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01056     {
01057       _tao_marshal_flag = (strm >> _tao_sequence[i]);
01058     }
01059     return _tao_marshal_flag;
01060   }
01061   return 0; // error
01062 }
01063 
01064 CORBA::Boolean operator<< (
01065     TAO_OutputCDR &strm,
01066     const Dynamic::ExceptionList &_tao_sequence
01067   )
01068 {
01069   if (strm << _tao_sequence.length ())
01070   {
01071     // encode all elements
01072     CORBA::Boolean _tao_marshal_flag = 1;
01073     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01074     {
01075       _tao_marshal_flag = (strm << _tao_sequence[i].in ());
01076     }
01077     return _tao_marshal_flag;
01078   }
01079   return 0; // error
01080 }
01081 
01082 CORBA::Boolean operator>> (
01083     TAO_InputCDR &strm,
01084     Dynamic::ExceptionList &_tao_sequence
01085   )
01086 {
01087   CORBA::ULong _tao_seq_len;
01088   if (strm >> _tao_seq_len)
01089   {
01090     // Add a check to the length of the sequence
01091     // to make sure it does not exceed the length
01092     // of the stream. (See bug 1159.)
01093     if (_tao_seq_len > strm.length())
01094       return 0;
01095     // set the length of the sequence
01096     _tao_sequence.length (_tao_seq_len);
01097     // If length is 0 we return true.
01098     if (0 >= _tao_seq_len) 
01099       return 1;
01100     // retrieve all the elements
01101     CORBA::Boolean _tao_marshal_flag = 1;
01102     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01103     {
01104       _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
01105     }
01106     return _tao_marshal_flag;
01107   }
01108   return 0; // error
01109 }
01110 

Generated on Mon Jun 16 13:48:19 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002