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 #include "TextHandler.hpp" 00013 #include "Index.hpp" 00014 #include "InvFPTypes.hpp" 00015 00016 #ifndef _QUERYTEXTHANDLER_HPP 00017 #define _QUERYTEXTHANDLER_HPP 00018 00019 namespace lemur 00020 { 00021 namespace parse 00022 { 00023 00034 00035 class QueryTextHandler : public lemur::api::TextHandler { 00036 00037 public: 00038 00039 QueryTextHandler(); 00040 00041 00042 char * handleWord(char * word); 00043 00044 00046 void setIndex(const lemur::api::Index * ind); 00047 00048 private: 00049 00051 const lemur::api::Index * index; 00052 }; 00053 } 00054 } 00055 00056 #endif