00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaDatabase_skel_h__
00016 #define ___HxCorbaDatabase_skel_h__
00017
00018 #include <HxCorbaDatabase.h>
00019
00020 #include <HxCorbaVxSegmentation_skel.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
00033
00034
00035 namespace POA_HxCorba
00036 {
00037
00038
00039
00040
00041 class VxSegmentBuilder : virtual public PortableServer::ServantBase
00042 {
00043 VxSegmentBuilder(const VxSegmentBuilder&);
00044 void operator=(const VxSegmentBuilder&);
00045
00046 protected:
00047
00048
00049
00050
00051 void _OB_op_addInt(OB::Upcall_ptr);
00052
00053
00054
00055
00056 void _OB_op_addDouble(OB::Upcall_ptr);
00057
00058
00059
00060
00061 void _OB_op_addString(OB::Upcall_ptr);
00062
00063
00064
00065
00066 void _OB_op_close(OB::Upcall_ptr);
00067
00068 public:
00069
00070 VxSegmentBuilder() { }
00071
00072 virtual CORBA::Boolean _is_a(const char*)
00073 throw(CORBA::SystemException);
00074
00075 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00076 PortableServer::POA_ptr);
00077
00078 HxCorba::VxSegmentBuilder_ptr _this();
00079
00080 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00081 const PortableServer::ObjectId&);
00082 virtual void _OB_dispatch(OB::Upcall_ptr);
00083
00084
00085
00086
00087 virtual void addInt(const char* id,
00088 CORBA::Long value)
00089 throw(HxCorba::DatabaseException,
00090 CORBA::SystemException) = 0;
00091
00092
00093
00094
00095 virtual void addDouble(const char* id,
00096 CORBA::Double value)
00097 throw(HxCorba::DatabaseException,
00098 CORBA::SystemException) = 0;
00099
00100
00101
00102
00103 virtual void addString(const char* id,
00104 const char* value)
00105 throw(HxCorba::DatabaseException,
00106 CORBA::SystemException) = 0;
00107
00108
00109
00110
00111 virtual void close()
00112 throw(CORBA::SystemException) = 0;
00113 };
00114
00115
00116
00117
00118 class VxSegmentationBuilder : virtual public PortableServer::ServantBase
00119 {
00120 VxSegmentationBuilder(const VxSegmentationBuilder&);
00121 void operator=(const VxSegmentationBuilder&);
00122
00123 protected:
00124
00125
00126
00127
00128 void _OB_op_setDescription(OB::Upcall_ptr);
00129
00130
00131
00132
00133 void _OB_op_addSegment(OB::Upcall_ptr);
00134
00135
00136
00137
00138 void _OB_op_close(OB::Upcall_ptr);
00139
00140 public:
00141
00142 VxSegmentationBuilder() { }
00143
00144 virtual CORBA::Boolean _is_a(const char*)
00145 throw(CORBA::SystemException);
00146
00147 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00148 PortableServer::POA_ptr);
00149
00150 HxCorba::VxSegmentationBuilder_ptr _this();
00151
00152 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00153 const PortableServer::ObjectId&);
00154 virtual void _OB_dispatch(OB::Upcall_ptr);
00155
00156
00157
00158
00159 virtual void setDescription(const char* description)
00160 throw(CORBA::SystemException) = 0;
00161
00162
00163
00164
00165 virtual HxCorba::VxSegmentBuilder_ptr addSegment(CORBA::Long start,
00166 CORBA::Long end)
00167 throw(HxCorba::DatabaseException,
00168 CORBA::SystemException) = 0;
00169
00170
00171
00172
00173 virtual void close()
00174 throw(CORBA::SystemException) = 0;
00175 };
00176
00177
00178
00179
00180 class VxJoinedSegments : virtual public PortableServer::ServantBase
00181 {
00182 VxJoinedSegments(const VxJoinedSegments&);
00183 void operator=(const VxJoinedSegments&);
00184
00185 protected:
00186
00187
00188
00189
00190 void _OB_op_start(OB::Upcall_ptr);
00191
00192
00193
00194
00195 void _OB_op_end(OB::Upcall_ptr);
00196
00197
00198
00199
00200 void _OB_op_getInt(OB::Upcall_ptr);
00201
00202
00203
00204
00205 void _OB_op_getDouble(OB::Upcall_ptr);
00206
00207
00208
00209
00210 void _OB_op_getString(OB::Upcall_ptr);
00211
00212
00213
00214
00215 void _OB_op_getIntFlag(OB::Upcall_ptr);
00216
00217
00218
00219
00220 void _OB_op_getDoubleFlag(OB::Upcall_ptr);
00221
00222
00223
00224
00225 void _OB_op_getStringFlag(OB::Upcall_ptr);
00226
00227
00228
00229
00230 void _OB_op_listSegmentations(OB::Upcall_ptr);
00231
00232
00233
00234
00235 void _OB_op_getSegment(OB::Upcall_ptr);
00236
00237 public:
00238
00239 VxJoinedSegments() { }
00240
00241 virtual CORBA::Boolean _is_a(const char*)
00242 throw(CORBA::SystemException);
00243
00244 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00245 PortableServer::POA_ptr);
00246
00247 HxCorba::VxJoinedSegments_ptr _this();
00248
00249 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00250 const PortableServer::ObjectId&);
00251 virtual void _OB_dispatch(OB::Upcall_ptr);
00252
00253
00254
00255
00256 virtual CORBA::Long start()
00257 throw(CORBA::SystemException) = 0;
00258
00259
00260
00261
00262 virtual CORBA::Long end()
00263 throw(CORBA::SystemException) = 0;
00264
00265
00266
00267
00268 virtual CORBA::Long getInt(const char* segmentation,
00269 const char* id)
00270 throw(CORBA::SystemException) = 0;
00271
00272
00273
00274
00275 virtual CORBA::Double getDouble(const char* segmentation,
00276 const char* id)
00277 throw(CORBA::SystemException) = 0;
00278
00279
00280
00281
00282 virtual char* getString(const char* segmentation,
00283 const char* id)
00284 throw(CORBA::SystemException) = 0;
00285
00286
00287
00288
00289 virtual CORBA::Long getIntFlag(const char* segmentation,
00290 const char* id,
00291 CORBA::Boolean_out present)
00292 throw(CORBA::SystemException) = 0;
00293
00294
00295
00296
00297 virtual CORBA::Double getDoubleFlag(const char* segmentation,
00298 const char* id,
00299 CORBA::Boolean_out present)
00300 throw(CORBA::SystemException) = 0;
00301
00302
00303
00304
00305 virtual char* getStringFlag(const char* segmentation,
00306 const char* id,
00307 CORBA::Boolean_out present)
00308 throw(CORBA::SystemException) = 0;
00309
00310
00311
00312
00313 virtual HxCorba::StringSeq* listSegmentations()
00314 throw(CORBA::SystemException) = 0;
00315
00316
00317
00318
00319 virtual HxCorba::VxSegment_ptr getSegment(const char* segmentation)
00320 throw(CORBA::SystemException) = 0;
00321 };
00322
00323
00324
00325
00326 class DatabaseSession : virtual public PortableServer::ServantBase
00327 {
00328 DatabaseSession(const DatabaseSession&);
00329 void operator=(const DatabaseSession&);
00330
00331 protected:
00332
00333
00334
00335
00336 void _OB_op_listVideos(OB::Upcall_ptr);
00337
00338
00339
00340
00341 void _OB_op_listSegmentations(OB::Upcall_ptr);
00342
00343
00344
00345
00346 void _OB_op_getSegmentation(OB::Upcall_ptr);
00347
00348
00349
00350
00351 void _OB_op_addSegmentation(OB::Upcall_ptr);
00352
00353
00354
00355
00356 void _OB_op_buildSegmentation(OB::Upcall_ptr);
00357
00358
00359
00360
00361 void _OB_op_querySegments(OB::Upcall_ptr);
00362
00363
00364
00365
00366 void _OB_op_querySegmentations(OB::Upcall_ptr);
00367
00368
00369
00370
00371 void _OB_op_queryIntersections(OB::Upcall_ptr);
00372
00373
00374
00375
00376 void _OB_op_queryXML(OB::Upcall_ptr);
00377
00378
00379
00380
00381 void _OB_op_close(OB::Upcall_ptr);
00382
00383 public:
00384
00385 DatabaseSession() { }
00386
00387 virtual CORBA::Boolean _is_a(const char*)
00388 throw(CORBA::SystemException);
00389
00390 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00391 PortableServer::POA_ptr);
00392
00393 HxCorba::DatabaseSession_ptr _this();
00394
00395 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00396 const PortableServer::ObjectId&);
00397 virtual void _OB_dispatch(OB::Upcall_ptr);
00398
00399
00400
00401
00402 virtual HxCorba::StringSeq* listVideos()
00403 throw(CORBA::SystemException) = 0;
00404
00405
00406
00407
00408 virtual HxCorba::StringSeq* listSegmentations(const char* videoName)
00409 throw(CORBA::SystemException) = 0;
00410
00411
00412
00413
00414 virtual HxCorba::VxSegmentation_ptr getSegmentation(const char* videoName,
00415 const char* segName)
00416 throw(CORBA::SystemException) = 0;
00417
00418
00419
00420
00421 virtual void addSegmentation(HxCorba::VxSegmentation_ptr seg,
00422 const char* videoName,
00423 const char* segName,
00424 const char* description)
00425 throw(HxCorba::DatabaseException,
00426 CORBA::SystemException) = 0;
00427
00428
00429
00430
00431 virtual HxCorba::VxSegmentationBuilder_ptr buildSegmentation(const char* videoName,
00432 const char* segName)
00433 throw(HxCorba::DatabaseException,
00434 CORBA::SystemException) = 0;
00435
00436
00437
00438
00439 virtual HxCorba::VxSegmentSeq* querySegments(const char* sqlQuery)
00440 throw(HxCorba::DatabaseException,
00441 CORBA::SystemException) = 0;
00442
00443
00444
00445
00446 virtual HxCorba::VxSegmentSeq* querySegmentations(const char* videoName,
00447 const HxCorba::SegmentationCondition& segCond,
00448 const HxCorba::OverlappingCondSeq& overlappings)
00449 throw(HxCorba::DatabaseException,
00450 CORBA::SystemException) = 0;
00451
00452
00453
00454
00455 virtual HxCorba::VxJoinedSegmentsSeq* queryIntersections(const char* videoName,
00456 const HxCorba::SegmentationConditionSeq& conds)
00457 throw(HxCorba::DatabaseException,
00458 CORBA::SystemException) = 0;
00459
00460
00461
00462
00463 virtual char* queryXML(const char* sqlQuery)
00464 throw(HxCorba::DatabaseException,
00465 CORBA::SystemException) = 0;
00466
00467
00468
00469
00470 virtual void close()
00471 throw(CORBA::SystemException) = 0;
00472 };
00473
00474
00475
00476
00477 class Database : virtual public PortableServer::ServantBase
00478 {
00479 Database(const Database&);
00480 void operator=(const Database&);
00481
00482 protected:
00483
00484
00485
00486
00487 void _OB_op_openSession(OB::Upcall_ptr);
00488
00489 public:
00490
00491 Database() { }
00492
00493 virtual CORBA::Boolean _is_a(const char*)
00494 throw(CORBA::SystemException);
00495
00496 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00497 PortableServer::POA_ptr);
00498
00499 HxCorba::Database_ptr _this();
00500
00501 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00502 const PortableServer::ObjectId&);
00503 virtual void _OB_dispatch(OB::Upcall_ptr);
00504
00505
00506
00507
00508 virtual HxCorba::DatabaseSession_ptr openSession(const char* username,
00509 const char* password)
00510 throw(HxCorba::DatabaseException,
00511 CORBA::SystemException) = 0;
00512 };
00513
00514 }
00515
00516
00517
00518
00519 namespace OBDirectStubImpl_HxCorba
00520 {
00521
00522
00523
00524
00525 class VxSegmentBuilder : virtual public OBStubImpl_HxCorba::VxSegmentBuilder,
00526 virtual public OB::DirectStubImpl
00527 {
00528 VxSegmentBuilder(const VxSegmentBuilder&);
00529 void operator=(const VxSegmentBuilder&);
00530
00531 protected:
00532
00533 #ifdef HAVE_VCPLUSPLUS_BUGS
00534
00535 VxSegmentBuilder() { }
00536
00537 #endif
00538
00539 VxSegmentBuilder(PortableServer::POA_ptr,
00540 const PortableServer::ObjectId&,
00541 PortableServer::ServantBase*);
00542
00543 friend class POA_HxCorba::VxSegmentBuilder;
00544
00545 public:
00546
00547
00548
00549
00550 virtual void addInt(const char* id,
00551 CORBA::Long value);
00552
00553
00554
00555
00556 virtual void addDouble(const char* id,
00557 CORBA::Double value);
00558
00559
00560
00561
00562 virtual void addString(const char* id,
00563 const char* value);
00564
00565
00566
00567
00568 virtual void close();
00569 };
00570
00571
00572
00573
00574 class VxSegmentationBuilder : virtual public OBStubImpl_HxCorba::VxSegmentationBuilder,
00575 virtual public OB::DirectStubImpl
00576 {
00577 VxSegmentationBuilder(const VxSegmentationBuilder&);
00578 void operator=(const VxSegmentationBuilder&);
00579
00580 protected:
00581
00582 #ifdef HAVE_VCPLUSPLUS_BUGS
00583
00584 VxSegmentationBuilder() { }
00585
00586 #endif
00587
00588 VxSegmentationBuilder(PortableServer::POA_ptr,
00589 const PortableServer::ObjectId&,
00590 PortableServer::ServantBase*);
00591
00592 friend class POA_HxCorba::VxSegmentationBuilder;
00593
00594 public:
00595
00596
00597
00598
00599 virtual void setDescription(const char* description);
00600
00601
00602
00603
00604 virtual HxCorba::VxSegmentBuilder_ptr addSegment(CORBA::Long start,
00605 CORBA::Long end);
00606
00607
00608
00609
00610 virtual void close();
00611 };
00612
00613
00614
00615
00616 class VxJoinedSegments : virtual public OBStubImpl_HxCorba::VxJoinedSegments,
00617 virtual public OB::DirectStubImpl
00618 {
00619 VxJoinedSegments(const VxJoinedSegments&);
00620 void operator=(const VxJoinedSegments&);
00621
00622 protected:
00623
00624 #ifdef HAVE_VCPLUSPLUS_BUGS
00625
00626 VxJoinedSegments() { }
00627
00628 #endif
00629
00630 VxJoinedSegments(PortableServer::POA_ptr,
00631 const PortableServer::ObjectId&,
00632 PortableServer::ServantBase*);
00633
00634 friend class POA_HxCorba::VxJoinedSegments;
00635
00636 public:
00637
00638
00639
00640
00641 virtual CORBA::Long start();
00642
00643
00644
00645
00646 virtual CORBA::Long end();
00647
00648
00649
00650
00651 virtual CORBA::Long getInt(const char* segmentation,
00652 const char* id);
00653
00654
00655
00656
00657 virtual CORBA::Double getDouble(const char* segmentation,
00658 const char* id);
00659
00660
00661
00662
00663 virtual char* getString(const char* segmentation,
00664 const char* id);
00665
00666
00667
00668
00669 virtual CORBA::Long getIntFlag(const char* segmentation,
00670 const char* id,
00671 CORBA::Boolean_out present);
00672
00673
00674
00675
00676 virtual CORBA::Double getDoubleFlag(const char* segmentation,
00677 const char* id,
00678 CORBA::Boolean_out present);
00679
00680
00681
00682
00683 virtual char* getStringFlag(const char* segmentation,
00684 const char* id,
00685 CORBA::Boolean_out present);
00686
00687
00688
00689
00690 virtual HxCorba::StringSeq* listSegmentations();
00691
00692
00693
00694
00695 virtual HxCorba::VxSegment_ptr getSegment(const char* segmentation);
00696 };
00697
00698
00699
00700
00701 class DatabaseSession : virtual public OBStubImpl_HxCorba::DatabaseSession,
00702 virtual public OB::DirectStubImpl
00703 {
00704 DatabaseSession(const DatabaseSession&);
00705 void operator=(const DatabaseSession&);
00706
00707 protected:
00708
00709 #ifdef HAVE_VCPLUSPLUS_BUGS
00710
00711 DatabaseSession() { }
00712
00713 #endif
00714
00715 DatabaseSession(PortableServer::POA_ptr,
00716 const PortableServer::ObjectId&,
00717 PortableServer::ServantBase*);
00718
00719 friend class POA_HxCorba::DatabaseSession;
00720
00721 public:
00722
00723
00724
00725
00726 virtual HxCorba::StringSeq* listVideos();
00727
00728
00729
00730
00731 virtual HxCorba::StringSeq* listSegmentations(const char* videoName);
00732
00733
00734
00735
00736 virtual HxCorba::VxSegmentation_ptr getSegmentation(const char* videoName,
00737 const char* segName);
00738
00739
00740
00741
00742 virtual void addSegmentation(HxCorba::VxSegmentation_ptr seg,
00743 const char* videoName,
00744 const char* segName,
00745 const char* description);
00746
00747
00748
00749
00750 virtual HxCorba::VxSegmentationBuilder_ptr buildSegmentation(const char* videoName,
00751 const char* segName);
00752
00753
00754
00755
00756 virtual HxCorba::VxSegmentSeq* querySegments(const char* sqlQuery);
00757
00758
00759
00760
00761 virtual HxCorba::VxSegmentSeq* querySegmentations(const char* videoName,
00762 const HxCorba::SegmentationCondition& segCond,
00763 const HxCorba::OverlappingCondSeq& overlappings);
00764
00765
00766
00767
00768 virtual HxCorba::VxJoinedSegmentsSeq* queryIntersections(const char* videoName,
00769 const HxCorba::SegmentationConditionSeq& conds);
00770
00771
00772
00773
00774 virtual char* queryXML(const char* sqlQuery);
00775
00776
00777
00778
00779 virtual void close();
00780 };
00781
00782
00783
00784
00785 class Database : virtual public OBStubImpl_HxCorba::Database,
00786 virtual public OB::DirectStubImpl
00787 {
00788 Database(const Database&);
00789 void operator=(const Database&);
00790
00791 protected:
00792
00793 #ifdef HAVE_VCPLUSPLUS_BUGS
00794
00795 Database() { }
00796
00797 #endif
00798
00799 Database(PortableServer::POA_ptr,
00800 const PortableServer::ObjectId&,
00801 PortableServer::ServantBase*);
00802
00803 friend class POA_HxCorba::Database;
00804
00805 public:
00806
00807
00808
00809
00810 virtual HxCorba::DatabaseSession_ptr openSession(const char* username,
00811 const char* password);
00812 };
00813
00814 }
00815
00816 #endif