Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DocOffsetParser Class Reference

#include <DocOffsetParser.hpp>

Inheritance diagram for DocOffsetParser:

TextHandler List of all members.

Public Methods

 DocOffsetParser (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.


Detailed Description

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


Constructor & Destructor Documentation

DocOffsetParser::DocOffsetParser Parser   parser [inline]
 

initialize with the given parser

virtual DocOffsetParser::~DocOffsetParser   [inline, virtual]
 


Member Function Documentation

vector<Match> DocOffsetParser::getOffsets   [inline]
 

Return the termIds vector.

virtual char* DocOffsetParser::handleWord char *    word [inline, virtual]
 

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

Reimplemented from TextHandler.

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

Parse a string, collecting the token offsets.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:30 2004 for Lemur Toolkit by doxygen1.2.18