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(char * csName, int bufferSize, bool countStopWords = false); 00017 ~CtfIndexer(); 00018 00019 char * handleWord(char * word); 00020 00021 void newDb(char * name); 00022 00023 private: 00024 00025 int ctfCount; 00026 bool first; 00027 00028 InvPushIndex * collsel; 00029 00030 DocumentProps * csdp; 00031 InvFPTerm * term; 00032 00033 00034 bool countStopWds; 00035 }; 00036 00037 #endif