#include <TrecParser.hpp>
Inheritance diagram for TrecParser:
Public Methods | |
TrecParser () | |
void | parseFile (char *filename) |
Parse a file. | |
void | parseBuffer (char *buf, int len) |
Parse a buffer of len length. | |
long | fileTell () |
Private Methods | |
void | doParse () |
Actual parsing action flow. | |
Private Attributes | |
int | state |
The state of the parser. | |
Property | begelem |
keep a property for being and end of elements | |
Property | endelem |
LinkedPropertyList | proplist |
list |
U.S.A., USA's, and USAs are converted to USA. Does not recognize acronyms with numbers.
The following fields are parsed: TEXT, HL, HEAD, HEADLINE, LP, TTL
|
|
|
Actual parsing action flow.
|
|
Gives current byte position offset into file being parsed. Don't use with parseBuffer Implements Parser. |
|
Parse a buffer of len length.
Implements Parser. |
|
Parse a file.
Implements Parser. |
|
keep a property for being and end of elements
|
|
|
|
list
|
|
The state of the parser.
|