00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "TextHandler.hpp"
00013
00014 #include <fstream>
00015 #include "common_headers.hpp"
00016
00017 #ifndef _WRITERTEXTHANDLER_HPP
00018 #define _WRITERTEXTHANDLER_HPP
00019
00026
00027
00028 class WriterTextHandler : public TextHandler {
00029
00030 public:
00031
00033 WriterTextHandler(const string &filename);
00034 ~WriterTextHandler();
00035
00037 char * handleDoc(char * docno);
00039 char * handleWord(char * word);
00040
00041
00042 private:
00044 void endDoc();
00045
00047 bool first;
00048
00050 ofstream * outfile;
00051 };
00052
00053 #endif