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

lemur::parse::KeyfileTextHandler Class Reference

KeyfileTextHandler pushes terms into a KeyFileIncIndex. This class is a destination TextHandler. More...

#include <KeyfileTextHandler.hpp>

Inheritance diagram for lemur::parse::KeyfileTextHandler:

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

Public Member Functions

 KeyfileTextHandler (class lemur::index::KeyfileIncIndex *index, bool countStops=false)
 Instantiate with index to push terms into.

 ~KeyfileTextHandler ()
char * handleDoc (char *docno)
 add a new document

char * handleWord (char *word)
 add or update a term

void setDocManager (const string &mgrID)
 set the document manager id in the index.


Private Member Functions

void endDoc ()
void endCollection ()

Private Attributes

int docLength
DocumentPropsdp
bool first
int pos
bool countStopWds
lemur::index::KeyfileIncIndex_index

Detailed Description

KeyfileTextHandler pushes terms into a KeyFileIncIndex. This class is a destination TextHandler.


Constructor & Destructor Documentation

lemur::parse::KeyfileTextHandler::KeyfileTextHandler class lemur::index::KeyfileIncIndex index,
bool  countStops = false
 

Instantiate with index to push terms into.

lemur::parse::KeyfileTextHandler::~KeyfileTextHandler  ) 
 


Member Function Documentation

void lemur::parse::KeyfileTextHandler::endCollection  )  [private]
 

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

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

add a new document

Reimplemented from lemur::api::TextHandler.

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

add or update a term

Reimplemented from lemur::api::TextHandler.

void lemur::parse::KeyfileTextHandler::setDocManager const string &  mgrID  ) 
 

set the document manager id in the index.


Member Data Documentation

class lemur::index::KeyfileIncIndex* lemur::parse::KeyfileTextHandler::_index [private]
 

bool lemur::parse::KeyfileTextHandler::countStopWds [private]
 

int lemur::parse::KeyfileTextHandler::docLength [private]
 

DocumentProps* lemur::parse::KeyfileTextHandler::dp [private]
 

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

int lemur::parse::KeyfileTextHandler::pos [private]
 


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