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  *
00003  *  Original source copyright (c) 2001, Carnegie Mellon University.
00004  *  See copyright.cmu for details.
00005  *  Modifications copyright (c) 2002, University of Massachusetts.
00006  *  See copyright.umass for details.
00007  *
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:
00027   // want to subclass this class for incremental.
00028   InvFPTextHandler() { }
00029   
00032   InvFPTextHandler(char * filename, int bufferSize, bool countStopWds = false, int ind = 1);
00033   ~InvFPTextHandler();
00034 
00036   char * handleDoc(char * docno);
00038   char * handleWord(char * word);
00039 
00041   void setDocManager(const char* mgrID);
00042   // want to subclass this class for incremental.
00043 protected:
00045   void endDoc();
00046 
00047 
00049   PushIndex * index;
00051   DocumentProps * dp;
00053   InvFPTerm * term;
00055   int docLength;
00057   int pos;
00059   bool countStopWds;
00060 
00063   bool first;
00064 };
00065 
00066 #endif
00067 

Generated on Mon Sep 30 14:13:21 2002 for LEMUR by doxygen1.2.18