Main Page   Namespace List   Class Hierarchy   Alphabetical List   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(const string &filename, int bufferSize, 
00033                    bool countStopWds = false, int ind = 1);
00034   ~InvFPTextHandler();
00035 
00037   char * handleDoc(char * docno);
00039   char * handleWord(char * word);
00040 
00042   void setDocManager(const string &mgrID);
00043   // want to subclass this class for incremental.
00044 protected:
00046   void endDoc();
00047 
00048 
00050   PushIndex * index;
00052   DocumentProps * dp;
00054   InvFPTerm * term;
00056   int docLength;
00058   int pos;
00060   bool countStopWds;
00061 
00064   bool first;
00065 };
00066 
00067 #endif
00068 

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