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

lemur::parse::DocOffsetParser Class Reference

#include <DocOffsetParser.hpp>

Inheritance diagram for lemur::parse::DocOffsetParser:

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

Public Member Functions

 DocOffsetParser (lemur::api::Parser *parser)
 initialize with the given parser

virtual ~DocOffsetParser ()
virtual char * handleWord (char *word)
 Add start and byte offsets for this term to the list of offsets.

virtual void parseString (char *buffer)
 Parse a string, collecting the token offsets.

vector< MatchgetOffsets ()
 Return the termIds vector.


Private Attributes

vector< Matchoffsets
 The offsets vector.

lemur::api::Parserp

Detailed Description

The DocOffsetParser collects the byte offsets for the terms in a document


Constructor & Destructor Documentation

lemur::parse::DocOffsetParser::DocOffsetParser lemur::api::Parser parser  )  [inline]
 

initialize with the given parser

virtual lemur::parse::DocOffsetParser::~DocOffsetParser  )  [inline, virtual]
 


Member Function Documentation

vector<Match> lemur::parse::DocOffsetParser::getOffsets  )  [inline]
 

Return the termIds vector.

virtual char* lemur::parse::DocOffsetParser::handleWord char *  word  )  [inline, virtual]
 

Add start and byte offsets for this term to the list of offsets.

Reimplemented from lemur::api::TextHandler.

virtual void lemur::parse::DocOffsetParser::parseString char *  buffer  )  [inline, virtual]
 

Parse a string, collecting the token offsets.


Member Data Documentation

vector<Match> lemur::parse::DocOffsetParser::offsets [private]
 

The offsets vector.

lemur::api::Parser* lemur::parse::DocOffsetParser::p [private]
 


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