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

lemur::parse::WriterTextHandler Class Reference

#include <WriterTextHandler.hpp>

Inheritance diagram for lemur::parse::WriterTextHandler:

lemur::api::TextHandler List of all members.

Public Member Functions

 WriterTextHandler (const string &filename)
 Create and set the file to write to.

 ~WriterTextHandler ()
char * handleDoc (char *docno)
 Begin a doc.

char * handleWord (char *word)
 Add a word to the doc.


Private Member Functions

void endDoc ()
 end a document


Private Attributes

bool first
 First doc?

ofstream * outfile
 Output file.


Detailed Description

Outputs text in a format that can be used by RetEval (for queries) or BuildBasicIndex (for documents). This class is a destination TextHandler.


Constructor & Destructor Documentation

lemur::parse::WriterTextHandler::WriterTextHandler const string &  filename  ) 
 

Create and set the file to write to.

lemur::parse::WriterTextHandler::~WriterTextHandler  ) 
 


Member Function Documentation

void lemur::parse::WriterTextHandler::endDoc  )  [private]
 

end a document

char * lemur::parse::WriterTextHandler::handleDoc char *  docno  )  [virtual]
 

Begin a doc.

Reimplemented from lemur::api::TextHandler.

char * lemur::parse::WriterTextHandler::handleWord char *  word  )  [virtual]
 

Add a word to the doc.

Reimplemented from lemur::api::TextHandler.


Member Data Documentation

bool lemur::parse::WriterTextHandler::first [private]
 

First doc?

ofstream* lemur::parse::WriterTextHandler::outfile [private]
 

Output file.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4