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

lemur::parse::BasicTokenDoc Class Reference

doc representation for BasicDocStream More...

#include <BasicDocStream.hpp>

Inheritance diagram for lemur::parse::BasicTokenDoc:

lemur::api::Document List of all members.

Public Member Functions

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

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

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

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

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


Private Member Functions

void readID ()

Private Attributes

char * curWord
char buf1 [20000]
char buf2 [20000]
char id [2000]
ifstream * docStr
streampos startPos
lemur::api::Term t

Friends

class BasicDocStream

Detailed Description

doc representation for BasicDocStream


Constructor & Destructor Documentation

lemur::parse::BasicTokenDoc::BasicTokenDoc  )  [inline]
 

lemur::parse::BasicTokenDoc::BasicTokenDoc ifstream *  stream  )  [inline]
 


Member Function Documentation

const char* lemur::parse::BasicTokenDoc::getID  )  const [inline, virtual]
 

returns the external string ID

Implements lemur::api::Document.

bool lemur::parse::BasicTokenDoc::hasMore  )  const [inline, virtual]
 

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

Implements lemur::api::Document.

const lemur::api::Term * lemur::parse::BasicTokenDoc::nextTerm  )  const [virtual]
 

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

Implements lemur::api::Document.

void lemur::parse::BasicTokenDoc::readID  )  [private]
 

void lemur::parse::BasicTokenDoc::skipToEnd  )  const [virtual]
 

"fast forward" to the end of the document

Implements lemur::api::Document.

void lemur::parse::BasicTokenDoc::startTermIteration  )  const [virtual]
 

start term iteration

Implements lemur::api::Document.


Friends And Related Function Documentation

friend class BasicDocStream [friend]
 


Member Data Documentation

char lemur::parse::BasicTokenDoc::buf1[20000] [mutable, private]
 

char lemur::parse::BasicTokenDoc::buf2[20000] [mutable, private]
 

char* lemur::parse::BasicTokenDoc::curWord [mutable, private]
 

ifstream* lemur::parse::BasicTokenDoc::docStr [private]
 

char lemur::parse::BasicTokenDoc::id[2000] [private]
 

streampos lemur::parse::BasicTokenDoc::startPos [private]
 

lemur::api::Term lemur::parse::BasicTokenDoc::t [mutable, private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4