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 != 4010000L)
00028 # error ORBacus version mismatch!
00029 # endif
00030 #endif
00031
00032
00033
00034
00035 namespace POA_HxCorba
00036 {
00037
00038
00039
00040
00041 class DatabaseSession : virtual public PortableServer::ServantBase
00042 {
00043 DatabaseSession(const DatabaseSession&);
00044 void operator=(const DatabaseSession&);
00045
00046 protected:
00047
00048
00049
00050
00051 void _OB_op_listVideos(OB::Upcall_ptr);
00052
00053
00054
00055
00056 void _OB_op_listSegmentations(OB::Upcall_ptr);
00057
00058
00059
00060
00061 void _OB_op_getSegmentation(OB::Upcall_ptr);
00062
00063
00064
00065
00066 void _OB_op_querySegments(OB::Upcall_ptr);
00067
00068
00069
00070
00071 void _OB_op_queryStrings(OB::Upcall_ptr);
00072
00073
00074
00075
00076 void _OB_op_queryMultipleSegments(OB::Upcall_ptr);
00077
00078
00079
00080
00081 void _OB_op_close(OB::Upcall_ptr);
00082
00083 public:
00084
00085 DatabaseSession() { }
00086
00087 virtual CORBA::Boolean _is_a(const char*)
00088 throw(CORBA::SystemException);
00089
00090 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00091 PortableServer::POA_ptr);
00092
00093 HxCorba::DatabaseSession_ptr _this();
00094
00095 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00096 const PortableServer::ObjectId&);
00097 virtual void _OB_dispatch(OB::Upcall_ptr);
00098
00099
00100
00101
00102 virtual HxCorba::StringSeq* listVideos()
00103 throw(CORBA::SystemException) = 0;
00104
00105
00106
00107
00108 virtual HxCorba::StringSeq* listSegmentations(const char* videoName)
00109 throw(CORBA::SystemException) = 0;
00110
00111
00112
00113
00114 virtual HxCorba::VxSegmentation_ptr getSegmentation(const char* videoName,
00115 const char* segName)
00116 throw(CORBA::SystemException) = 0;
00117
00118
00119
00120
00121 virtual HxCorba::VxSegmentSeq* querySegments(const char* sqlQuery)
00122 throw(HxCorba::DatabaseException,
00123 CORBA::SystemException) = 0;
00124
00125
00126
00127
00128 virtual HxCorba::StringSeq* queryStrings(const char* sqlQuery)
00129 throw(HxCorba::DatabaseException,
00130 CORBA::SystemException) = 0;
00131
00132
00133
00134
00135 virtual HxCorba::SegmentQueryResultSeq* queryMultipleSegments(const char* sqlQuery)
00136 throw(HxCorba::DatabaseException,
00137 CORBA::SystemException) = 0;
00138
00139
00140
00141
00142 virtual void close()
00143 throw(CORBA::SystemException) = 0;
00144 };
00145
00146
00147
00148
00149 class Database : virtual public PortableServer::ServantBase
00150 {
00151 Database(const Database&);
00152 void operator=(const Database&);
00153
00154 protected:
00155
00156
00157
00158
00159 void _OB_op_openSession(OB::Upcall_ptr);
00160
00161 public:
00162
00163 Database() { }
00164
00165 virtual CORBA::Boolean _is_a(const char*)
00166 throw(CORBA::SystemException);
00167
00168 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00169 PortableServer::POA_ptr);
00170
00171 HxCorba::Database_ptr _this();
00172
00173 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00174 const PortableServer::ObjectId&);
00175 virtual void _OB_dispatch(OB::Upcall_ptr);
00176
00177
00178
00179
00180 virtual HxCorba::DatabaseSession_ptr openSession(const char* username,
00181 const char* password)
00182 throw(HxCorba::DatabaseException,
00183 CORBA::SystemException) = 0;
00184 };
00185
00186 }
00187
00188
00189
00190
00191 namespace OBDirectStubImpl_HxCorba
00192 {
00193
00194
00195
00196
00197 class DatabaseSession : virtual public OBStubImpl_HxCorba::DatabaseSession,
00198 virtual public OB::DirectStubImpl
00199 {
00200 DatabaseSession(const DatabaseSession&);
00201 void operator=(const DatabaseSession&);
00202
00203 protected:
00204
00205 #ifdef HAVE_VCPLUSPLUS_BUGS
00206
00207 DatabaseSession() { }
00208
00209 #endif
00210
00211 DatabaseSession(PortableServer::POA_ptr,
00212 const PortableServer::ObjectId&,
00213 PortableServer::ServantBase*);
00214
00215 friend class POA_HxCorba::DatabaseSession;
00216
00217 public:
00218
00219
00220
00221
00222 virtual HxCorba::StringSeq* listVideos();
00223
00224
00225
00226
00227 virtual HxCorba::StringSeq* listSegmentations(const char* videoName);
00228
00229
00230
00231
00232 virtual HxCorba::VxSegmentation_ptr getSegmentation(const char* videoName,
00233 const char* segName);
00234
00235
00236
00237
00238 virtual HxCorba::VxSegmentSeq* querySegments(const char* sqlQuery);
00239
00240
00241
00242
00243 virtual HxCorba::StringSeq* queryStrings(const char* sqlQuery);
00244
00245
00246
00247
00248 virtual HxCorba::SegmentQueryResultSeq* queryMultipleSegments(const char* sqlQuery);
00249
00250
00251
00252
00253 virtual void close();
00254 };
00255
00256
00257
00258
00259 class Database : virtual public OBStubImpl_HxCorba::Database,
00260 virtual public OB::DirectStubImpl
00261 {
00262 Database(const Database&);
00263 void operator=(const Database&);
00264
00265 protected:
00266
00267 #ifdef HAVE_VCPLUSPLUS_BUGS
00268
00269 Database() { }
00270
00271 #endif
00272
00273 Database(PortableServer::POA_ptr,
00274 const PortableServer::ObjectId&,
00275 PortableServer::ServantBase*);
00276
00277 friend class POA_HxCorba::Database;
00278
00279 public:
00280
00281
00282
00283
00284 virtual HxCorba::DatabaseSession_ptr openSession(const char* username,
00285 const char* password);
00286 };
00287
00288 }
00289
00290 #endif