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

InvFPTextHandler.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 #include "TextHandler.hpp"
00012 #include "InvPushIndex.hpp"
00013 #include "InvFPPushIndex.hpp"
00014 
00015 
00016 #ifndef _INVFPTEXTHANDLER_HPP
00017 #define _INVFPTEXTHANDLER_HPP
00018 
00023 
00024 class InvFPTextHandler : public TextHandler {
00025 
00026 public:
00029   InvFPTextHandler(char * filename, int bufferSize, bool countStopWds = false, int ind = 1);
00030   ~InvFPTextHandler();
00031 
00033   char * handleDoc(char * docno);
00035   char * handleWord(char * word);
00036 
00038   void setDocManager(const char* mgrID);
00039 private:
00041   void endDoc();
00042 
00043 
00045   PushIndex * index;
00047   DocumentProps * dp;
00049   InvFPTerm * term;
00051   int docLength;
00053   int pos;
00055   bool countStopWds;
00056 
00059   bool first;
00060 };
00061 
00062 #endif
00063 

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