Main Page   Namespace List   Class Hierarchy   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.


Private Attributes

vector< Matchoffsets
 The offsets vector.

Parserp

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.


Member Data Documentation

vector<Match> DocOffsetParser::offsets [private]
 

The offsets vector.

Parser* DocOffsetParser::p [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 6 07:11:59 2004 for LEMUR by doxygen1.2.16