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

QueryDocument Class Reference

#include <QueryDocument.hpp>

Inheritance diagram for QueryDocument:

Document TextHandler List of all members.

Public Methods

 QueryDocument ()
 ~QueryDocument ()
void startTermIteration () const
 start term iteration

bool hasMore () const
 returns true iff there's at least one term for iteration

void skipToEnd () const
 "fast forward" to the end of the document

const TermnextTerm () const
 get the next term. do not delete TT returned

void addTerm (const char *token)
char * handleWord (char *word)
 Handle a word, possibly transforming it.

char * handleSymbol (char *sym)
 Handle a word, possibly transforming it.

const char * getID () const
 returns the external string ID

void setID (const char *idstr)

Detailed Description

A convenience class for dealing with "interactive" queries. Creates a Document object compatible with TextQuery and StructQuery. Also a TH so it can be chained at the end of stoppers, stemmers, InqueryOpParser, (etc.) for query processing.


Constructor & Destructor Documentation

QueryDocument::QueryDocument  
 

QueryDocument::~QueryDocument  
 


Member Function Documentation

void QueryDocument::addTerm const char *    token
 

const char* QueryDocument::getID   [inline, virtual]
 

returns the external string ID

Implements Document.

char * QueryDocument::handleSymbol char *    sym [virtual]
 

Handle a word, possibly transforming it.

Reimplemented from TextHandler.

char * QueryDocument::handleWord char *    word [virtual]
 

Handle a word, possibly transforming it.

Reimplemented from TextHandler.

bool QueryDocument::hasMore   [inline, virtual]
 

returns true iff there's at least one term for iteration

Implements Document.

const Term * QueryDocument::nextTerm   [virtual]
 

get the next term. do not delete TT returned

Implements Document.

void QueryDocument::setID const char *    idstr [inline]
 

void QueryDocument::skipToEnd   [inline, virtual]
 

"fast forward" to the end of the document

Implements Document.

void QueryDocument::startTermIteration   [inline, virtual]
 

start term iteration

Implements Document.


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