Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WriterTextHandler.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 
00013 #ifndef _WRITERTEXTHANDLER_HPP
00014 #define _WRITERTEXTHANDLER_HPP
00015 #include "TextHandler.hpp"
00016 
00017 #include <fstream>
00018 #include "common_headers.hpp"
00019 namespace lemur 
00020 {
00021   namespace parse 
00022   {
00023     
00030 
00031 
00032     class WriterTextHandler : public lemur::api::TextHandler {
00033 
00034     public:
00035 
00037       WriterTextHandler(const string &filename);
00038       ~WriterTextHandler();
00039 
00041       char * handleDoc(char * docno);
00043       char * handleWord(char * word);
00044 
00045 
00046     private:
00048       void endDoc();
00049 
00051       bool first;
00052 
00054       ofstream * outfile;
00055     };
00056   }
00057 }
00058 
00059 #endif

Generated on Tue Jun 15 11:02:56 2010 for Lemur by doxygen 1.3.4