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

StringQuery Class Reference

#include <StringQuery.hpp>

Inheritance diagram for StringQuery:

TermQuery TextHandler Query List of all members.

Public Methods

 StringQuery ()
 StringQuery (const char *query, const char *qid=NULL)
 StringQuery (const string &query, const string &qid="")
 ~StringQuery ()
void startTermIteration () const
 TermQuery methods.

bool hasMore () const
const TermnextTerm () const
void addTerm (const string &token)
void addTerm (const char *token)
void parse (const string &token)
char * handleWord (char *word)
 TextHandler methods.

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


Protected Attributes

vector< string > tokens
int iter
Term tt

Detailed Description

A query class for handling string queries. Tokenizes at spaces. Also a TextHandler to begin a chain (call empty constructor, add other TH, then call parse) Can be used at the end of a chain also after other TH. i.e. look at RetMethodManager::runTextQuery


Constructor & Destructor Documentation

StringQuery::StringQuery  
 

StringQuery::StringQuery const char *    query,
const char *    qid = NULL
 

StringQuery::StringQuery const string &    query,
const string &    qid = ""
 

StringQuery::~StringQuery  
 


Member Function Documentation

void StringQuery::addTerm const char *    token
 

void StringQuery::addTerm const string &    token
 

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

Handle a word, possibly transforming it.

Reimplemented from TextHandler.

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

TextHandler methods.

Reimplemented from TextHandler.

bool StringQuery::hasMore   const [inline, virtual]
 

Implements TermQuery.

const Term * StringQuery::nextTerm   [virtual]
 

Implements TermQuery.

void StringQuery::parse const string &    token
 

void StringQuery::startTermIteration   const [inline, virtual]
 

TermQuery methods.

Implements TermQuery.


Member Data Documentation

int StringQuery::iter [protected]
 

vector<string> StringQuery::tokens [protected]
 

Term StringQuery::tt [protected]
 


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