00001 00002 #include "TextHandler.hpp" 00003 #include "InvPushIndex.hpp" 00004 #include "Parser.hpp" 00005 #include "WordSet.hpp" 00006 00007 #include <stdio.h> 00008 00009 #ifndef _CTFINDEXER_HPP 00010 #define _CTFINDEXER_HPP 00011 00012 00013 class CtfIndexer : public TextHandler { 00014 00015 public: 00016 CtfIndexer(const string &csName, int bufferSize, 00017 bool countStopWords = false); 00018 ~CtfIndexer(); 00019 00020 char * handleWord(char * word); 00021 00022 void newDb(const string &name); 00023 00024 private: 00025 int ctfCount; 00026 bool first; 00027 InvPushIndex * collsel; 00028 DocumentProps * csdp; 00029 InvFPTerm * term; 00030 bool countStopWds; 00031 }; 00032 00033 #endif