00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaConfigure_h__
00016 #define ___HxCorbaConfigure_h__
00017
00018 #include <HxCorbaTypes.h>
00019
00020 #ifndef OB_INTEGER_VERSION
00021 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00022 #endif
00023
00024 #ifndef OB_NO_VERSION_CHECK
00025 # if (OB_INTEGER_VERSION != 4000500L)
00026 # error ORBacus version mismatch!
00027 # endif
00028 #endif
00029
00030 namespace HxCorba
00031 {
00032
00033 class ObjectUsage;
00034 typedef ObjectUsage* ObjectUsage_ptr;
00035 typedef ObjectUsage* ObjectUsageRef;
00036
00037 extern OB::TypeCodeConst _tc_ObjectUsage;
00038
00039 class Configure;
00040 typedef Configure* Configure_ptr;
00041 typedef Configure* ConfigureRef;
00042
00043 extern OB::TypeCodeConst _tc_Configure;
00044
00045 }
00046
00047 void OBDuplicate(HxCorba::ObjectUsage_ptr);
00048 void OBRelease(HxCorba::ObjectUsage_ptr);
00049
00050 void OBMarshal(HxCorba::ObjectUsage_ptr, OB::OutputStreamImpl*);
00051 void OBUnmarshal(HxCorba::ObjectUsage_ptr&, OB::InputStreamImpl*);
00052
00053 void OBDuplicate(HxCorba::Configure_ptr);
00054 void OBRelease(HxCorba::Configure_ptr);
00055
00056 void OBMarshal(HxCorba::Configure_ptr, OB::OutputStreamImpl*);
00057 void OBUnmarshal(HxCorba::Configure_ptr&, OB::InputStreamImpl*);
00058
00059 namespace HxCorba
00060 {
00061
00062 typedef OB::ObjVar< ObjectUsage > ObjectUsage_var;
00063 typedef OB::ObjOut< ObjectUsage > ObjectUsage_out;
00064
00065 typedef OB::ObjVar< Configure > Configure_var;
00066 typedef OB::ObjOut< Configure > Configure_out;
00067
00068 }
00069
00070 namespace OBStubImpl_HxCorba
00071 {
00072
00073 class ObjectUsage;
00074 typedef ObjectUsage* ObjectUsage_ptr;
00075
00076 class Configure;
00077 typedef Configure* Configure_ptr;
00078
00079 }
00080
00081 void OBDuplicate(OBStubImpl_HxCorba::ObjectUsage_ptr);
00082 void OBRelease(OBStubImpl_HxCorba::ObjectUsage_ptr);
00083
00084 void OBDuplicate(OBStubImpl_HxCorba::Configure_ptr);
00085 void OBRelease(OBStubImpl_HxCorba::Configure_ptr);
00086
00087 namespace OBStubImpl_HxCorba
00088 {
00089
00090 typedef OB::ObjVar< ObjectUsage > ObjectUsage_var;
00091
00092 typedef OB::ObjVar< Configure > Configure_var;
00093
00094 }
00095
00096
00097
00098
00099 namespace HxCorba
00100 {
00101
00102
00103
00104
00105 class ObjectUsage : virtual public CORBA::Object
00106 {
00107 ObjectUsage(const ObjectUsage&);
00108 void operator=(const ObjectUsage&);
00109
00110 static const char* ids_[];
00111
00112 protected:
00113
00114 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00115
00116 public:
00117
00118 ObjectUsage() { }
00119 virtual ~ObjectUsage() { }
00120
00121 typedef ObjectUsage_ptr _ptr_type;
00122 typedef ObjectUsage_var _var_type;
00123
00124 static inline ObjectUsage_ptr
00125 _duplicate(ObjectUsage_ptr p)
00126 {
00127 if(p)
00128 p -> _OB_incRef();
00129 return p;
00130 }
00131
00132 static inline ObjectUsage_ptr
00133 _nil()
00134 {
00135 return 0;
00136 }
00137
00138 static ObjectUsage_ptr _narrow(CORBA::Object_ptr);
00139 static ObjectUsage_ptr _narrow(CORBA::AbstractBase_ptr);
00140
00141 virtual const char** _OB_ids() const;
00142 static const char** _OB_staticIds();
00143
00144
00145
00146
00147 CORBA::Long getUsed(const char* unit);
00148
00149
00150
00151
00152 CORBA::Long getTotalLimit(const char* unit);
00153
00154
00155
00156
00157 void setTotalLimit(const char* unit,
00158 CORBA::Long limit);
00159
00160
00161
00162
00163 CORBA::Long getObjectLimit(const char* unit);
00164
00165
00166
00167
00168 void setObjectLimit(const char* unit,
00169 CORBA::Long limit);
00170
00171
00172
00173
00174 StringSeq* listUnits();
00175
00176
00177
00178
00179 void close();
00180 };
00181
00182
00183
00184
00185 class Configure : virtual public CORBA::Object
00186 {
00187 Configure(const Configure&);
00188 void operator=(const Configure&);
00189
00190 static const char* ids_[];
00191
00192 protected:
00193
00194 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00195
00196 public:
00197
00198 Configure() { }
00199 virtual ~Configure() { }
00200
00201 typedef Configure_ptr _ptr_type;
00202 typedef Configure_var _var_type;
00203
00204 static inline Configure_ptr
00205 _duplicate(Configure_ptr p)
00206 {
00207 if(p)
00208 p -> _OB_incRef();
00209 return p;
00210 }
00211
00212 static inline Configure_ptr
00213 _nil()
00214 {
00215 return 0;
00216 }
00217
00218 static Configure_ptr _narrow(CORBA::Object_ptr);
00219 static Configure_ptr _narrow(CORBA::AbstractBase_ptr);
00220
00221 virtual const char** _OB_ids() const;
00222 static const char** _OB_staticIds();
00223
00224
00225
00226
00227 void shutdown();
00228
00229
00230
00231
00232 ObjectUsage_ptr getDefaultObjectUsage();
00233
00234
00235
00236
00237 ObjectUsage_ptr getObjectUsage(const char* name);
00238
00239
00240
00241
00242 StringSeq* listObjectUsages();
00243 };
00244
00245 }
00246
00247
00248
00249
00250 namespace OBStubImpl_HxCorba
00251 {
00252
00253
00254
00255
00256 class ObjectUsage : virtual public OB::StubImplBase
00257 {
00258 ObjectUsage(const ObjectUsage&);
00259 void operator=(const ObjectUsage&);
00260
00261 protected:
00262
00263 ObjectUsage() { }
00264
00265 public:
00266
00267 static inline ObjectUsage_ptr
00268 _duplicate(ObjectUsage_ptr p)
00269 {
00270 if(p)
00271 p -> _OB_incRef();
00272 return p;
00273 }
00274
00275 static inline ObjectUsage_ptr
00276 _nil()
00277 {
00278 return 0;
00279 }
00280
00281
00282
00283
00284 virtual CORBA::Long getUsed(const char* unit) = 0;
00285
00286
00287
00288
00289 virtual CORBA::Long getTotalLimit(const char* unit) = 0;
00290
00291
00292
00293
00294 virtual void setTotalLimit(const char* unit,
00295 CORBA::Long limit) = 0;
00296
00297
00298
00299
00300 virtual CORBA::Long getObjectLimit(const char* unit) = 0;
00301
00302
00303
00304
00305 virtual void setObjectLimit(const char* unit,
00306 CORBA::Long limit) = 0;
00307
00308
00309
00310
00311 virtual HxCorba::StringSeq* listUnits() = 0;
00312
00313
00314
00315
00316 virtual void close() = 0;
00317 };
00318
00319
00320
00321
00322 class Configure : virtual public OB::StubImplBase
00323 {
00324 Configure(const Configure&);
00325 void operator=(const Configure&);
00326
00327 protected:
00328
00329 Configure() { }
00330
00331 public:
00332
00333 static inline Configure_ptr
00334 _duplicate(Configure_ptr p)
00335 {
00336 if(p)
00337 p -> _OB_incRef();
00338 return p;
00339 }
00340
00341 static inline Configure_ptr
00342 _nil()
00343 {
00344 return 0;
00345 }
00346
00347
00348
00349
00350 virtual void shutdown() = 0;
00351
00352
00353
00354
00355 virtual HxCorba::ObjectUsage_ptr getDefaultObjectUsage() = 0;
00356
00357
00358
00359
00360 virtual HxCorba::ObjectUsage_ptr getObjectUsage(const char* name) = 0;
00361
00362
00363
00364
00365 virtual HxCorba::StringSeq* listObjectUsages() = 0;
00366 };
00367
00368 }
00369
00370
00371
00372
00373 namespace OBMarshalStubImpl_HxCorba
00374 {
00375
00376
00377
00378
00379 class ObjectUsage : virtual public OBStubImpl_HxCorba::ObjectUsage,
00380 virtual public OB::MarshalStubImpl
00381 {
00382 ObjectUsage(const ObjectUsage&);
00383 void operator=(const ObjectUsage&);
00384
00385 protected:
00386
00387 ObjectUsage() { }
00388 friend class HxCorba::ObjectUsage;
00389
00390 public:
00391
00392
00393
00394
00395 virtual CORBA::Long getUsed(const char* unit);
00396
00397
00398
00399
00400 virtual CORBA::Long getTotalLimit(const char* unit);
00401
00402
00403
00404
00405 virtual void setTotalLimit(const char* unit,
00406 CORBA::Long limit);
00407
00408
00409
00410
00411 virtual CORBA::Long getObjectLimit(const char* unit);
00412
00413
00414
00415
00416 virtual void setObjectLimit(const char* unit,
00417 CORBA::Long limit);
00418
00419
00420
00421
00422 virtual HxCorba::StringSeq* listUnits();
00423
00424
00425
00426
00427 virtual void close();
00428 };
00429
00430
00431
00432
00433 class Configure : virtual public OBStubImpl_HxCorba::Configure,
00434 virtual public OB::MarshalStubImpl
00435 {
00436 Configure(const Configure&);
00437 void operator=(const Configure&);
00438
00439 protected:
00440
00441 Configure() { }
00442 friend class HxCorba::Configure;
00443
00444 public:
00445
00446
00447
00448
00449 virtual void shutdown();
00450
00451
00452
00453
00454 virtual HxCorba::ObjectUsage_ptr getDefaultObjectUsage();
00455
00456
00457
00458
00459 virtual HxCorba::ObjectUsage_ptr getObjectUsage(const char* name);
00460
00461
00462
00463
00464 virtual HxCorba::StringSeq* listObjectUsages();
00465 };
00466
00467 }
00468
00469
00470
00471
00472 namespace OBV_HxCorba
00473 {
00474
00475 }
00476
00477
00478
00479
00480 namespace CORBA
00481 {
00482
00483 inline void
00484 release(HxCorba::ObjectUsage_ptr p)
00485 {
00486 if(p)
00487 p -> _OB_decRef();
00488 }
00489
00490 inline Boolean
00491 is_nil(HxCorba::ObjectUsage_ptr p)
00492 {
00493 return p == 0;
00494 }
00495
00496 inline void
00497 release(OBStubImpl_HxCorba::ObjectUsage_ptr p)
00498 {
00499 if(p)
00500 p -> _OB_decRef();
00501 }
00502
00503 inline Boolean
00504 is_nil(OBStubImpl_HxCorba::ObjectUsage_ptr p)
00505 {
00506 return p == 0;
00507 }
00508
00509 }
00510
00511 void operator<<=(CORBA::Any&, HxCorba::ObjectUsage_ptr*);
00512 void operator<<=(CORBA::Any&, HxCorba::ObjectUsage_ptr);
00513 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::ObjectUsage_ptr&);
00514
00515 inline void
00516 operator<<=(CORBA::Any_var& any, HxCorba::ObjectUsage_ptr* val)
00517 {
00518 any.inout() <<= val;
00519 }
00520
00521 inline void
00522 operator<<=(CORBA::Any_var& any, HxCorba::ObjectUsage_ptr val)
00523 {
00524 any.inout() <<= val;
00525 }
00526
00527 inline CORBA::Boolean
00528 operator>>=(const CORBA::Any_var& any, HxCorba::ObjectUsage_ptr& val)
00529 {
00530 return any.in() >>= val;
00531 }
00532
00533
00534
00535
00536 namespace CORBA
00537 {
00538
00539 inline void
00540 release(HxCorba::Configure_ptr p)
00541 {
00542 if(p)
00543 p -> _OB_decRef();
00544 }
00545
00546 inline Boolean
00547 is_nil(HxCorba::Configure_ptr p)
00548 {
00549 return p == 0;
00550 }
00551
00552 inline void
00553 release(OBStubImpl_HxCorba::Configure_ptr p)
00554 {
00555 if(p)
00556 p -> _OB_decRef();
00557 }
00558
00559 inline Boolean
00560 is_nil(OBStubImpl_HxCorba::Configure_ptr p)
00561 {
00562 return p == 0;
00563 }
00564
00565 }
00566
00567 void operator<<=(CORBA::Any&, HxCorba::Configure_ptr*);
00568 void operator<<=(CORBA::Any&, HxCorba::Configure_ptr);
00569 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::Configure_ptr&);
00570
00571 inline void
00572 operator<<=(CORBA::Any_var& any, HxCorba::Configure_ptr* val)
00573 {
00574 any.inout() <<= val;
00575 }
00576
00577 inline void
00578 operator<<=(CORBA::Any_var& any, HxCorba::Configure_ptr val)
00579 {
00580 any.inout() <<= val;
00581 }
00582
00583 inline CORBA::Boolean
00584 operator>>=(const CORBA::Any_var& any, HxCorba::Configure_ptr& val)
00585 {
00586 return any.in() >>= val;
00587 }
00588
00589 #endif