00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaApp_h__
00016 #define ___HxCorbaApp_h__
00017
00018 #include <HxCorbaTypes.h>
00019 #include <HxCorbaImageRep.h>
00020 #include <HxCorbaPolyline2d.h>
00021
00022 #ifndef OB_INTEGER_VERSION
00023 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00024 #endif
00025
00026 #ifndef OB_NO_VERSION_CHECK
00027 # if (OB_INTEGER_VERSION != 4000500L)
00028 # error ORBacus version mismatch!
00029 # endif
00030 #endif
00031
00032 namespace HxCorba
00033 {
00034
00035 class App;
00036 typedef App* App_ptr;
00037 typedef App* AppRef;
00038
00039 extern OB::TypeCodeConst _tc_App;
00040
00041 }
00042
00043 void OBDuplicate(HxCorba::App_ptr);
00044 void OBRelease(HxCorba::App_ptr);
00045
00046 void OBMarshal(HxCorba::App_ptr, OB::OutputStreamImpl*);
00047 void OBUnmarshal(HxCorba::App_ptr&, OB::InputStreamImpl*);
00048
00049 namespace HxCorba
00050 {
00051
00052 typedef OB::ObjVar< App > App_var;
00053 typedef OB::ObjOut< App > App_out;
00054
00055 }
00056
00057 namespace OBStubImpl_HxCorba
00058 {
00059
00060 class App;
00061 typedef App* App_ptr;
00062
00063 }
00064
00065 void OBDuplicate(OBStubImpl_HxCorba::App_ptr);
00066 void OBRelease(OBStubImpl_HxCorba::App_ptr);
00067
00068 namespace OBStubImpl_HxCorba
00069 {
00070
00071 typedef OB::ObjVar< App > App_var;
00072
00073 }
00074
00075
00076
00077
00078 namespace HxCorba
00079 {
00080
00081
00082
00083
00084 class App : virtual public CORBA::Object
00085 {
00086 App(const App&);
00087 void operator=(const App&);
00088
00089 static const char* ids_[];
00090
00091 protected:
00092
00093 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00094
00095 public:
00096
00097 App() { }
00098 virtual ~App() { }
00099
00100 typedef App_ptr _ptr_type;
00101 typedef App_var _var_type;
00102
00103 static inline App_ptr
00104 _duplicate(App_ptr p)
00105 {
00106 if(p)
00107 p -> _OB_incRef();
00108 return p;
00109 }
00110
00111 static inline App_ptr
00112 _nil()
00113 {
00114 return 0;
00115 }
00116
00117 static App_ptr _narrow(CORBA::Object_ptr);
00118 static App_ptr _narrow(CORBA::AbstractBase_ptr);
00119
00120 virtual const char** _OB_ids() const;
00121 static const char** _OB_staticIds();
00122
00123
00124
00125
00126 void listObjectTypes(StringSeq_out sl);
00127
00128
00129
00130
00131 void listObjects(const char* typeId,
00132 StringSeq_out sl);
00133
00134
00135
00136
00137 CORBA::Object_ptr getObject(const char* typeId,
00138 const char* name);
00139
00140
00141
00142
00143 CORBA::Boolean putObject(const char* typeId,
00144 const char* name,
00145 CORBA::Object_ptr obj);
00146
00147
00148
00149
00150 void listImages(StringSeq_out sl);
00151
00152
00153
00154
00155 ImageRep_ptr getImage(const char* name);
00156
00157
00158
00159
00160 CORBA::Boolean putImage(const char* name,
00161 ImageRep_ptr img);
00162 };
00163
00164 }
00165
00166
00167
00168
00169 namespace OBStubImpl_HxCorba
00170 {
00171
00172
00173
00174
00175 class App : virtual public OB::StubImplBase
00176 {
00177 App(const App&);
00178 void operator=(const App&);
00179
00180 protected:
00181
00182 App() { }
00183
00184 public:
00185
00186 static inline App_ptr
00187 _duplicate(App_ptr p)
00188 {
00189 if(p)
00190 p -> _OB_incRef();
00191 return p;
00192 }
00193
00194 static inline App_ptr
00195 _nil()
00196 {
00197 return 0;
00198 }
00199
00200
00201
00202
00203 virtual void listObjectTypes(HxCorba::StringSeq_out sl) = 0;
00204
00205
00206
00207
00208 virtual void listObjects(const char* typeId,
00209 HxCorba::StringSeq_out sl) = 0;
00210
00211
00212
00213
00214 virtual CORBA::Object_ptr getObject(const char* typeId,
00215 const char* name) = 0;
00216
00217
00218
00219
00220 virtual CORBA::Boolean putObject(const char* typeId,
00221 const char* name,
00222 CORBA::Object_ptr obj) = 0;
00223
00224
00225
00226
00227 virtual void listImages(HxCorba::StringSeq_out sl) = 0;
00228
00229
00230
00231
00232 virtual HxCorba::ImageRep_ptr getImage(const char* name) = 0;
00233
00234
00235
00236
00237 virtual CORBA::Boolean putImage(const char* name,
00238 HxCorba::ImageRep_ptr img) = 0;
00239 };
00240
00241 }
00242
00243
00244
00245
00246 namespace OBMarshalStubImpl_HxCorba
00247 {
00248
00249
00250
00251
00252 class App : virtual public OBStubImpl_HxCorba::App,
00253 virtual public OB::MarshalStubImpl
00254 {
00255 App(const App&);
00256 void operator=(const App&);
00257
00258 protected:
00259
00260 App() { }
00261 friend class HxCorba::App;
00262
00263 public:
00264
00265
00266
00267
00268 virtual void listObjectTypes(HxCorba::StringSeq_out sl);
00269
00270
00271
00272
00273 virtual void listObjects(const char* typeId,
00274 HxCorba::StringSeq_out sl);
00275
00276
00277
00278
00279 virtual CORBA::Object_ptr getObject(const char* typeId,
00280 const char* name);
00281
00282
00283
00284
00285 virtual CORBA::Boolean putObject(const char* typeId,
00286 const char* name,
00287 CORBA::Object_ptr obj);
00288
00289
00290
00291
00292 virtual void listImages(HxCorba::StringSeq_out sl);
00293
00294
00295
00296
00297 virtual HxCorba::ImageRep_ptr getImage(const char* name);
00298
00299
00300
00301
00302 virtual CORBA::Boolean putImage(const char* name,
00303 HxCorba::ImageRep_ptr img);
00304 };
00305
00306 }
00307
00308
00309
00310
00311 namespace OBV_HxCorba
00312 {
00313
00314 }
00315
00316
00317
00318
00319 namespace CORBA
00320 {
00321
00322 inline void
00323 release(HxCorba::App_ptr p)
00324 {
00325 if(p)
00326 p -> _OB_decRef();
00327 }
00328
00329 inline Boolean
00330 is_nil(HxCorba::App_ptr p)
00331 {
00332 return p == 0;
00333 }
00334
00335 inline void
00336 release(OBStubImpl_HxCorba::App_ptr p)
00337 {
00338 if(p)
00339 p -> _OB_decRef();
00340 }
00341
00342 inline Boolean
00343 is_nil(OBStubImpl_HxCorba::App_ptr p)
00344 {
00345 return p == 0;
00346 }
00347
00348 }
00349
00350 void operator<<=(CORBA::Any&, HxCorba::App_ptr*);
00351 void operator<<=(CORBA::Any&, HxCorba::App_ptr);
00352 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::App_ptr&);
00353
00354 inline void
00355 operator<<=(CORBA::Any_var& any, HxCorba::App_ptr* val)
00356 {
00357 any.inout() <<= val;
00358 }
00359
00360 inline void
00361 operator<<=(CORBA::Any_var& any, HxCorba::App_ptr val)
00362 {
00363 any.inout() <<= val;
00364 }
00365
00366 inline CORBA::Boolean
00367 operator>>=(const CORBA::Any_var& any, HxCorba::App_ptr& val)
00368 {
00369 return any.in() >>= val;
00370 }
00371
00372 #endif