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

DynamicC.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: DynamicC.h,v 1.1.1.2 2003/02/21 18:36:44 chad Exp $
00004 
00005 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00006 // TAO and the TAO IDL Compiler have been developed by:
00007 //       Center for Distributed Object Computing
00008 //       Washington University
00009 //       St. Louis, MO
00010 //       USA
00011 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00012 // and
00013 //       Distributed Object Computing Laboratory
00014 //       University of California at Irvine
00015 //       Irvine, CA
00016 //       USA
00017 //       http://doc.ece.uci.edu/
00018 //
00019 // Information about TAO is available at:
00020 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00021 
00022 #ifndef _TAO_IDL_DYNAMICC_H_
00023 #define _TAO_IDL_DYNAMICC_H_
00024 
00025 #include "ace/pre.h"
00026 #include "tao/corbafwd.h"
00027 
00028 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00029 # pragma once
00030 #endif /* ACE_LACKS_PRAGMA_ONCE */
00031 
00032 #include "tao/TAO_Export.h"
00033 #include "tao/Any.h"
00034 #include "tao/Sequence.h"
00035 
00036 #if defined (TAO_EXPORT_MACRO)
00037 #undef TAO_EXPORT_MACRO
00038 #endif
00039 #define TAO_EXPORT_MACRO TAO_Export
00040 
00041 #if defined (TAO_EXPORT_NESTED_CLASSES)
00042 #  if defined (TAO_EXPORT_NESTED_MACRO)
00043 #    undef TAO_EXPORT_NESTED_MACRO
00044 #  endif /* defined (TAO_EXPORT_NESTED_MACRO) */
00045 #  define TAO_EXPORT_NESTED_MACRO TAO_Export
00046 #endif /* TAO_EXPORT_NESTED_CLASSES */
00047 
00048 #if defined(_MSC_VER)
00049 #if (_MSC_VER >= 1200)
00050 #pragma warning(push)
00051 #endif /* _MSC_VER >= 1200 */
00052 #pragma warning(disable:4250)
00053 #endif /* _MSC_VER */
00054 
00055 #if defined (__BORLANDC__)
00056 #pragma option push -w-rvl -w-rch -w-ccc -w-inl
00057 #endif /* __BORLANDC__ */
00058 
00059 TAO_NAMESPACE  Dynamic
00060 {
00061   struct Parameter;
00062   class Parameter_var;
00063   
00064   struct TAO_Export Parameter
00065   {
00066     
00067 #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
00068     typedef Parameter_var _var_type;
00069 #endif /* ! __GNUC__ || g++ >= 2.8 */
00070 
00071     static void _tao_any_destructor (void*);
00072     
00073     CORBA::Any argument;
00074     CORBA::ParameterMode mode;
00075     
00076   };
00077   
00078   class TAO_Export Parameter_var
00079   {
00080   public:
00081     Parameter_var (void);
00082     Parameter_var (Parameter *);
00083     Parameter_var (const Parameter_var &);
00084     ~Parameter_var (void);
00085     
00086     Parameter_var &operator= (Parameter *);
00087     Parameter_var &operator= (const Parameter_var &);
00088     Parameter *operator-> (void);
00089     const Parameter *operator-> (void) const;
00090     
00091     operator const Parameter &() const;
00092     operator Parameter &();
00093     operator Parameter &() const;
00094     // Variable-size types only.
00095     operator Parameter *&();
00096     
00097     // in, inout, out, _retn 
00098     const Parameter &in (void) const;
00099     Parameter &inout (void);
00100     Parameter *&out (void);
00101     Parameter *_retn (void);
00102     Parameter *ptr (void) const;
00103   
00104   private:
00105     Parameter *ptr_;
00106   };
00107   
00108   class TAO_Export Parameter_out
00109   {
00110   public:
00111     Parameter_out (Parameter *&);
00112     Parameter_out (Parameter_var &);
00113     Parameter_out (const Parameter_out &);
00114     Parameter_out &operator= (const Parameter_out &);
00115     Parameter_out &operator= (Parameter *);
00116     operator Parameter *&();
00117     Parameter *&ptr (void);
00118     Parameter *operator-> (void);
00119     
00120   private:
00121     Parameter *&ptr_;
00122     // Assignment from T_var not allowed.
00123     void operator= (const Parameter_var &);
00124   };
00125   
00126   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Parameter;
00127   
00128   
00129 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00130   
00131 #if !defined (__TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CH_)
00132 #define __TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CH_
00133   
00134   class TAO_EXPORT_MACRO _TAO_Unbounded_Sequence_Dynamic_ParameterList
00135     : public TAO_Unbounded_Base_Sequence
00136   {
00137   public:
00138     // = Initialization and termination methods.
00139     _TAO_Unbounded_Sequence_Dynamic_ParameterList (void);
00140     _TAO_Unbounded_Sequence_Dynamic_ParameterList (CORBA::ULong maximum); 
00141     _TAO_Unbounded_Sequence_Dynamic_ParameterList (
00142         CORBA::ULong maximum,
00143         CORBA::ULong length,
00144         Parameter *data,
00145         CORBA::Boolean release = 0
00146       );
00147     _TAO_Unbounded_Sequence_Dynamic_ParameterList (
00148         const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs
00149       );
00150     _TAO_Unbounded_Sequence_Dynamic_ParameterList &operator= (
00151         const _TAO_Unbounded_Sequence_Dynamic_ParameterList &rhs
00152       );
00153     virtual ~_TAO_Unbounded_Sequence_Dynamic_ParameterList (void);
00154     
00155     // = Accessors.
00156     Parameter &operator[] (CORBA::ULong i);
00157     const Parameter &operator[] (CORBA::ULong i) const;
00158     
00159     // = Static operations.
00160     static Parameter *allocbuf (CORBA::ULong size);
00161     static void freebuf (Parameter *buffer);
00162     
00163     // Implement the TAO_Base_Sequence methods (see Sequence.h)
00164     virtual void _allocate_buffer (CORBA::ULong length);
00165     virtual void _deallocate_buffer (void);
00166     Parameter *get_buffer (CORBA::Boolean orphan = 0);
00167     const Parameter *get_buffer (void) const;
00168     void replace (
00169         CORBA::ULong max,
00170         CORBA::ULong length,
00171         Parameter *data,
00172         CORBA::Boolean release
00173       );
00174   };
00175   
00176 #endif /* end #if !defined */
00177   
00178   
00179 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00180   
00181 #if !defined (_DYNAMIC_PARAMETERLIST_CH_)
00182 #define _DYNAMIC_PARAMETERLIST_CH_
00183   
00184   class ParameterList;
00185   class ParameterList_var;
00186   
00187   // *************************************************************
00188   // ParameterList
00189   // *************************************************************
00190   
00191   class TAO_Export ParameterList : public 
00192 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00193   _TAO_Unbounded_Sequence_Dynamic_ParameterList
00194 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00195   TAO_Unbounded_Sequence<Parameter>
00196 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00197   {
00198   public:
00199     ParameterList (void); // default ctor
00200     ParameterList (CORBA::ULong max); // uses max size
00201     ParameterList (
00202         CORBA::ULong max, 
00203         CORBA::ULong length, 
00204         Parameter *buffer, 
00205         CORBA::Boolean release = 0
00206       );
00207     ParameterList (const ParameterList &); // copy ctor
00208     ~ParameterList (void);
00209     static void _tao_any_destructor (void*);
00210     
00211 #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
00212     typedef ParameterList_var _var_type;
00213 #endif /* ! __GNUC__ || g++ >= 2.8 */
00214     
00215     
00216   };
00217   
00218 #endif /* end #if !defined */
00219   
00220   
00221 #if !defined (_DYNAMIC_PARAMETERLIST___VAR_CH_)
00222 #define _DYNAMIC_PARAMETERLIST___VAR_CH_
00223   
00224   // *************************************************************
00225   // class Dynamic::ParameterList_var
00226   // *************************************************************
00227   
00228   class TAO_Export ParameterList_var
00229   {
00230   public:
00231     ParameterList_var (void);
00232     ParameterList_var (ParameterList *);
00233     ParameterList_var (const ParameterList_var &);
00234     ~ParameterList_var (void);
00235     
00236     ParameterList_var &operator= (ParameterList *);
00237     ParameterList_var &operator= (const ParameterList_var &);
00238     ParameterList *operator-> (void);
00239     const ParameterList *operator-> (void) const;
00240     
00241     operator const ParameterList &() const;
00242     operator ParameterList &();
00243     operator ParameterList &() const;
00244     operator ParameterList *&(); // variable-size base types only
00245     
00246     Parameter & operator[] (CORBA::ULong index);
00247     const Parameter & operator[] (CORBA::ULong index) const;
00248     
00249     // in, inout, out, _retn 
00250     const ParameterList &in (void) const;
00251     ParameterList &inout (void);
00252     ParameterList *&out (void);
00253     ParameterList *_retn (void);
00254     ParameterList *ptr (void) const;
00255   
00256   private:
00257     ParameterList *ptr_;
00258   };
00259   
00260   
00261 #endif /* end #if !defined */
00262   
00263   
00264 #if !defined (_DYNAMIC_PARAMETERLIST___OUT_CH_)
00265 #define _DYNAMIC_PARAMETERLIST___OUT_CH_
00266   
00267   class TAO_Export ParameterList_out
00268   {
00269   public:
00270     ParameterList_out (ParameterList *&);
00271     ParameterList_out (ParameterList_var &);
00272     ParameterList_out (const ParameterList_out &);
00273     ParameterList_out &operator= (const ParameterList_out &);
00274     ParameterList_out &operator= (ParameterList *);
00275     operator ParameterList *&();
00276     ParameterList *&ptr (void);
00277     ParameterList *operator-> (void);
00278     Parameter & operator[] (CORBA::ULong index);
00279   
00280   private:
00281     ParameterList *&ptr_;
00282     // Assignment from T_var not allowed.
00283     void operator= (const ParameterList_var &);
00284   };
00285   
00286   
00287 #endif /* end #if !defined */
00288   
00289   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ParameterList;
00290   
00291   typedef CORBA::StringSeq ContextList;
00292   typedef CORBA::StringSeq_var ContextList_var;
00293   typedef CORBA::StringSeq_out ContextList_out;
00294   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ContextList;
00295   
00296   typedef CORBA::TypeCode TypeCode;
00297   typedef CORBA::TypeCode_ptr TypeCode_ptr;
00298   typedef CORBA::TypeCode_var TypeCode_var;
00299   typedef CORBA::TypeCode_out TypeCode_out;
00300   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TypeCode;
00301   
00302   
00303 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00304   
00305 #if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CH_)
00306 #define __TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CH_
00307   
00308   class TAO_EXPORT_MACRO _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList
00309     : public TAO_Unbounded_Base_Sequence
00310   {
00311   public:
00312     // = Initialization and termination methods.
00313     _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (void);
00314     _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (CORBA::ULong maximum);
00315     _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (
00316         CORBA::ULong maximum,
00317         CORBA::ULong length,
00318         CORBA::TypeCode* *value,
00319         CORBA::Boolean release = 0
00320       );
00321     _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (
00322         const _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList &rhs
00323       );
00324     _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList &operator= (
00325         const _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList &rhs
00326       );
00327     virtual ~_TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList (void);
00328     
00329     // = Accessors.
00330     TAO_Pseudo_Object_Manager<Dynamic::TypeCode,Dynamic::TypeCode_var> operator[] (CORBA::ULong index) const;
00331     
00332     // = Static operations.
00333     static CORBA::TypeCode **allocbuf (CORBA::ULong nelems);
00334     static void freebuf (CORBA::TypeCode **buffer);
00335     
00336     // Implement the TAO_Base_Sequence methods (see Sequence.h)
00337     virtual void _allocate_buffer (CORBA::ULong length);
00338     virtual void _deallocate_buffer (void);
00339     CORBA::TypeCode* *get_buffer (CORBA::Boolean orphan = 0);
00340     const CORBA::TypeCode* *get_buffer (void) const;
00341     virtual void _shrink_buffer (
00342         CORBA::ULong nl,
00343         CORBA::ULong ol
00344       );
00345     
00346     
00347   };
00348   
00349 #endif /* end #if !defined */
00350   
00351   
00352 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00353   
00354 #if !defined (_DYNAMIC_EXCEPTIONLIST_CH_)
00355 #define _DYNAMIC_EXCEPTIONLIST_CH_
00356   
00357   class ExceptionList;
00358   class ExceptionList_var;
00359   
00360   // *************************************************************
00361   // ExceptionList
00362   // *************************************************************
00363   
00364   class TAO_Export ExceptionList : public 
00365 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00366   _TAO_Unbounded_Object_Sequence_Dynamic_ExceptionList
00367 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00368   TAO_Unbounded_Pseudo_Sequence<CORBA::TypeCode,CORBA::TypeCode_var>
00369 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */ 
00370   {
00371   public:
00372     ExceptionList (void); // default ctor
00373     ExceptionList (CORBA::ULong max); // uses max size
00374     ExceptionList (
00375         CORBA::ULong max, 
00376         CORBA::ULong length, 
00377         CORBA::TypeCode_ptr *buffer, 
00378         CORBA::Boolean release = 0
00379       );
00380     ExceptionList (const ExceptionList &); // copy ctor
00381     ~ExceptionList (void);
00382     static void _tao_any_destructor (void*);
00383     
00384 #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
00385     typedef ExceptionList_var _var_type;
00386 #endif /* ! __GNUC__ || g++ >= 2.8 */
00387     
00388     
00389   };
00390   
00391 #endif /* end #if !defined */
00392   
00393   
00394 #if !defined (_DYNAMIC_EXCEPTIONLIST___VAR_CH_)
00395 #define _DYNAMIC_EXCEPTIONLIST___VAR_CH_
00396   
00397   // *************************************************************
00398   // class Dynamic::ExceptionList_var
00399   // *************************************************************
00400   
00401   class TAO_Export ExceptionList_var
00402   {
00403   public:
00404     ExceptionList_var (void);
00405     ExceptionList_var (ExceptionList *);
00406     ExceptionList_var (const ExceptionList_var &);
00407     ~ExceptionList_var (void);
00408     
00409     ExceptionList_var &operator= (ExceptionList *);
00410     ExceptionList_var &operator= (const ExceptionList_var &);
00411     ExceptionList *operator-> (void);
00412     const ExceptionList *operator-> (void) const;
00413     
00414     operator const ExceptionList &() const;
00415     operator ExceptionList &();
00416     operator ExceptionList &() const;
00417     operator ExceptionList *&(); // variable-size base types only
00418     
00419     TAO_Pseudo_Object_Manager<TypeCode,TypeCode_var> operator[] (CORBA::ULong index);
00420     
00421     // in, inout, out, _retn 
00422     const ExceptionList &in (void) const;
00423     ExceptionList &inout (void);
00424     ExceptionList *&out (void);
00425     ExceptionList *_retn (void);
00426     ExceptionList *ptr (void) const;
00427   
00428   private:
00429     ExceptionList *ptr_;
00430   };
00431   
00432   
00433 #endif /* end #if !defined */
00434   
00435   
00436 #if !defined (_DYNAMIC_EXCEPTIONLIST___OUT_CH_)
00437 #define _DYNAMIC_EXCEPTIONLIST___OUT_CH_
00438   
00439   class TAO_Export ExceptionList_out
00440   {
00441   public:
00442     ExceptionList_out (ExceptionList *&);
00443     ExceptionList_out (ExceptionList_var &);
00444     ExceptionList_out (const ExceptionList_out &);
00445     ExceptionList_out &operator= (const ExceptionList_out &);
00446     ExceptionList_out &operator= (ExceptionList *);
00447     operator ExceptionList *&();
00448     ExceptionList *&ptr (void);
00449     ExceptionList *operator-> (void);
00450     TAO_Pseudo_Object_Manager<TypeCode,TypeCode_var> operator[] (CORBA::ULong index);
00451   
00452   private:
00453     ExceptionList *&ptr_;
00454     // Assignment from T_var not allowed.
00455     void operator= (const ExceptionList_var &);
00456   };
00457   
00458   
00459 #endif /* end #if !defined */
00460   
00461   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ExceptionList;
00462   
00463   typedef CORBA::StringSeq RequestContext;
00464   typedef CORBA::StringSeq_var RequestContext_var;
00465   typedef CORBA::StringSeq_out RequestContext_out;
00466   TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_RequestContext;
00467   
00468   
00469 }
00470 TAO_NAMESPACE_CLOSE // module Dynamic
00471 
00472 TAO_Export void operator<<= (CORBA::Any &, const Dynamic::Parameter &); // copying version
00473 TAO_Export void operator<<= (CORBA::Any &, Dynamic::Parameter*); // noncopying version
00474 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, Dynamic::Parameter *&); // deprecated
00475 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Dynamic::Parameter *&);
00476 TAO_Export void operator<<= (CORBA::Any &, const Dynamic::ParameterList &); // copying version
00477 TAO_Export void operator<<= (CORBA::Any &, Dynamic::ParameterList*); // noncopying version
00478 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, Dynamic::ParameterList *&); // deprecated
00479 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Dynamic::ParameterList *&);
00480 TAO_Export void operator<<= (CORBA::Any &, const Dynamic::ExceptionList &); // copying version
00481 TAO_Export void operator<<= (CORBA::Any &, Dynamic::ExceptionList*); // noncopying version
00482 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, Dynamic::ExceptionList *&); // deprecated
00483 TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Dynamic::ExceptionList *&);
00484 
00485 #ifndef __ACE_INLINE__
00486 
00487 TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const Dynamic::Parameter &);
00488 TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, Dynamic::Parameter &);
00489 
00490 #if !defined _TAO_CDR_OP_Dynamic_ParameterList_H_
00491 #define _TAO_CDR_OP_Dynamic_ParameterList_H_
00492 
00493 TAO_Export CORBA::Boolean operator<< (
00494     TAO_OutputCDR &,
00495     const Dynamic::ParameterList &
00496   );
00497 TAO_Export CORBA::Boolean operator>> (
00498     TAO_InputCDR &,
00499     Dynamic::ParameterList &
00500   );
00501 
00502 #endif /* _TAO_CDR_OP_Dynamic_ParameterList_H_ */
00503 
00504 
00505 #if !defined _TAO_CDR_OP_Dynamic_ExceptionList_H_
00506 #define _TAO_CDR_OP_Dynamic_ExceptionList_H_
00507 
00508 TAO_Export CORBA::Boolean operator<< (
00509     TAO_OutputCDR &,
00510     const Dynamic::ExceptionList &
00511   );
00512 TAO_Export CORBA::Boolean operator>> (
00513     TAO_InputCDR &,
00514     Dynamic::ExceptionList &
00515   );
00516 
00517 #endif /* _TAO_CDR_OP_Dynamic_ExceptionList_H_ */
00518 
00519 
00520 #endif /* __ACE_INLINE__ */
00521 
00522 
00523 #if defined (__ACE_INLINE__)
00524 #include "DynamicC.i"
00525 #endif /* defined INLINE */
00526 
00527 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
00528 #pragma warning(pop)
00529 #endif /* _MSC_VER */
00530 
00531 #if defined (__BORLANDC__)
00532 #pragma option pop
00533 #endif /* __BORLANDC__ */
00534 
00535 #include "ace/post.h"
00536 #endif /* ifndef */

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