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