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

WriterInQueryHandler.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 _WRITERINQUERYHANDLER_HPP
00014 #define _WRITERINQUERYHANDLER_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 WriterInQueryHandler : public lemur::api::TextHandler {
00033 
00034     public:
00035 
00037       WriterInQueryHandler(const string &filename);
00038       ~WriterInQueryHandler();
00039 
00041       char * handleDoc(char * docno);
00043       char * handleWord(char * word);
00045       char * handleSymbol(char * sym);
00046 
00047 
00048     private:
00050       void endDoc();
00051 
00053       bool first;
00054 
00056       ofstream * outfile;
00057     };
00058   }
00059 }
00060 
00061 #endif

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