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