#include <BasicDocStream.hpp>
Inheritance diagram for lemur::parse::BasicTokenDoc:
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::Term * | nextTerm () 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 |
|
|
|
|
|
returns the external string ID
Implements lemur::api::Document. |
|
returns true iff there's at least one term for iteration
Implements lemur::api::Document. |
|
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. |
|
|
|
"fast forward" to the end of the document
Implements lemur::api::Document. |
|
start term iteration
Implements lemur::api::Document. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|