00001
00002 #ifndef __rock_hh__
00003 #define __rock_hh__
00004
00005 #ifndef __CORBA_H_EXTERNAL_GUARD__
00006 #include <omniORB4/CORBA.h>
00007 #endif
00008
00009 #ifndef USE_stub_in_nt_dll
00010 # define USE_stub_in_nt_dll_NOT_DEFINED_rock
00011 #endif
00012 #ifndef USE_core_stub_in_nt_dll
00013 # define USE_core_stub_in_nt_dll_NOT_DEFINED_rock
00014 #endif
00015 #ifndef USE_dyn_stub_in_nt_dll
00016 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_rock
00017 #endif
00018
00019
00020
00021 #ifndef __corbaidl_hh_EXTERNAL_GUARD__
00022 #define __corbaidl_hh_EXTERNAL_GUARD__
00023 #include "corbaidl.hh"
00024 #endif
00025 #ifndef __boxes_hh_EXTERNAL_GUARD__
00026 #define __boxes_hh_EXTERNAL_GUARD__
00027 #include "boxes.hh"
00028 #endif
00029 #ifndef __common_hh_EXTERNAL_GUARD__
00030 #define __common_hh_EXTERNAL_GUARD__
00031 #include "common.hh"
00032 #endif
00033
00034
00035
00036 #ifdef USE_stub_in_nt_dll
00037 # ifndef USE_core_stub_in_nt_dll
00038 # define USE_core_stub_in_nt_dll
00039 # endif
00040 # ifndef USE_dyn_stub_in_nt_dll
00041 # define USE_dyn_stub_in_nt_dll
00042 # endif
00043 #endif
00044
00045 #ifdef _core_attr
00046 # error "A local CPP macro _core_attr has already been defined."
00047 #else
00048 # ifdef USE_core_stub_in_nt_dll
00049 # define _core_attr _OMNIORB_NTDLL_IMPORT
00050 # else
00051 # define _core_attr
00052 # endif
00053 #endif
00054
00055 #ifdef _dyn_attr
00056 # error "A local CPP macro _dyn_attr has already been defined."
00057 #else
00058 # ifdef USE_dyn_stub_in_nt_dll
00059 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
00060 # else
00061 # define _dyn_attr
00062 # endif
00063 #endif
00064
00065
00066
00067
00068
00069 _CORBA_MODULE rock
00070
00071 _CORBA_MODULE_BEG
00072
00073 struct RockStatus {
00074 typedef _CORBA_ConstrType_Variable_Var<RockStatus> _var_type;
00075
00076
00077 ::CORBA::LongLong timeCreated;
00078
00079 ::CORBA::LongLong timeLastAccessed;
00080
00081 ::CORBA::String_member status;
00082
00083 ::CORBA::String_member ior;
00084
00085 ::CORBA::Long pid;
00086
00087 ::CORBA::Long identifier;
00088
00089 common::ClientData client;
00090
00091
00092
00093 void operator>>= (cdrStream &) const;
00094 void operator<<= (cdrStream &);
00095 };
00096
00097 typedef RockStatus::_var_type RockStatus_var;
00098
00099 typedef _CORBA_ConstrType_Variable_OUT_arg< RockStatus,RockStatus_var > RockStatus_out;
00100
00101 #ifndef __rock_mdRock__
00102 #define __rock_mdRock__
00103
00104 class dRock;
00105 class _objref_dRock;
00106 class _impl_dRock;
00107
00108 typedef _objref_dRock* dRock_ptr;
00109 typedef dRock_ptr dRockRef;
00110
00111 class dRock_Helper {
00112 public:
00113 typedef dRock_ptr _ptr_type;
00114
00115 static _ptr_type _nil();
00116 static _CORBA_Boolean is_nil(_ptr_type);
00117 static void release(_ptr_type);
00118 static void duplicate(_ptr_type);
00119 static void marshalObjRef(_ptr_type, cdrStream&);
00120 static _ptr_type unmarshalObjRef(cdrStream&);
00121 };
00122
00123 typedef _CORBA_ObjRef_Var<_objref_dRock, dRock_Helper> dRock_var;
00124 typedef _CORBA_ObjRef_OUT_arg<_objref_dRock,dRock_Helper > dRock_out;
00125
00126 #endif
00127
00128
00129 class dRock {
00130 public:
00131
00132 typedef dRock_ptr _ptr_type;
00133 typedef dRock_var _var_type;
00134
00135 static _ptr_type _duplicate(_ptr_type);
00136 static _ptr_type _narrow(::CORBA::Object_ptr);
00137 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
00138
00139 static _ptr_type _nil();
00140
00141 static inline void _marshalObjRef(_ptr_type, cdrStream&);
00142
00143 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
00144 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
00145 if (o)
00146 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
00147 else
00148 return _nil();
00149 }
00150
00151 static _core_attr const char* _PD_repoId;
00152
00153
00154 enum fO2Type { fo2_none, fo2_hm, fo2_nno, fo2_qfm, fo2_iw };
00155 typedef fO2Type& fO2Type_out;
00156
00157 enum findRockLiquidusStatus { frl_success, frl_max_t, frl_min_t, frl_time };
00158 typedef findRockLiquidusStatus& findRockLiquidusStatus_out;
00159
00160 enum equilibrateStatus { equil_success, equil_quad_max, equil_lin_zero, equil_lin_max, equil_sat_max, equil_add_drop_max, equil_add_liquid_1, equil_add_liquid_2, equil_add_liquid_3, equil_rank, equil_solidus, equil_phase_rule, equil_time };
00161 typedef equilibrateStatus& equilibrateStatus_out;
00162
00163
00164 };
00165
00166 class _objref_dRock :
00167 public virtual ::CORBA::Object,
00168 public virtual omniObjRef
00169 {
00170 public:
00171 void setTk(::CORBA::Double ltk);
00172 void setPa(::CORBA::Double lpa);
00173 void setlogfo2(::rock::dRock::fO2Type mode, ::CORBA::Double delta);
00174 void supressPhase(::CORBA::Short iphase);
00175 void enablePhase(::CORBA::Short iphase);
00176 void setIsenthalpic(::CORBA::Boolean i);
00177 void setIsentropic(::CORBA::Boolean i);
00178 void setIsochoric(::CORBA::Boolean i);
00179 void setBulkCompM(const ::CORBA::DoubleSeq& bc);
00180 void setBulkCompW(const ::CORBA::DoubleSeq& bc);
00181 void fractionateSolids(::CORBA::Double scale);
00182 void setVolume(::CORBA::Double v);
00183 void setEnthalpy(::CORBA::Double h);
00184 void setEntropy(::CORBA::Double s);
00185 ::CORBA::Double getTk();
00186 ::CORBA::Double getPa();
00187 ::CORBA::Short getNcomp();
00188 ::CORBA::Short getNLiqComp();
00189 ::CORBA::Short getNSolPhases();
00190 char* getSolPhaseName(::CORBA::Short i);
00191 char* getSolPhaseFormula(::CORBA::Short i, ::CORBA::Short j);
00192 ::CORBA::Short getNSolComp(::CORBA::Short i);
00193 char* getSolPhaseCompName(::CORBA::Short i, ::CORBA::Short j);
00194 char* getSolPhaseCompFormula(::CORBA::Short i, ::CORBA::Short j);
00195 char* getCompName(::CORBA::Short i);
00196 char* getLiqCompName(::CORBA::Short i);
00197 CORBA::DoubleSeq* getLiqComp();
00198 CORBA::DoubleSeq* getLiqCompWt();
00199 CORBA::DoubleSeq* getLiqMu();
00200 CORBA::DoubleSeq* getLiqActivity();
00201 ::CORBA::Short getNSatSolid();
00202 CORBA::ShortSeq* getSatSolidList();
00203 ::CORBA::Short getSolComp(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out sx);
00204 ::CORBA::Short getSolCompWt(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out sx);
00205 ::CORBA::Short getSolMu(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out smu);
00206 ::CORBA::Double getAffinity(::CORBA::Short iphase, ::CORBA::DoubleSeq_out x);
00207 ::CORBA::Short getSolVbar(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out svbar);
00208 ::CORBA::Double getlogfo2();
00209 ::CORBA::Double getlogfo2relative(::rock::dRock::fO2Type mode);
00210 CORBA::DoubleSeq* getBulkCompM();
00211 CORBA::DoubleSeq* getBulkCompW();
00212 ::CORBA::Double getLiquidMass();
00213 ::CORBA::Double getSolidMass();
00214 ::CORBA::Double getSolPhaseMass(::CORBA::Short iphase, ::CORBA::Short instance);
00215 ::CORBA::Double getVolume();
00216 ::CORBA::Double getSolidGibbsFreeEnergyTotal();
00217 ::CORBA::Double getSolidEnthalpyTotal();
00218 ::CORBA::Double getSolidEntropyTotal();
00219 ::CORBA::Double getSolidHeatCapacityTotal();
00220 ::CORBA::Double getSolidVolumeTotal();
00221 ::CORBA::Double getSolidGibbsFreeEnergy(::CORBA::Short iphase, ::CORBA::Short instance);
00222 ::CORBA::Double getSolidEnthalpy(::CORBA::Short iphase, ::CORBA::Short instance);
00223 ::CORBA::Double getSolidEntropy(::CORBA::Short iphase, ::CORBA::Short instance);
00224 ::CORBA::Double getSolidHeatCapacity(::CORBA::Short iphase, ::CORBA::Short instance);
00225 ::CORBA::Double getSolidVolume(::CORBA::Short iphase, ::CORBA::Short instance);
00226 ::CORBA::Double getSoliddVdT(::CORBA::Short iphase, ::CORBA::Short instance);
00227 ::CORBA::Double getSoliddVdP(::CORBA::Short iphase, ::CORBA::Short instance);
00228 ::CORBA::Double getDeltaOxygen();
00229 ::CORBA::Double getOxygenGibbsFreeEnergy();
00230 ::CORBA::Double getOxygenEnthalpy();
00231 ::CORBA::Double getOxygenEntropy();
00232 ::CORBA::Double getOxygenHeatCapacity();
00233 ::CORBA::Double getOxygenVolume();
00234 ::CORBA::Double getLiquidGibbsFreeEnergy();
00235 ::CORBA::Double getLiquidEnthalpy();
00236 ::CORBA::Double getLiquidEntropy();
00237 ::CORBA::Double getLiquidHeatCapacity();
00238 ::CORBA::Double getLiquidVolume();
00239 ::CORBA::Double getLiquiddVdT();
00240 ::CORBA::Double getLiquiddVdP();
00241 ::CORBA::Double getLiquidViscosity();
00242 ::CORBA::Short getPhaseNo(const char* lab);
00243 ::CORBA::Boolean isSingleComponent(::CORBA::Short iphase);
00244 ::CORBA::Short getNumberCoexistPhase(::CORBA::Short iphase);
00245 ::CORBA::Short findRockLiquidus();
00246 ::CORBA::Short equilibrateRock();
00247 ::CORBA::LongLong getLastAccessTime();
00248 ::CORBA::UShort isActive();
00249 char* getStatus();
00250 void remove();
00251
00252 inline _objref_dRock() { _PR_setobj(0); }
00253 _objref_dRock(omniIOR*, omniIdentity*);
00254
00255 protected:
00256 virtual ~_objref_dRock();
00257
00258
00259 private:
00260 virtual void* _ptrToObjRef(const char*);
00261
00262 _objref_dRock(const _objref_dRock&);
00263 _objref_dRock& operator = (const _objref_dRock&);
00264
00265
00266 friend class dRock;
00267 };
00268
00269 class _pof_dRock : public _OMNI_NS(proxyObjectFactory) {
00270 public:
00271 inline _pof_dRock() : _OMNI_NS(proxyObjectFactory)(dRock::_PD_repoId) {}
00272 virtual ~_pof_dRock();
00273
00274 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
00275 virtual _CORBA_Boolean is_a(const char*) const;
00276 };
00277
00278 class _impl_dRock :
00279 public virtual omniServant
00280 {
00281 public:
00282 virtual ~_impl_dRock();
00283
00284 virtual void setTk(::CORBA::Double ltk) = 0;
00285 virtual void setPa(::CORBA::Double lpa) = 0;
00286 virtual void setlogfo2(::rock::dRock::fO2Type mode, ::CORBA::Double delta) = 0;
00287 virtual void supressPhase(::CORBA::Short iphase) = 0;
00288 virtual void enablePhase(::CORBA::Short iphase) = 0;
00289 virtual void setIsenthalpic(::CORBA::Boolean i) = 0;
00290 virtual void setIsentropic(::CORBA::Boolean i) = 0;
00291 virtual void setIsochoric(::CORBA::Boolean i) = 0;
00292 virtual void setBulkCompM(const ::CORBA::DoubleSeq& bc) = 0;
00293 virtual void setBulkCompW(const ::CORBA::DoubleSeq& bc) = 0;
00294 virtual void fractionateSolids(::CORBA::Double scale) = 0;
00295 virtual void setVolume(::CORBA::Double v) = 0;
00296 virtual void setEnthalpy(::CORBA::Double h) = 0;
00297 virtual void setEntropy(::CORBA::Double s) = 0;
00298 virtual ::CORBA::Double getTk() = 0;
00299 virtual ::CORBA::Double getPa() = 0;
00300 virtual ::CORBA::Short getNcomp() = 0;
00301 virtual ::CORBA::Short getNLiqComp() = 0;
00302 virtual ::CORBA::Short getNSolPhases() = 0;
00303 virtual char* getSolPhaseName(::CORBA::Short i) = 0;
00304 virtual char* getSolPhaseFormula(::CORBA::Short i, ::CORBA::Short j) = 0;
00305 virtual ::CORBA::Short getNSolComp(::CORBA::Short i) = 0;
00306 virtual char* getSolPhaseCompName(::CORBA::Short i, ::CORBA::Short j) = 0;
00307 virtual char* getSolPhaseCompFormula(::CORBA::Short i, ::CORBA::Short j) = 0;
00308 virtual char* getCompName(::CORBA::Short i) = 0;
00309 virtual char* getLiqCompName(::CORBA::Short i) = 0;
00310 virtual CORBA::DoubleSeq* getLiqComp() = 0;
00311 virtual CORBA::DoubleSeq* getLiqCompWt() = 0;
00312 virtual CORBA::DoubleSeq* getLiqMu() = 0;
00313 virtual CORBA::DoubleSeq* getLiqActivity() = 0;
00314 virtual ::CORBA::Short getNSatSolid() = 0;
00315 virtual CORBA::ShortSeq* getSatSolidList() = 0;
00316 virtual ::CORBA::Short getSolComp(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out sx) = 0;
00317 virtual ::CORBA::Short getSolCompWt(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out sx) = 0;
00318 virtual ::CORBA::Short getSolMu(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out smu) = 0;
00319 virtual ::CORBA::Double getAffinity(::CORBA::Short iphase, ::CORBA::DoubleSeq_out x) = 0;
00320 virtual ::CORBA::Short getSolVbar(::CORBA::Short iphase, ::CORBA::Short instance, ::CORBA::DoubleSeq_out svbar) = 0;
00321 virtual ::CORBA::Double getlogfo2() = 0;
00322 virtual ::CORBA::Double getlogfo2relative(::rock::dRock::fO2Type mode) = 0;
00323 virtual CORBA::DoubleSeq* getBulkCompM() = 0;
00324 virtual CORBA::DoubleSeq* getBulkCompW() = 0;
00325 virtual ::CORBA::Double getLiquidMass() = 0;
00326 virtual ::CORBA::Double getSolidMass() = 0;
00327 virtual ::CORBA::Double getSolPhaseMass(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00328 virtual ::CORBA::Double getVolume() = 0;
00329 virtual ::CORBA::Double getSolidGibbsFreeEnergyTotal() = 0;
00330 virtual ::CORBA::Double getSolidEnthalpyTotal() = 0;
00331 virtual ::CORBA::Double getSolidEntropyTotal() = 0;
00332 virtual ::CORBA::Double getSolidHeatCapacityTotal() = 0;
00333 virtual ::CORBA::Double getSolidVolumeTotal() = 0;
00334 virtual ::CORBA::Double getSolidGibbsFreeEnergy(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00335 virtual ::CORBA::Double getSolidEnthalpy(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00336 virtual ::CORBA::Double getSolidEntropy(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00337 virtual ::CORBA::Double getSolidHeatCapacity(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00338 virtual ::CORBA::Double getSolidVolume(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00339 virtual ::CORBA::Double getSoliddVdT(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00340 virtual ::CORBA::Double getSoliddVdP(::CORBA::Short iphase, ::CORBA::Short instance) = 0;
00341 virtual ::CORBA::Double getDeltaOxygen() = 0;
00342 virtual ::CORBA::Double getOxygenGibbsFreeEnergy() = 0;
00343 virtual ::CORBA::Double getOxygenEnthalpy() = 0;
00344 virtual ::CORBA::Double getOxygenEntropy() = 0;
00345 virtual ::CORBA::Double getOxygenHeatCapacity() = 0;
00346 virtual ::CORBA::Double getOxygenVolume() = 0;
00347 virtual ::CORBA::Double getLiquidGibbsFreeEnergy() = 0;
00348 virtual ::CORBA::Double getLiquidEnthalpy() = 0;
00349 virtual ::CORBA::Double getLiquidEntropy() = 0;
00350 virtual ::CORBA::Double getLiquidHeatCapacity() = 0;
00351 virtual ::CORBA::Double getLiquidVolume() = 0;
00352 virtual ::CORBA::Double getLiquiddVdT() = 0;
00353 virtual ::CORBA::Double getLiquiddVdP() = 0;
00354 virtual ::CORBA::Double getLiquidViscosity() = 0;
00355 virtual ::CORBA::Short getPhaseNo(const char* lab) = 0;
00356 virtual ::CORBA::Boolean isSingleComponent(::CORBA::Short iphase) = 0;
00357 virtual ::CORBA::Short getNumberCoexistPhase(::CORBA::Short iphase) = 0;
00358 virtual ::CORBA::Short findRockLiquidus() = 0;
00359 virtual ::CORBA::Short equilibrateRock() = 0;
00360 virtual ::CORBA::LongLong getLastAccessTime() = 0;
00361 virtual ::CORBA::UShort isActive() = 0;
00362 virtual char* getStatus() = 0;
00363 virtual void remove() = 0;
00364
00365 public:
00366 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
00367
00368 private:
00369 virtual void* _ptrToInterface(const char*);
00370 virtual const char* _mostDerivedRepoId();
00371
00372 };
00373
00374
00375 #ifndef __rock_mRockFactory__
00376 #define __rock_mRockFactory__
00377
00378 class RockFactory;
00379 class _objref_RockFactory;
00380 class _impl_RockFactory;
00381
00382 typedef _objref_RockFactory* RockFactory_ptr;
00383 typedef RockFactory_ptr RockFactoryRef;
00384
00385 class RockFactory_Helper {
00386 public:
00387 typedef RockFactory_ptr _ptr_type;
00388
00389 static _ptr_type _nil();
00390 static _CORBA_Boolean is_nil(_ptr_type);
00391 static void release(_ptr_type);
00392 static void duplicate(_ptr_type);
00393 static void marshalObjRef(_ptr_type, cdrStream&);
00394 static _ptr_type unmarshalObjRef(cdrStream&);
00395 };
00396
00397 typedef _CORBA_ObjRef_Var<_objref_RockFactory, RockFactory_Helper> RockFactory_var;
00398 typedef _CORBA_ObjRef_OUT_arg<_objref_RockFactory,RockFactory_Helper > RockFactory_out;
00399
00400 #endif
00401
00402
00403 class RockFactory {
00404 public:
00405
00406 typedef RockFactory_ptr _ptr_type;
00407 typedef RockFactory_var _var_type;
00408
00409 static _ptr_type _duplicate(_ptr_type);
00410 static _ptr_type _narrow(::CORBA::Object_ptr);
00411 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
00412
00413 static _ptr_type _nil();
00414
00415 static inline void _marshalObjRef(_ptr_type, cdrStream&);
00416
00417 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
00418 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
00419 if (o)
00420 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
00421 else
00422 return _nil();
00423 }
00424
00425 static _core_attr const char* _PD_repoId;
00426
00427
00428
00429 };
00430
00431 class _objref_RockFactory :
00432 public virtual ::CORBA::Object,
00433 public virtual omniObjRef
00434 {
00435 public:
00436 dRock_ptr spawnRock(const ::common::ClientData& cd);
00437
00438 inline _objref_RockFactory() { _PR_setobj(0); }
00439 _objref_RockFactory(omniIOR*, omniIdentity*);
00440
00441 protected:
00442 virtual ~_objref_RockFactory();
00443
00444
00445 private:
00446 virtual void* _ptrToObjRef(const char*);
00447
00448 _objref_RockFactory(const _objref_RockFactory&);
00449 _objref_RockFactory& operator = (const _objref_RockFactory&);
00450
00451
00452 friend class RockFactory;
00453 };
00454
00455 class _pof_RockFactory : public _OMNI_NS(proxyObjectFactory) {
00456 public:
00457 inline _pof_RockFactory() : _OMNI_NS(proxyObjectFactory)(RockFactory::_PD_repoId) {}
00458 virtual ~_pof_RockFactory();
00459
00460 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
00461 virtual _CORBA_Boolean is_a(const char*) const;
00462 };
00463
00464 class _impl_RockFactory :
00465 public virtual omniServant
00466 {
00467 public:
00468 virtual ~_impl_RockFactory();
00469
00470 virtual dRock_ptr spawnRock(const ::common::ClientData& cd) = 0;
00471
00472 public:
00473 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
00474
00475 private:
00476 virtual void* _ptrToInterface(const char*);
00477 virtual const char* _mostDerivedRepoId();
00478
00479 };
00480
00481
00482 #ifndef __rock_mRockManager__
00483 #define __rock_mRockManager__
00484
00485 class RockManager;
00486 class _objref_RockManager;
00487 class _impl_RockManager;
00488
00489 typedef _objref_RockManager* RockManager_ptr;
00490 typedef RockManager_ptr RockManagerRef;
00491
00492 class RockManager_Helper {
00493 public:
00494 typedef RockManager_ptr _ptr_type;
00495
00496 static _ptr_type _nil();
00497 static _CORBA_Boolean is_nil(_ptr_type);
00498 static void release(_ptr_type);
00499 static void duplicate(_ptr_type);
00500 static void marshalObjRef(_ptr_type, cdrStream&);
00501 static _ptr_type unmarshalObjRef(cdrStream&);
00502 };
00503
00504 typedef _CORBA_ObjRef_Var<_objref_RockManager, RockManager_Helper> RockManager_var;
00505 typedef _CORBA_ObjRef_OUT_arg<_objref_RockManager,RockManager_Helper > RockManager_out;
00506
00507 #endif
00508
00509
00510 class RockManager {
00511 public:
00512
00513 typedef RockManager_ptr _ptr_type;
00514 typedef RockManager_var _var_type;
00515
00516 static _ptr_type _duplicate(_ptr_type);
00517 static _ptr_type _narrow(::CORBA::Object_ptr);
00518 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
00519
00520 static _ptr_type _nil();
00521
00522 static inline void _marshalObjRef(_ptr_type, cdrStream&);
00523
00524 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
00525 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
00526 if (o)
00527 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
00528 else
00529 return _nil();
00530 }
00531
00532 static _core_attr const char* _PD_repoId;
00533
00534
00535 class StatSeq_var;
00536
00537 class StatSeq : public _CORBA_Unbounded_Sequence< RockStatus > {
00538 public:
00539 typedef StatSeq_var _var_type;
00540 inline StatSeq() {}
00541 inline StatSeq(const StatSeq& _s)
00542 : _CORBA_Unbounded_Sequence< RockStatus > (_s) {}
00543
00544 inline StatSeq(_CORBA_ULong _max)
00545 : _CORBA_Unbounded_Sequence< RockStatus > (_max) {}
00546 inline StatSeq(_CORBA_ULong _max, _CORBA_ULong _len, RockStatus* _val, _CORBA_Boolean _rel=0)
00547 : _CORBA_Unbounded_Sequence< RockStatus > (_max, _len, _val, _rel) {}
00548
00549
00550
00551 inline StatSeq& operator = (const StatSeq& _s) {
00552 _CORBA_Unbounded_Sequence< RockStatus > ::operator=(_s);
00553 return *this;
00554 }
00555 };
00556
00557 class StatSeq_out;
00558
00559 class StatSeq_var {
00560 public:
00561 inline StatSeq_var() : _pd_seq(0) {}
00562 inline StatSeq_var(StatSeq* _s) : _pd_seq(_s) {}
00563 inline StatSeq_var(const StatSeq_var& _s) {
00564 if( _s._pd_seq ) _pd_seq = new StatSeq(*_s._pd_seq);
00565 else _pd_seq = 0;
00566 }
00567 inline ~StatSeq_var() { if( _pd_seq ) delete _pd_seq; }
00568
00569 inline StatSeq_var& operator = (StatSeq* _s) {
00570 if( _pd_seq ) delete _pd_seq;
00571 _pd_seq = _s;
00572 return *this;
00573 }
00574 inline StatSeq_var& operator = (const StatSeq_var& _s) {
00575 if( _s._pd_seq ) {
00576 if( !_pd_seq ) _pd_seq = new StatSeq;
00577 *_pd_seq = *_s._pd_seq;
00578 } else if( _pd_seq ) {
00579 delete _pd_seq;
00580 _pd_seq = 0;
00581 }
00582 return *this;
00583 }
00584 inline RockStatus& operator [] (_CORBA_ULong _s) {
00585 return (*_pd_seq)[_s];
00586 }
00587
00588
00589
00590 inline StatSeq* operator -> () { return _pd_seq; }
00591 inline const StatSeq* operator -> () const { return _pd_seq; }
00592 #if defined(__GNUG__)
00593 inline operator StatSeq& () const { return *_pd_seq; }
00594 #else
00595 inline operator const StatSeq& () const { return *_pd_seq; }
00596 inline operator StatSeq& () { return *_pd_seq; }
00597 #endif
00598
00599 inline const StatSeq& in() const { return *_pd_seq; }
00600 inline StatSeq& inout() { return *_pd_seq; }
00601 inline StatSeq*& out() {
00602 if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
00603 return _pd_seq;
00604 }
00605 inline StatSeq* _retn() { StatSeq* tmp = _pd_seq; _pd_seq = 0; return tmp; }
00606
00607 friend class StatSeq_out;
00608
00609 private:
00610 StatSeq* _pd_seq;
00611 };
00612
00613 class StatSeq_out {
00614 public:
00615 inline StatSeq_out(StatSeq*& _s) : _data(_s) { _data = 0; }
00616 inline StatSeq_out(StatSeq_var& _s)
00617 : _data(_s._pd_seq) { _s = (StatSeq*) 0; }
00618 inline StatSeq_out(const StatSeq_out& _s) : _data(_s._data) {}
00619 inline StatSeq_out& operator = (const StatSeq_out& _s) {
00620 _data = _s._data;
00621 return *this;
00622 }
00623 inline StatSeq_out& operator = (StatSeq* _s) {
00624 _data = _s;
00625 return *this;
00626 }
00627 inline operator StatSeq*&() { return _data; }
00628 inline StatSeq*& ptr() { return _data; }
00629 inline StatSeq* operator->() { return _data; }
00630
00631 inline RockStatus& operator [] (_CORBA_ULong _i) {
00632 return (*_data)[_i];
00633 }
00634
00635
00636
00637 StatSeq*& _data;
00638
00639 private:
00640 StatSeq_out();
00641 StatSeq_out& operator=(const StatSeq_var&);
00642 };
00643
00644
00645 };
00646
00647 class _objref_RockManager :
00648 public virtual ::CORBA::Object,
00649 public virtual omniObjRef
00650 {
00651 public:
00652 ::CORBA::Short getGracePeriod();
00653 void setGracePeriod(::CORBA::Short sec);
00654 void add(::rock::dRock_ptr dpv, ::CORBA::Long pid, const ::common::ClientData& cd);
00655 ::CORBA::Short getNrock();
00656 RockManager::StatSeq* getStatus();
00657 ::CORBA::Double getLoad(::CORBA::Short p);
00658 ::CORBA::Long getFreeMemory();
00659 ::CORBA::Long getAllocatedMemory();
00660 void update();
00661 void remove(::CORBA::Long i);
00662 void apoptosize(::CORBA::Long i);
00663
00664 inline _objref_RockManager() { _PR_setobj(0); }
00665 _objref_RockManager(omniIOR*, omniIdentity*);
00666
00667 protected:
00668 virtual ~_objref_RockManager();
00669
00670
00671 private:
00672 virtual void* _ptrToObjRef(const char*);
00673
00674 _objref_RockManager(const _objref_RockManager&);
00675 _objref_RockManager& operator = (const _objref_RockManager&);
00676
00677
00678 friend class RockManager;
00679 };
00680
00681 class _pof_RockManager : public _OMNI_NS(proxyObjectFactory) {
00682 public:
00683 inline _pof_RockManager() : _OMNI_NS(proxyObjectFactory)(RockManager::_PD_repoId) {}
00684 virtual ~_pof_RockManager();
00685
00686 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
00687 virtual _CORBA_Boolean is_a(const char*) const;
00688 };
00689
00690 class _impl_RockManager :
00691 public virtual omniServant
00692 {
00693 public:
00694 virtual ~_impl_RockManager();
00695
00696 virtual ::CORBA::Short getGracePeriod() = 0;
00697 virtual void setGracePeriod(::CORBA::Short sec) = 0;
00698 virtual void add(::rock::dRock_ptr dpv, ::CORBA::Long pid, const ::common::ClientData& cd) = 0;
00699 virtual ::CORBA::Short getNrock() = 0;
00700 virtual RockManager::StatSeq* getStatus() = 0;
00701 virtual ::CORBA::Double getLoad(::CORBA::Short p) = 0;
00702 virtual ::CORBA::Long getFreeMemory() = 0;
00703 virtual ::CORBA::Long getAllocatedMemory() = 0;
00704 virtual void update() = 0;
00705 virtual void remove(::CORBA::Long i) = 0;
00706 virtual void apoptosize(::CORBA::Long i) = 0;
00707
00708 public:
00709 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
00710
00711 private:
00712 virtual void* _ptrToInterface(const char*);
00713 virtual const char* _mostDerivedRepoId();
00714
00715 };
00716
00717
00718 _CORBA_MODULE_END
00719
00720
00721
00722 _CORBA_MODULE POA_rock
00723 _CORBA_MODULE_BEG
00724
00725 class dRock :
00726 public virtual rock::_impl_dRock,
00727 public virtual ::PortableServer::ServantBase
00728 {
00729 public:
00730 virtual ~dRock();
00731
00732 inline ::rock::dRock_ptr _this() {
00733 return (::rock::dRock_ptr) _do_this(::rock::dRock::_PD_repoId);
00734 }
00735 };
00736
00737 class RockFactory :
00738 public virtual rock::_impl_RockFactory,
00739 public virtual ::PortableServer::ServantBase
00740 {
00741 public:
00742 virtual ~RockFactory();
00743
00744 inline ::rock::RockFactory_ptr _this() {
00745 return (::rock::RockFactory_ptr) _do_this(::rock::RockFactory::_PD_repoId);
00746 }
00747 };
00748
00749 class RockManager :
00750 public virtual rock::_impl_RockManager,
00751 public virtual ::PortableServer::ServantBase
00752 {
00753 public:
00754 virtual ~RockManager();
00755
00756 inline ::rock::RockManager_ptr _this() {
00757 return (::rock::RockManager_ptr) _do_this(::rock::RockManager::_PD_repoId);
00758 }
00759 };
00760
00761 _CORBA_MODULE_END
00762
00763
00764
00765 _CORBA_MODULE OBV_rock
00766 _CORBA_MODULE_BEG
00767
00768 _CORBA_MODULE_END
00769
00770
00771
00772
00773
00774 #undef _core_attr
00775 #undef _dyn_attr
00776
00777 inline void operator >>=(rock::dRock::fO2Type _e, cdrStream& s) {
00778 ::operator>>=((::CORBA::ULong)_e, s);
00779 }
00780
00781 inline void operator <<= (rock::dRock::fO2Type& _e, cdrStream& s) {
00782 ::CORBA::ULong _0RL_e;
00783 ::operator<<=(_0RL_e,s);
00784 if (_0RL_e <= rock::dRock::fo2_iw) {
00785 _e = (rock::dRock::fO2Type) _0RL_e;
00786 }
00787 else {
00788 OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
00789 (::CORBA::CompletionStatus)s.completion());
00790 }
00791 }
00792
00793 inline void operator >>=(rock::dRock::findRockLiquidusStatus _e, cdrStream& s) {
00794 ::operator>>=((::CORBA::ULong)_e, s);
00795 }
00796
00797 inline void operator <<= (rock::dRock::findRockLiquidusStatus& _e, cdrStream& s) {
00798 ::CORBA::ULong _0RL_e;
00799 ::operator<<=(_0RL_e,s);
00800 if (_0RL_e <= rock::dRock::frl_time) {
00801 _e = (rock::dRock::findRockLiquidusStatus) _0RL_e;
00802 }
00803 else {
00804 OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
00805 (::CORBA::CompletionStatus)s.completion());
00806 }
00807 }
00808
00809 inline void operator >>=(rock::dRock::equilibrateStatus _e, cdrStream& s) {
00810 ::operator>>=((::CORBA::ULong)_e, s);
00811 }
00812
00813 inline void operator <<= (rock::dRock::equilibrateStatus& _e, cdrStream& s) {
00814 ::CORBA::ULong _0RL_e;
00815 ::operator<<=(_0RL_e,s);
00816 if (_0RL_e <= rock::dRock::equil_time) {
00817 _e = (rock::dRock::equilibrateStatus) _0RL_e;
00818 }
00819 else {
00820 OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
00821 (::CORBA::CompletionStatus)s.completion());
00822 }
00823 }
00824
00825
00826
00827 inline void
00828 rock::dRock::_marshalObjRef(::rock::dRock_ptr obj, cdrStream& s) {
00829 omniObjRef::_marshal(obj->_PR_getobj(),s);
00830 }
00831
00832
00833 inline void
00834 rock::RockFactory::_marshalObjRef(::rock::RockFactory_ptr obj, cdrStream& s) {
00835 omniObjRef::_marshal(obj->_PR_getobj(),s);
00836 }
00837
00838
00839 inline void
00840 rock::RockManager::_marshalObjRef(::rock::RockManager_ptr obj, cdrStream& s) {
00841 omniObjRef::_marshal(obj->_PR_getobj(),s);
00842 }
00843
00844
00845
00846
00847 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_rock
00848 # undef USE_stub_in_nt_dll
00849 # undef USE_stub_in_nt_dll_NOT_DEFINED_rock
00850 #endif
00851 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_rock
00852 # undef USE_core_stub_in_nt_dll
00853 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_rock
00854 #endif
00855 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_rock
00856 # undef USE_dyn_stub_in_nt_dll
00857 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_rock
00858 #endif
00859
00860 #endif // __rock_hh__
00861