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

Public Methods | |
| KeyfileDocMgr () | |
| default constructor | |
| KeyfileDocMgr (const char *name) | |
| KeyfileDocMgr (string name, string mode, string source) | |
| virtual | ~KeyfileDocMgr () |
| char * | getDoc (const char *docID) |
| return the document associated with this ID | |
| virtual char * | handleDoc (char *docno) |
| add entry for new doc | |
| virtual void | handleEndDoc () |
| finish entry for current doc | |
| virtual char * | handleWord (char *word) |
| Add start and end byte offsets for this term to the list of offsets. | |
| virtual void | setParser (Parser *p) |
| set myParser to p | |
| virtual void | buildMgr () |
| virtual const char * | getMyID () |
| return name of this document manager, with the file extension (.bdm). | |
| vector< Match > | getOffsets (char *docID) |
| virtual bool | open (const char *manname) |
| Open and load the toc file manname. | |
Protected Methods | |
| virtual void | writeTOC () |
| virtual bool | loadTOC () |
| bool | loadFTFiles (const char *fn, int num) |
Protected Attributes | |
| vector< Match > | offsets |
| int | numdocs |
| string | pm |
| Keyfile | poslookup |
| Keyfile | doclookup |
| int | dbcache |
| btl | docEntry |
| char * | myDoc |
| int | doclen |
| string | IDname |
| string | IDnameext |
| vector< string > | sources |
| int | fileid |
|
|
default constructor
|
|
|
constructor (for open) name = toc file for this manager (same as getMyID) |
|
||||||||||||||||
|
constructor (for build) name = what to name this manager mode = type of parser to use source = file with list of files this will manage |
|
|
|
|
|
Build the document manager tables from the files previously provided in the constructor. Implements DocumentManager. |
|
|
return the document associated with this ID
Implements DocumentManager. |
|
|
return name of this document manager, with the file extension (.bdm).
Implements DocumentManager. |
|
|
get the array of Match entries for the tokens in the document named docID. The entries are indexed by token position (as is recorded in a TermInfoList object. |
|
|
add entry for new doc
Reimplemented from TextHandler. |
|
|
finish entry for current doc
Reimplemented from TextHandler. |
|
|
Add start and end byte offsets for this term to the list of offsets.
Reimplemented from TextHandler. |
|
||||||||||||
|
|
|
|
Reimplemented in ElemDocMgr. |
|
|
Open and load the toc file manname.
Implements DocumentManager. Reimplemented in ElemDocMgr. |
|
|
set myParser to p
|
|
|
Reimplemented in ElemDocMgr. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.16