Horus Doc || IDL Reference || C++ Binding   Java Binding || Doxygen's quick Index  

HxCorbaDatabase.idl

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2001, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Marc Navarro            (mnavarro@wins.uva.nl)
00007  */
00008 
00009 #ifndef HxCorbaDatabase_idl
00010 #define HxCorbaDatabase_idl
00011 
00012 #include "HxCorbaVxSegmentation.idl"
00013 
00014 module HxCorba
00015 {
00016 
00018 exception DatabaseException 
00019 {
00020     long            dbCode;
00021     string          dbMessage;
00022     string          message; // maybe more friendly
00023 };
00024     
00025 /*interface VxSegmentBuilder
00026 {
00027     void                addInt(in string id, in long value)
00028                             raises(DatabaseException);
00029     void                addDouble(in string id, in double value)
00030                             raises(DatabaseException);
00031     void                addString(in string id, in string value)
00032                             raises(DatabaseException);
00033 
00034     void                close();
00035 };
00036 
00037 interface VxSegmentationBuilder
00038 {
00039     void                setDescription(in string description);
00040     VxSegmentBuilder    addSegment(in long start, in long end)
00041                             raises(DatabaseException);
00042 
00043     void                close();
00044 };*/
00045 
00046 
00048 struct SegmentQueryResult
00049 {
00050     string      videoName;
00051     string      segmentationName;
00052     VxSegment   segment;
00053     VxTimeSpan  time;
00054 };
00055 
00057 typedef sequence<SegmentQueryResult> SegmentQueryResultSeq;
00058 
00059 
00061 interface DatabaseSession
00062 {
00063     StringSeq           listVideos();
00064     StringSeq           listSegmentations(in string videoName);
00065     VxSegmentation      getSegmentation(in string videoName, in string segName);
00066 
00067     /*void                addSegmentation(in VxSegmentation seg,
00068                             in string videoName, in string segName,
00069                             in string description)
00070                                 raises(DatabaseException);
00071 
00072     VxSegmentationBuilder buildSegmentation(in string videoName, 
00073         in string segName) raises(DatabaseException);*/
00074 
00075 
00076     VxSegmentSeq        querySegments(in string sqlQuery)
00077                                 raises(DatabaseException);
00078 
00079     StringSeq           queryStrings(in string sqlQuery)
00080                                 raises(DatabaseException);
00081 
00082     SegmentQueryResultSeq queryMultipleSegments(in string sqlQuery)
00083                                 raises(DatabaseException);
00084 
00085     void                close();
00086 };
00087 
00088 
00090 interface Database
00091 {
00092     DatabaseSession   openSession(in string username, in string password)
00093                           raises(DatabaseException);
00094 };
00095     
00096 }; // module HxCorba
00097 
00098 #endif // HxCorbaDatabase_idl

Generated on Mon Jan 27 15:09:38 2003 for IDLReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001