#include <Document.hpp>
Inheritance diagram for Document:

Public Methods | |
| virtual | ~Document () |
| virtual char* | getID ()const=0 |
| returns the external string ID. | |
| virtual void | startTermIteration ()=0 |
| start term iteration. | |
| virtual bool | hasMore ()=0 |
| returns true iff there's at least one term for iteration. | |
| virtual TokenTerm* | nextTerm ()=0 |
| returns a pointer to next term (static memory, do not delete the returned instance). caller should check hasMore() before calling it. | |
| virtual DocumentProps* | property () |
| return the DocumentProps handle. | |
The class represents a document that is composed of a string (external) ID and a sequence of tokens. Subclasses may add extra information such as title and date.
|
|
|
|
|
returns the external string ID.
Reimplemented in BasicTokenDoc. |
|
|
returns true iff there's at least one term for iteration.
Reimplemented in BasicTokenDoc. |
|
|
returns a pointer to next term (static memory, do not delete the returned instance). caller should check hasMore() before calling it.
Reimplemented in BasicTokenDoc. |
|
|
return the DocumentProps handle.
|
|
|
start term iteration.
Reimplemented in BasicTokenDoc. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000