PaCO++  0.05
BasicBCIdl.h
Go to the documentation of this file.
00001 // This file is generated by omniidl (C++ backend)- omniORB_4_0. Do not edit.
00002 #ifndef __BasicBCIdl_hh__
00003 #define __BasicBCIdl_hh__
00004 
00005 #ifndef USE_omniORB_logStream
00006 #define USE_omniORB_logStream
00007 #endif
00008 
00009 #ifndef __CORBA_H_EXTERNAL_GUARD__
00010 #include <omniORB4/CORBA.h>
00011 #endif
00012 
00013 #ifndef  USE_core_stub_in_nt_dll
00014 # define USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00015 #endif
00016 #ifndef  USE_dyn_stub_in_nt_dll
00017 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00018 #endif
00019 
00020 
00021 
00022 
00023 
00024 
00025 #ifdef USE_stub_in_nt_dll
00026 #ifndef USE_core_stub_in_nt_dll
00027 #define USE_core_stub_in_nt_dll
00028 #endif
00029 #ifndef USE_dyn_stub_in_nt_dll
00030 #define USE_dyn_stub_in_nt_dll
00031 #endif
00032 #endif
00033 
00034 #ifdef _core_attr
00035 # error "A local CPP macro _core_attr has already been defined."
00036 #else
00037 # ifdef  USE_core_stub_in_nt_dll
00038 #  define _core_attr _OMNIORB_NTDLL_IMPORT
00039 # else
00040 #  define _core_attr
00041 # endif
00042 #endif
00043 
00044 #ifdef _dyn_attr
00045 # error "A local CPP macro _dyn_attr has already been defined."
00046 #else
00047 # ifdef  USE_dyn_stub_in_nt_dll
00048 #  define _dyn_attr _OMNIORB_NTDLL_IMPORT
00049 # else
00050 #  define _dyn_attr
00051 # endif
00052 #endif
00053 
00054 
00055 
00056 
00057 
00058 _CORBA_MODULE BasicBCLib
00059 
00060 _CORBA_MODULE_BEG
00061 
00062   class ids_t_var;
00063 
00064   class ids_t : public _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 >  {
00065   public:
00066     typedef ids_t_var _var_type;
00067     inline ids_t() {}
00068     inline ids_t(const ids_t& _s)
00069       : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_s) {}
00070 
00071     inline ids_t(_CORBA_ULong _max)
00072       : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_max) {}
00073     inline ids_t(_CORBA_ULong _max, _CORBA_ULong _len, CORBA::ULong* _val, _CORBA_Boolean _rel=0)
00074       : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_max, _len, _val, _rel) {}
00075 
00076   
00077 
00078     inline ids_t& operator = (const ids_t& _s) {
00079       _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > ::operator=(_s);
00080       return *this;
00081     }
00082   };
00083 
00084   class ids_t_out;
00085 
00086   class ids_t_var {
00087   public:
00088     inline ids_t_var() : _pd_seq(0) {}
00089     inline ids_t_var(ids_t* _s) : _pd_seq(_s) {}
00090     inline ids_t_var(const ids_t_var& _s) {
00091       if( _s._pd_seq )  _pd_seq = new ids_t(*_s._pd_seq);
00092       else              _pd_seq = 0;
00093     }
00094     inline ~ids_t_var() { if( _pd_seq )  delete _pd_seq; }
00095       
00096     inline ids_t_var& operator = (ids_t* _s) {
00097       if( _pd_seq )  delete _pd_seq;
00098       _pd_seq = _s;
00099       return *this;
00100     }
00101     inline ids_t_var& operator = (const ids_t_var& _s) {
00102       if( _s._pd_seq ) {
00103         if( !_pd_seq )  _pd_seq = new ids_t;
00104         *_pd_seq = *_s._pd_seq;
00105       } else if( _pd_seq ) {
00106         delete _pd_seq;
00107         _pd_seq = 0;
00108       }
00109       return *this;
00110     }
00111     inline CORBA::ULong& operator [] (_CORBA_ULong _s) {
00112       return (*_pd_seq)[_s];
00113     }
00114 
00115   
00116 
00117     inline ids_t* operator -> () { return _pd_seq; }
00118 #if defined(__GNUG__)
00119     inline operator ids_t& () const { return *_pd_seq; }
00120 #else
00121     inline operator const ids_t& () const { return *_pd_seq; }
00122     inline operator ids_t& () { return *_pd_seq; }
00123 #endif
00124       
00125     inline const ids_t& in() const { return *_pd_seq; }
00126     inline ids_t&       inout()    { return *_pd_seq; }
00127     inline ids_t*&      out() {
00128       if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
00129       return _pd_seq;
00130     }
00131     inline ids_t* _retn() { ids_t* tmp = _pd_seq; _pd_seq = 0; return tmp; }
00132       
00133     friend class ids_t_out;
00134     
00135   private:
00136     ids_t* _pd_seq;
00137   };
00138 
00139   class ids_t_out {
00140   public:
00141     inline ids_t_out(ids_t*& _s) : _data(_s) { _data = 0; }
00142     inline ids_t_out(ids_t_var& _s)
00143       : _data(_s._pd_seq) { _s = (ids_t*) 0; }
00144     inline ids_t_out(const ids_t_out& _s) : _data(_s._data) {}
00145     inline ids_t_out& operator = (const ids_t_out& _s) {
00146       _data = _s._data;
00147       return *this;
00148     }
00149     inline ids_t_out& operator = (ids_t* _s) {
00150       _data = _s;
00151       return *this;
00152     }
00153     inline operator ids_t*&()  { return _data; }
00154     inline ids_t*& ptr()       { return _data; }
00155     inline ids_t* operator->() { return _data; }
00156 
00157     inline CORBA::ULong& operator [] (_CORBA_ULong _i) {
00158       return (*_data)[_i];
00159     }
00160 
00161   
00162 
00163     ids_t*& _data;
00164 
00165   private:
00166     ids_t_out();
00167     ids_t_out& operator=(const ids_t_var&);
00168   };
00169 
00170   struct BasicBCDescr {
00171     typedef _CORBA_ConstrType_Variable_Var<BasicBCDescr> _var_type;
00172 
00173     
00174     CORBA::ULong glen;
00175 
00176     CORBA::ULong bsz;
00177 
00178     ids_t ids;
00179 
00180   
00181 
00182     void operator>>= (cdrStream &) const;
00183     void operator<<= (cdrStream &);
00184   };
00185 
00186   typedef BasicBCDescr::_var_type BasicBCDescr_var;
00187 
00188   typedef _CORBA_ConstrType_Variable_OUT_arg< BasicBCDescr,BasicBCDescr_var > BasicBCDescr_out;
00189 
00190 _CORBA_MODULE_END
00191 
00192 
00193 
00194 _CORBA_MODULE POA_BasicBCLib
00195 _CORBA_MODULE_BEG
00196 
00197 _CORBA_MODULE_END
00198 
00199 
00200 
00201 
00202 
00203 #undef _core_attr
00204 #undef _dyn_attr
00205 
00206 
00207 
00208 
00209 
00210 #ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00211 # undef  USE_core_stub_in_nt_dll
00212 # undef  USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00213 #endif
00214 #ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00215 # undef  USE_dyn_stub_in_nt_dll
00216 # undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
00217 #endif
00218 
00219 #endif  // __BasicBCIdl_hh__
00220