Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MindDBManager.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.cs.cmu.edu/~lemur/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 
00013 
00014 #ifndef _MINDDBMANAGER_HPP
00015 #define _MINDDBMANAGER_HPP
00016 
00017 #include "DBManager.hpp"
00018 #include "Param.hpp"
00019 
00020 #include "soapH.h"
00021 
00022 
00024 namespace MindParameter {
00025   static String registry;
00026 
00028   static void get() {
00029     registry = ParamGetString("MindRegistry");
00030   }
00031 };
00032 
00033 
00037 class MindDBManager : public DBManager, public MemParser {
00038 
00039 public:
00040   MindDBManager();
00041 
00042   ~MindDBManager();
00043 
00044   
00051   void open(char * dbname);
00052 
00054   results_t * query (char * query, int numdocs);
00055 
00057   void parse(doc_t * doc);
00058 
00060   MemParser * getParser();
00061 
00063   doc_t * getDoc(docid_t docid);
00064 
00066   void output(docid_t docid);
00069   void setOutputFile(char * filename);
00070 
00072   void close();
00073 
00074 
00075 private:
00076   
00077   void changeNamespace(char * id, char * ns, char * re);
00078 
00079   struct soap * soap;
00080 
00081   char * registry;
00082   char * intrface;
00083   char * interfaceName;
00084   char * construction;
00085   char * constructionName;
00086   char * proxy;
00087   char * proxyName;
00088 
00089   char * sampleAttribute;
00090   char * schemaName;
00091 
00092   // schema of the database
00093   mindtype__Schema * schema;
00094   // result of the last query
00095   mindtype__PropResult * mindResult;
00096 
00097 };
00098 
00099 #endif

Generated at Fri Jul 26 18:26:24 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000