00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaRgbBuffer_h__
00016 #define ___HxCorbaRgbBuffer_h__
00017
00018 #ifndef OB_INTEGER_VERSION
00019 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00020 #endif
00021
00022 #ifndef OB_NO_VERSION_CHECK
00023 # if (OB_INTEGER_VERSION != 4010000L)
00024 # error ORBacus version mismatch!
00025 # endif
00026 #endif
00027
00028 namespace HxCorba
00029 {
00030
00031 class RgbBuffer;
00032 typedef RgbBuffer* RgbBuffer_ptr;
00033 typedef RgbBuffer* RgbBufferRef;
00034
00035 extern OB::TypeCodeConst _tc_RgbBuffer;
00036
00037 class RgbBufferFactory;
00038 typedef RgbBufferFactory* RgbBufferFactory_ptr;
00039 typedef RgbBufferFactory* RgbBufferFactoryRef;
00040
00041 extern OB::TypeCodeConst _tc_RgbBufferFactory;
00042
00043 class RgbSource;
00044 typedef RgbSource* RgbSource_ptr;
00045 typedef RgbSource* RgbSourceRef;
00046
00047 extern OB::TypeCodeConst _tc_RgbSource;
00048
00049 }
00050
00051 void OBDuplicate(HxCorba::RgbBuffer_ptr);
00052 void OBRelease(HxCorba::RgbBuffer_ptr);
00053
00054 void OBMarshal(HxCorba::RgbBuffer_ptr, OB::OutputStreamImpl*);
00055 void OBUnmarshal(HxCorba::RgbBuffer_ptr&, OB::InputStreamImpl*);
00056
00057 void OBDuplicate(HxCorba::RgbBufferFactory_ptr);
00058 void OBRelease(HxCorba::RgbBufferFactory_ptr);
00059
00060 void OBMarshal(HxCorba::RgbBufferFactory_ptr, OB::OutputStreamImpl*);
00061 void OBUnmarshal(HxCorba::RgbBufferFactory_ptr&, OB::InputStreamImpl*);
00062
00063 void OBDuplicate(HxCorba::RgbSource_ptr);
00064 void OBRelease(HxCorba::RgbSource_ptr);
00065
00066 void OBMarshal(HxCorba::RgbSource_ptr, OB::OutputStreamImpl*);
00067 void OBUnmarshal(HxCorba::RgbSource_ptr&, OB::InputStreamImpl*);
00068
00069 namespace HxCorba
00070 {
00071
00072 typedef OB::ObjVar< RgbBuffer > RgbBuffer_var;
00073 typedef OB::ObjOut< RgbBuffer > RgbBuffer_out;
00074
00075 typedef OB::ObjVar< RgbBufferFactory > RgbBufferFactory_var;
00076 typedef OB::ObjOut< RgbBufferFactory > RgbBufferFactory_out;
00077
00078 typedef OB::ObjVar< RgbSource > RgbSource_var;
00079 typedef OB::ObjOut< RgbSource > RgbSource_out;
00080
00081 }
00082
00083 namespace OBStubImpl_HxCorba
00084 {
00085
00086 class RgbBuffer;
00087 typedef RgbBuffer* RgbBuffer_ptr;
00088
00089 class RgbBufferFactory;
00090 typedef RgbBufferFactory* RgbBufferFactory_ptr;
00091
00092 class RgbSource;
00093 typedef RgbSource* RgbSource_ptr;
00094
00095 }
00096
00097 void OBDuplicate(OBStubImpl_HxCorba::RgbBuffer_ptr);
00098 void OBRelease(OBStubImpl_HxCorba::RgbBuffer_ptr);
00099
00100 void OBDuplicate(OBStubImpl_HxCorba::RgbBufferFactory_ptr);
00101 void OBRelease(OBStubImpl_HxCorba::RgbBufferFactory_ptr);
00102
00103 void OBDuplicate(OBStubImpl_HxCorba::RgbSource_ptr);
00104 void OBRelease(OBStubImpl_HxCorba::RgbSource_ptr);
00105
00106 namespace OBStubImpl_HxCorba
00107 {
00108
00109 typedef OB::ObjVar< RgbBuffer > RgbBuffer_var;
00110
00111 typedef OB::ObjVar< RgbBufferFactory > RgbBufferFactory_var;
00112
00113 typedef OB::ObjVar< RgbSource > RgbSource_var;
00114
00115 }
00116
00117
00118
00119
00120 namespace HxCorba
00121 {
00122
00123
00124
00125
00126 class OBUnique_RgbSeq { };
00127
00128 typedef OB::FixSeq< CORBA::Long, OBUnique_RgbSeq > RgbSeq;
00129 typedef OB::SeqVar< OB::FixSeq< CORBA::Long, OBUnique_RgbSeq > > RgbSeq_var;
00130 typedef OB::SeqOut< OB::FixSeq< CORBA::Long, OBUnique_RgbSeq > > RgbSeq_out;
00131 extern OB::TypeCodeConst _tc_RgbSeq;
00132
00133 struct OBInfo_RgbSeq : public OB::ConstructedInfo
00134 {
00135 OBInfo_RgbSeq() { }
00136
00137 virtual void free(void* p) const
00138 {
00139 delete (RgbSeq*)p;
00140 }
00141
00142 virtual void* dup(const void* p) const
00143 {
00144 return new RgbSeq(*(const RgbSeq*)p);
00145 }
00146
00147 virtual void marshal(const void*, OB::OutputStreamImpl*) const;
00148 virtual void unmarshal(void*, OB::InputStreamImpl*) const;
00149 };
00150
00151
00152
00153
00154 class RgbBuffer : virtual public CORBA::Object
00155 {
00156 RgbBuffer(const RgbBuffer&);
00157 void operator=(const RgbBuffer&);
00158
00159 protected:
00160
00161 static const char* ids_[];
00162
00163 public:
00164
00165 RgbBuffer() { }
00166 virtual ~RgbBuffer() { }
00167
00168 typedef RgbBuffer_ptr _ptr_type;
00169 typedef RgbBuffer_var _var_type;
00170
00171 static inline RgbBuffer_ptr
00172 _duplicate(RgbBuffer_ptr p)
00173 {
00174 if(p)
00175 p -> _add_ref();
00176 return p;
00177 }
00178
00179 static inline RgbBuffer_ptr
00180 _nil()
00181 {
00182 return 0;
00183 }
00184
00185 static RgbBuffer_ptr _narrow(CORBA::Object_ptr);
00186 static RgbBuffer_ptr _unchecked_narrow(CORBA::Object_ptr);
00187
00188 static RgbBuffer_ptr _narrow(CORBA::AbstractBase_ptr);
00189 static RgbBuffer_ptr _unchecked_narrow(CORBA::AbstractBase_ptr);
00190
00191 static const char** _OB_staticIds();
00192
00193
00194
00195
00196 virtual CORBA::Long size() = 0;
00197
00198
00199
00200
00201 virtual RgbSeq* getRgb() = 0;
00202
00203
00204
00205
00206 virtual void setRgb(const RgbSeq& pixels) = 0;
00207 };
00208
00209
00210
00211
00212 class RgbBufferFactory : virtual public CORBA::Object
00213 {
00214 RgbBufferFactory(const RgbBufferFactory&);
00215 void operator=(const RgbBufferFactory&);
00216
00217 protected:
00218
00219 static const char* ids_[];
00220
00221 public:
00222
00223 RgbBufferFactory() { }
00224 virtual ~RgbBufferFactory() { }
00225
00226 typedef RgbBufferFactory_ptr _ptr_type;
00227 typedef RgbBufferFactory_var _var_type;
00228
00229 static inline RgbBufferFactory_ptr
00230 _duplicate(RgbBufferFactory_ptr p)
00231 {
00232 if(p)
00233 p -> _add_ref();
00234 return p;
00235 }
00236
00237 static inline RgbBufferFactory_ptr
00238 _nil()
00239 {
00240 return 0;
00241 }
00242
00243 static RgbBufferFactory_ptr _narrow(CORBA::Object_ptr);
00244 static RgbBufferFactory_ptr _unchecked_narrow(CORBA::Object_ptr);
00245
00246 static RgbBufferFactory_ptr _narrow(CORBA::AbstractBase_ptr);
00247 static RgbBufferFactory_ptr _unchecked_narrow(CORBA::AbstractBase_ptr);
00248
00249 static const char** _OB_staticIds();
00250
00251
00252
00253
00254 virtual RgbBuffer_ptr createRgbBuffer(CORBA::Long size) = 0;
00255 };
00256
00257
00258
00259
00260 class RgbSource : virtual public CORBA::Object
00261 {
00262 RgbSource(const RgbSource&);
00263 void operator=(const RgbSource&);
00264
00265 protected:
00266
00267 static const char* ids_[];
00268
00269 public:
00270
00271 RgbSource() { }
00272 virtual ~RgbSource() { }
00273
00274 typedef RgbSource_ptr _ptr_type;
00275 typedef RgbSource_var _var_type;
00276
00277 static inline RgbSource_ptr
00278 _duplicate(RgbSource_ptr p)
00279 {
00280 if(p)
00281 p -> _add_ref();
00282 return p;
00283 }
00284
00285 static inline RgbSource_ptr
00286 _nil()
00287 {
00288 return 0;
00289 }
00290
00291 static RgbSource_ptr _narrow(CORBA::Object_ptr);
00292 static RgbSource_ptr _unchecked_narrow(CORBA::Object_ptr);
00293
00294 static RgbSource_ptr _narrow(CORBA::AbstractBase_ptr);
00295 static RgbSource_ptr _unchecked_narrow(CORBA::AbstractBase_ptr);
00296
00297 static const char** _OB_staticIds();
00298
00299
00300
00301
00302 virtual RgbSeq* getRgb() = 0;
00303
00304
00305
00306
00307 virtual void fillRgb(RgbBuffer_ptr buffer) = 0;
00308 };
00309
00310 }
00311
00312
00313
00314
00315 namespace OBProxy_HxCorba
00316 {
00317
00318
00319
00320
00321 class RgbBuffer : virtual public ::HxCorba::RgbBuffer,
00322 virtual public OBCORBA::Object
00323 {
00324 RgbBuffer(const RgbBuffer&);
00325 void operator=(const RgbBuffer&);
00326
00327 protected:
00328
00329 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00330
00331 public:
00332
00333 RgbBuffer() { }
00334 virtual ~RgbBuffer() { }
00335
00336 virtual const char** _OB_ids() const;
00337
00338
00339
00340
00341 CORBA::Long size();
00342
00343
00344
00345
00346 ::HxCorba::RgbSeq* getRgb();
00347
00348
00349
00350
00351 void setRgb(const ::HxCorba::RgbSeq& pixels);
00352 };
00353
00354
00355
00356
00357 class RgbBufferFactory : virtual public ::HxCorba::RgbBufferFactory,
00358 virtual public OBCORBA::Object
00359 {
00360 RgbBufferFactory(const RgbBufferFactory&);
00361 void operator=(const RgbBufferFactory&);
00362
00363 protected:
00364
00365 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00366
00367 public:
00368
00369 RgbBufferFactory() { }
00370 virtual ~RgbBufferFactory() { }
00371
00372 virtual const char** _OB_ids() const;
00373
00374
00375
00376
00377 ::HxCorba::RgbBuffer_ptr createRgbBuffer(CORBA::Long size);
00378 };
00379
00380
00381
00382
00383 class RgbSource : virtual public ::HxCorba::RgbSource,
00384 virtual public OBCORBA::Object
00385 {
00386 RgbSource(const RgbSource&);
00387 void operator=(const RgbSource&);
00388
00389 protected:
00390
00391 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00392
00393 public:
00394
00395 RgbSource() { }
00396 virtual ~RgbSource() { }
00397
00398 virtual const char** _OB_ids() const;
00399
00400
00401
00402
00403 ::HxCorba::RgbSeq* getRgb();
00404
00405
00406
00407
00408 void fillRgb(::HxCorba::RgbBuffer_ptr buffer);
00409 };
00410
00411 }
00412
00413
00414
00415
00416 namespace OBStubImpl_HxCorba
00417 {
00418
00419
00420
00421
00422 class RgbBuffer : virtual public OB::StubImplBase
00423 {
00424 RgbBuffer(const RgbBuffer&);
00425 void operator=(const RgbBuffer&);
00426
00427 protected:
00428
00429 RgbBuffer() { }
00430
00431 public:
00432
00433 static inline RgbBuffer_ptr
00434 _duplicate(RgbBuffer_ptr p)
00435 {
00436 if(p)
00437 p -> _OB_incRef();
00438 return p;
00439 }
00440
00441 static inline RgbBuffer_ptr
00442 _nil()
00443 {
00444 return 0;
00445 }
00446
00447
00448
00449
00450 virtual CORBA::Long size() = 0;
00451
00452
00453
00454
00455 virtual ::HxCorba::RgbSeq* getRgb() = 0;
00456
00457
00458
00459
00460 virtual void setRgb(const ::HxCorba::RgbSeq& pixels) = 0;
00461 };
00462
00463
00464
00465
00466 class RgbBufferFactory : virtual public OB::StubImplBase
00467 {
00468 RgbBufferFactory(const RgbBufferFactory&);
00469 void operator=(const RgbBufferFactory&);
00470
00471 protected:
00472
00473 RgbBufferFactory() { }
00474
00475 public:
00476
00477 static inline RgbBufferFactory_ptr
00478 _duplicate(RgbBufferFactory_ptr p)
00479 {
00480 if(p)
00481 p -> _OB_incRef();
00482 return p;
00483 }
00484
00485 static inline RgbBufferFactory_ptr
00486 _nil()
00487 {
00488 return 0;
00489 }
00490
00491
00492
00493
00494 virtual ::HxCorba::RgbBuffer_ptr createRgbBuffer(CORBA::Long size) = 0;
00495 };
00496
00497
00498
00499
00500 class RgbSource : virtual public OB::StubImplBase
00501 {
00502 RgbSource(const RgbSource&);
00503 void operator=(const RgbSource&);
00504
00505 protected:
00506
00507 RgbSource() { }
00508
00509 public:
00510
00511 static inline RgbSource_ptr
00512 _duplicate(RgbSource_ptr p)
00513 {
00514 if(p)
00515 p -> _OB_incRef();
00516 return p;
00517 }
00518
00519 static inline RgbSource_ptr
00520 _nil()
00521 {
00522 return 0;
00523 }
00524
00525
00526
00527
00528 virtual ::HxCorba::RgbSeq* getRgb() = 0;
00529
00530
00531
00532
00533 virtual void fillRgb(::HxCorba::RgbBuffer_ptr buffer) = 0;
00534 };
00535
00536 }
00537
00538
00539
00540
00541 namespace OBMarshalStubImpl_HxCorba
00542 {
00543
00544
00545
00546
00547 class RgbBuffer : virtual public OBStubImpl_HxCorba::RgbBuffer,
00548 virtual public OB::MarshalStubImpl
00549 {
00550 RgbBuffer(const RgbBuffer&);
00551 void operator=(const RgbBuffer&);
00552
00553 protected:
00554
00555 RgbBuffer() { }
00556 friend class OBProxy_HxCorba::RgbBuffer;
00557
00558 public:
00559
00560
00561
00562
00563 virtual CORBA::Long size();
00564
00565
00566
00567
00568 virtual ::HxCorba::RgbSeq* getRgb();
00569
00570
00571
00572
00573 virtual void setRgb(const ::HxCorba::RgbSeq& pixels);
00574 };
00575
00576
00577
00578
00579 class RgbBufferFactory : virtual public OBStubImpl_HxCorba::RgbBufferFactory,
00580 virtual public OB::MarshalStubImpl
00581 {
00582 RgbBufferFactory(const RgbBufferFactory&);
00583 void operator=(const RgbBufferFactory&);
00584
00585 protected:
00586
00587 RgbBufferFactory() { }
00588 friend class OBProxy_HxCorba::RgbBufferFactory;
00589
00590 public:
00591
00592
00593
00594
00595 virtual ::HxCorba::RgbBuffer_ptr createRgbBuffer(CORBA::Long size);
00596 };
00597
00598
00599
00600
00601 class RgbSource : virtual public OBStubImpl_HxCorba::RgbSource,
00602 virtual public OB::MarshalStubImpl
00603 {
00604 RgbSource(const RgbSource&);
00605 void operator=(const RgbSource&);
00606
00607 protected:
00608
00609 RgbSource() { }
00610 friend class OBProxy_HxCorba::RgbSource;
00611
00612 public:
00613
00614
00615
00616
00617 virtual ::HxCorba::RgbSeq* getRgb();
00618
00619
00620
00621
00622 virtual void fillRgb(::HxCorba::RgbBuffer_ptr buffer);
00623 };
00624
00625 }
00626
00627
00628
00629
00630 namespace OBV_HxCorba
00631 {
00632
00633 }
00634
00635
00636
00637
00638 void operator<<=(CORBA::Any&, HxCorba::RgbSeq*);
00639 void operator<<=(CORBA::Any&, const HxCorba::RgbSeq&);
00640 CORBA::Boolean operator>>=(const CORBA::Any&, const HxCorba::RgbSeq*&);
00641
00642 inline void
00643 operator<<=(CORBA::Any_var& any, HxCorba::RgbSeq* val)
00644 {
00645 any.inout() <<= val;
00646 }
00647
00648 inline void
00649 operator<<=(CORBA::Any_var& any, const HxCorba::RgbSeq& val)
00650 {
00651 any.inout() <<= val;
00652 }
00653
00654 inline CORBA::Boolean
00655 operator>>=(const CORBA::Any_var& any, const HxCorba::RgbSeq*& val)
00656 {
00657 return any.in() >>= val;
00658 }
00659
00660
00661
00662
00663 namespace CORBA
00664 {
00665
00666 inline void
00667 release(::HxCorba::RgbBuffer_ptr p)
00668 {
00669 if(p)
00670 p -> _remove_ref();
00671 }
00672
00673 inline Boolean
00674 is_nil(::HxCorba::RgbBuffer_ptr p)
00675 {
00676 return p == 0;
00677 }
00678
00679 inline void
00680 release(OBStubImpl_HxCorba::RgbBuffer_ptr p)
00681 {
00682 if(p)
00683 p -> _OB_decRef();
00684 }
00685
00686 inline Boolean
00687 is_nil(OBStubImpl_HxCorba::RgbBuffer_ptr p)
00688 {
00689 return p == 0;
00690 }
00691
00692 }
00693
00694 void operator<<=(CORBA::Any&, HxCorba::RgbBuffer_ptr*);
00695 void operator<<=(CORBA::Any&, HxCorba::RgbBuffer_ptr);
00696 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::RgbBuffer_ptr&);
00697
00698 inline void
00699 operator<<=(CORBA::Any_var& any, HxCorba::RgbBuffer_ptr* val)
00700 {
00701 any.inout() <<= val;
00702 }
00703
00704 inline void
00705 operator<<=(CORBA::Any_var& any, HxCorba::RgbBuffer_ptr val)
00706 {
00707 any.inout() <<= val;
00708 }
00709
00710 inline CORBA::Boolean
00711 operator>>=(const CORBA::Any_var& any, HxCorba::RgbBuffer_ptr& val)
00712 {
00713 return any.in() >>= val;
00714 }
00715
00716
00717
00718
00719 namespace CORBA
00720 {
00721
00722 inline void
00723 release(::HxCorba::RgbBufferFactory_ptr p)
00724 {
00725 if(p)
00726 p -> _remove_ref();
00727 }
00728
00729 inline Boolean
00730 is_nil(::HxCorba::RgbBufferFactory_ptr p)
00731 {
00732 return p == 0;
00733 }
00734
00735 inline void
00736 release(OBStubImpl_HxCorba::RgbBufferFactory_ptr p)
00737 {
00738 if(p)
00739 p -> _OB_decRef();
00740 }
00741
00742 inline Boolean
00743 is_nil(OBStubImpl_HxCorba::RgbBufferFactory_ptr p)
00744 {
00745 return p == 0;
00746 }
00747
00748 }
00749
00750 void operator<<=(CORBA::Any&, HxCorba::RgbBufferFactory_ptr*);
00751 void operator<<=(CORBA::Any&, HxCorba::RgbBufferFactory_ptr);
00752 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::RgbBufferFactory_ptr&);
00753
00754 inline void
00755 operator<<=(CORBA::Any_var& any, HxCorba::RgbBufferFactory_ptr* val)
00756 {
00757 any.inout() <<= val;
00758 }
00759
00760 inline void
00761 operator<<=(CORBA::Any_var& any, HxCorba::RgbBufferFactory_ptr val)
00762 {
00763 any.inout() <<= val;
00764 }
00765
00766 inline CORBA::Boolean
00767 operator>>=(const CORBA::Any_var& any, HxCorba::RgbBufferFactory_ptr& val)
00768 {
00769 return any.in() >>= val;
00770 }
00771
00772
00773
00774
00775 namespace CORBA
00776 {
00777
00778 inline void
00779 release(::HxCorba::RgbSource_ptr p)
00780 {
00781 if(p)
00782 p -> _remove_ref();
00783 }
00784
00785 inline Boolean
00786 is_nil(::HxCorba::RgbSource_ptr p)
00787 {
00788 return p == 0;
00789 }
00790
00791 inline void
00792 release(OBStubImpl_HxCorba::RgbSource_ptr p)
00793 {
00794 if(p)
00795 p -> _OB_decRef();
00796 }
00797
00798 inline Boolean
00799 is_nil(OBStubImpl_HxCorba::RgbSource_ptr p)
00800 {
00801 return p == 0;
00802 }
00803
00804 }
00805
00806 void operator<<=(CORBA::Any&, HxCorba::RgbSource_ptr*);
00807 void operator<<=(CORBA::Any&, HxCorba::RgbSource_ptr);
00808 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::RgbSource_ptr&);
00809
00810 inline void
00811 operator<<=(CORBA::Any_var& any, HxCorba::RgbSource_ptr* val)
00812 {
00813 any.inout() <<= val;
00814 }
00815
00816 inline void
00817 operator<<=(CORBA::Any_var& any, HxCorba::RgbSource_ptr val)
00818 {
00819 any.inout() <<= val;
00820 }
00821
00822 inline CORBA::Boolean
00823 operator>>=(const CORBA::Any_var& any, HxCorba::RgbSource_ptr& val)
00824 {
00825 return any.in() >>= val;
00826 }
00827
00828 #endif