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

Public Methods | |
| Parser () | |
| virtual void | parse (char *filename) |
| Parse a file. use parseFile. this method will be deprecated in future. | |
| virtual void | parseFile (char *filename)=0 |
| Parse a file. | |
| virtual void | parseBuffer (char *buf,int len)=0 |
| Parse a buffer. | |
| virtual void | setAcroList (WordSet *acronyms) |
| Set the acronym list. Can be an empty implementation if the parser is not designed to deal with acronyms by using a list. | |
| virtual long | fileTell ()=0 |
| return the current byte position of the file being parsed. | |
| virtual long | getDocBytePos () |
| return the byte position at the beginning of the current document. | |
Protected Methods | |
| bool | isAcronym (char *word) |
| Checks to see if the word is in the acronym list. Returns false if the list is not set. | |
Protected Attributes | |
| long | docpos |
|
|
|
|
|
return the current byte position of the file being parsed.
Reimplemented in ReutersParser, TrecParser, and WebParser. |
|
|
return the byte position at the beginning of the current document.
|
|
|
Checks to see if the word is in the acronym list. Returns false if the list is not set.
|
|
|
Parse a file. use parseFile. this method will be deprecated in future.
|
|
|
Parse a buffer.
Reimplemented in ReutersParser, TrecParser, and WebParser. |
|
|
Parse a file.
Reimplemented in ReutersParser, TrecParser, and WebParser. |
|
|
Set the acronym list. Can be an empty implementation if the parser is not designed to deal with acronyms by using a list.
|
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000