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

BasicTokenDoc Class Reference

doc representation for BasicDocStream More...

#include <BasicDocStream.hpp>

Inheritance diagram for BasicTokenDoc:

Document List of all members.

Public Methods

 BasicTokenDoc ()
 BasicTokenDoc (ifstream *stream)
void startTermIteration ()
 start term iteration

char * getID () const
 returns the external string ID

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

TokenTermnextTerm ()
 returns a pointer to next term (static memory, do not delete the returned instance). caller should check hasMore() before calling it

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


Private Methods

void readID ()

Private Attributes

char * curWord
char buf1 [20000]
char buf2 [20000]
char id [2000]
ifstream * docStr
streampos startPos
BasicTokenTerm t

Friends

class BasicDocStream

Detailed Description

doc representation for BasicDocStream


Constructor & Destructor Documentation

BasicTokenDoc::BasicTokenDoc   [inline]
 

BasicTokenDoc::BasicTokenDoc ifstream *    stream [inline]
 


Member Function Documentation

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

returns the external string ID

Implements Document.

bool BasicTokenDoc::hasMore   [inline, virtual]
 

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

Implements Document.

TokenTerm * BasicTokenDoc::nextTerm   [virtual]
 

returns a pointer to next term (static memory, do not delete the returned instance). caller should check hasMore() before calling it

Implements Document.

void BasicTokenDoc::readID   [private]
 

void BasicTokenDoc::skipToEnd   [virtual]
 

"fast forward" to the end of the document

Implements Document.

void BasicTokenDoc::startTermIteration   [virtual]
 

start term iteration

Implements Document.


Friends And Related Function Documentation

friend class BasicDocStream [friend]
 


Member Data Documentation

char BasicTokenDoc::buf1[20000] [private]
 

char BasicTokenDoc::buf2[20000] [private]
 

char* BasicTokenDoc::curWord [private]
 

ifstream* BasicTokenDoc::docStr [private]
 

char BasicTokenDoc::id[2000] [private]
 

streampos BasicTokenDoc::startPos [private]
 

BasicTokenTerm BasicTokenDoc::t [private]
 


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