00001 /*========================================================================== 00002 * 00003 * Original source copyright (c) 2003, Carnegie Mellon University. 00004 * See copyright.cmu for details. 00005 * 00006 *========================================================================== 00007 */ 00008 00009 #ifndef _PROPINDEXTH_HPP 00010 #define _PROPINDEXTH_HPP 00011 00012 #include "TextHandler.hpp" 00013 #include "InvFPPushIndex.hpp" 00014 00015 #define MAX_WORD_LENGTH 25 00016 00029 class PropIndexTH : public TextHandler { 00030 00031 public: 00032 // want to subclass this class for incremental. 00033 PropIndexTH() { } 00034 00037 PropIndexTH(char * filename, int bufferSize, bool countStopWds = false, int ind = 1); 00038 PropIndexTH(char * filename, int bufferSize, bool countStopWds, string ind); 00039 ~PropIndexTH(); 00040 00042 char * handleDoc(char * docno); 00044 char * handleWord(char * word, char* original, PropertyList* list); 00045 00047 void setDocManager(const char* mgrID); 00048 // want to subclass this class for incremental. 00049 protected: 00051 void endDoc(); 00052 00054 PushIndex * index; 00056 DocumentProps * dp; 00058 InvFPTerm * term; 00060 int docLength; 00061 00063 bool countStopWds; 00064 00067 bool first; 00068 }; 00069 00070 #endif 00071