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

KeyfileTextHandler.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2003 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 // KeyfileTextHandler.hpp
00015 //
00016 
00017 #ifndef LEMUR_KEYFILE_TEXT_HANDLER_HPP
00018 #define LEMUR_KEYFILE_TEXT_HANDLER_HPP
00019 
00020 #include "TextHandler.hpp"
00021 #include "DocumentProps.hpp"
00022 
00027 class KeyfileTextHandler : public TextHandler {
00028 public:
00030   KeyfileTextHandler( class KeyfileIncIndex* index, bool countStops=false);
00031   ~KeyfileTextHandler();
00033   char * handleDoc(char * docno);
00035   char * handleWord(char * word);
00037   void setDocManager(const string &mgrID);
00038 
00039 private:
00040   void endDoc();
00041 
00042   int docLength;
00043   DocumentProps* dp;
00044   bool first;
00045   int pos;
00046   bool countStopWds;
00047   KeyfileIncIndex* _index;
00048 };
00049 
00050 #endif // LEMUR_KEYFILE_TEXT_HANDLER_HPP

Generated on Wed Nov 3 12:58:59 2004 for Lemur Toolkit by doxygen1.2.18