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

lemur::parse::WriterInQueryHandler Class Reference

#include <WriterInQueryHandler.hpp>

Inheritance diagram for lemur::parse::WriterInQueryHandler:

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

Public Member Functions

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

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

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

char * handleSymbol (char *sym)
 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 structured query text in a format that can be used by StructQueryEval. This class is a destination TextHandler.


Constructor & Destructor Documentation

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

Create and set the file to write to.

lemur::parse::WriterInQueryHandler::~WriterInQueryHandler  ) 
 


Member Function Documentation

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

end a document

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

Begin a doc.

Reimplemented from lemur::api::TextHandler.

char * lemur::parse::WriterInQueryHandler::handleSymbol char *  sym  )  [virtual]
 

Add a word to the doc.

Reimplemented from lemur::api::TextHandler.

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

Add a word to the doc.

Reimplemented from lemur::api::TextHandler.


Member Data Documentation

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

First doc?

ofstream* lemur::parse::WriterInQueryHandler::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