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

LemurDBManager.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.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 
00013 
00014 #ifndef _LEMURDBMANAGER_HPP
00015 #define _LEMURDBMANAGER_HPP
00016 #include "IndexManager.hpp"
00017 
00018 #include "DBManager.hpp"
00019 #include "RetrievalMethod.hpp"
00020 #include "LemurMemParser.hpp"
00021 #include "RetMethodManager.hpp"
00022 namespace lemur 
00023 {
00024   namespace distrib 
00025   {
00026     
00030     class LemurDBManager : public DBManager {
00031 
00032     public:
00035       void open(const string &dbname);
00036 
00038       results_t * query (const char * query, int numdocs) const;
00039 
00042       MemParser * getParser() const;
00043 
00045       doc_t * getDoc(const docid_t docid) const;
00046 
00048       void output(const docid_t docid) const;
00050       void setOutputFile(const string &filename) const;
00051 
00053       void close();
00054 
00055     private:
00056   
00057       lemur::api::Index * index;
00058       lemur::api::RetrievalMethod * model;
00059       lemur::api::ScoreAccumulator * accumulator;
00060       lemur::api::IndexedRealVector * results;
00061       LemurMemParser * parser;
00062       mutable ofstream * outfile;
00063 
00064     };
00065   }
00066 }
00067 
00068 #endif

Generated on Tue Jun 15 11:02:54 2010 for Lemur by doxygen 1.3.4