#include <FlattextDocMgr.hpp>
Inheritance diagram for FlattextDocMgr:
Public Methods | |
FlattextDocMgr (string name, string mode, string source) | |
FlattextDocMgr (const char *name) | |
virtual | ~FlattextDocMgr () |
virtual bool | open (const char *manname) |
open previously created manager | |
virtual const char * | getMyID () |
get the ID string to use for opening this later | |
virtual char * | getDoc (const char *docID) |
return the document associated with this ID | |
virtual void | buildMgr () |
Construct the data tables for the previously given input files. | |
char * | handleDoc (char *docno) |
Handle a doc. | |
void | handleEndDoc () |
Handle the end of the doc. | |
virtual TextHandler * | getTextHandler () |
returns self cast to TextHandler (FIX INHERITANCE HERE!) | |
Private Methods | |
bool | readinSources (const char *fn) |
open the file with all the sources and save internally | |
void | writeTOC () |
save info we'll need to open this Manager | |
bool | loadTOC (const char *fn) |
bool | loadFTLookup (const char *fn) |
bool | loadFTFiles (const char *fn, int num) |
Private Attributes | |
int | numdocs |
string | parseMode |
long | prevpos |
string | IDname |
string | IDnameext |
vector< string > | sources |
int | fileid |
ofstream | writefpos |
map< char *, lookup_e *, abc > | table |
lookup_e * | entries |
|
constructor (for build) name = what to name this manager mode = type of parser to use source = file with list of files this will manage |
|
constructor (for open) name = toc file for this manager (same as getMyID) |
|
|
|
Construct the data tables for the previously given input files.
Implements DocumentManager. |
|
return the document associated with this ID
Implements DocumentManager. |
|
get the ID string to use for opening this later
Implements DocumentManager. |
|
returns self cast to TextHandler (FIX INHERITANCE HERE!)
Reimplemented from TextHandler. |
|
Handle a doc.
Reimplemented from TextHandler. |
|
Handle the end of the doc.
Reimplemented from TextHandler. |
|
|
|
|
|
|
|
open previously created manager
Implements DocumentManager. |
|
open the file with all the sources and save internally
|
|
save info we'll need to open this Manager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|