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

IndriTextHandler Class Reference

#include <IndriTextHandler.hpp>

Inheritance diagram for IndriTextHandler:

TextHandler List of all members.

Public Methods

 IndriTextHandler (const string &name, int memory, const Parser *p)
 ~IndriTextHandler ()
char * handleDoc (char *docno)
 Signal the start of a document.

void handleEndDoc ()
 Handle end of document.

char * handleWord (char *word, const char *original, PropertyList *list)
 Handles a word to be indexed.

char * handleBeginTag (char *tag, const char *orig, PropertyList *props)
 Handle a begin tag.

char * handleEndTag (char *tag, const char *orig, PropertyList *props)
 Handle an end tag.


Protected Attributes

IndexEnvironment env
 The indexer.

ParsedDocument document
 Document properties object to be reused over repeated calls.

MetadataPair docid
 Handle the document id.

char * curdocno
 the current document id

char * docsource
 Document buffer.

int bufsize
 buffer size;

int docbegin
 the beginning byte offset into file of this documents

const Parserparser
 We need a handle to the parser to get file byte locations.


Constructor & Destructor Documentation

IndriTextHandler::IndriTextHandler const string &    name,
int    memory,
const Parser   p
 

Create an IndriIndex (repository) with the given name Pass in the parser being used at the beginning of the chain

IndriTextHandler::~IndriTextHandler  
 


Member Function Documentation

char * IndriTextHandler::handleBeginTag char *    tag,
const char *    orig,
PropertyList   props
[virtual]
 

Handle a begin tag.

Reimplemented from TextHandler.

char * IndriTextHandler::handleDoc char *    docno [virtual]
 

Signal the start of a document.

Reimplemented from TextHandler.

void IndriTextHandler::handleEndDoc   [virtual]
 

Handle end of document.

Reimplemented from TextHandler.

char * IndriTextHandler::handleEndTag char *    tag,
const char *    orig,
PropertyList   props
[virtual]
 

Handle an end tag.

Reimplemented from TextHandler.

char * IndriTextHandler::handleWord char *    word,
const char *    original,
PropertyList   list
[virtual]
 

Handles a word to be indexed.

Reimplemented from TextHandler.


Member Data Documentation

int IndriTextHandler::bufsize [protected]
 

buffer size;

char* IndriTextHandler::curdocno [protected]
 

the current document id

int IndriTextHandler::docbegin [protected]
 

the beginning byte offset into file of this documents

MetadataPair IndriTextHandler::docid [protected]
 

Handle the document id.

char* IndriTextHandler::docsource [protected]
 

Document buffer.

ParsedDocument IndriTextHandler::document [protected]
 

Document properties object to be reused over repeated calls.

IndexEnvironment IndriTextHandler::env [protected]
 

The indexer.

const Parser* IndriTextHandler::parser [protected]
 

We need a handle to the parser to get file byte locations.


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