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

PropIndexTH.hpp

Go to the documentation of this file.
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(const string &filename, int bufferSize, 
00038               bool countStopWds = false, int ind = 1);
00039   PropIndexTH(const string &filename, int bufferSize, 
00040               bool countStopWds, string ind);
00041   ~PropIndexTH();
00042 
00044   char * handleDoc(char * docno);
00046   char * handleWord(char * word, const char* original, PropertyList* list);
00047 
00049   void setDocManager(const string &mgrID);
00050   // want to subclass this class for incremental.
00051 protected:
00053   void endDoc();
00054 
00056   PushIndex * index;
00058   DocumentProps * dp;
00060   InvFPTerm * term;
00062   int docLength;
00063 
00065   bool countStopWds;
00066 
00069   bool first;
00070 };
00071 
00072 #endif
00073 

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