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

QueryParserFactory.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2005 University of Massachusetts.  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 // QueryParserFactory
00015 //
00016 // 30 Aug 2005 -- dmf
00017 //
00018 
00019 #ifndef INDRI_QUERYPARSERFACTORY_HPP
00020 #define INDRI_QUERYPARSERFACTORY_HPP
00021 #include <string>
00022 #include "antlr/ANTLRException.hpp"
00023 namespace indri
00024 {
00025   namespace lang 
00026   {
00027     class ScoredExtentNode;
00028   }
00029   
00030   namespace api
00031   {
00034     class QueryParserWrapper {
00035     public:
00036       virtual ~QueryParserWrapper() {}
00037       virtual indri::lang::ScoredExtentNode *query() = 0;
00038     };
00039 
00040 
00043     class QueryParserFactory {
00044     private:
00045 
00046     
00047     public:
00051       static QueryParserWrapper *get(const std::string &query, 
00052                                      const std::string &parserType = "indri");
00053     };
00054   }
00055 }
00056 
00057 #endif // INDRI_QUERYPARSERFACTORY_HPP

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