Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

FlattextDocMgr Class Reference

#include <FlattextDocMgr.hpp>

Inheritance diagram for FlattextDocMgr:

DocumentManager TextHandler List of all members.

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 TextHandlergetTextHandler ()
 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 *, abctable
lookup_eentries

Constructor & Destructor Documentation

FlattextDocMgr::FlattextDocMgr string    name,
string    mode,
string    source
 

constructor (for build) name = what to name this manager mode = type of parser to use source = file with list of files this will manage

FlattextDocMgr::FlattextDocMgr const char *    name
 

constructor (for open) name = toc file for this manager (same as getMyID)

FlattextDocMgr::~FlattextDocMgr   [virtual]
 


Member Function Documentation

void FlattextDocMgr::buildMgr   [virtual]
 

Construct the data tables for the previously given input files.

Implements DocumentManager.

char * FlattextDocMgr::getDoc const char *    docID [virtual]
 

return the document associated with this ID

Implements DocumentManager.

const char * FlattextDocMgr::getMyID   [virtual]
 

get the ID string to use for opening this later

Implements DocumentManager.

virtual TextHandler* FlattextDocMgr::getTextHandler   [inline, virtual]
 

returns self cast to TextHandler (FIX INHERITANCE HERE!)

Reimplemented from TextHandler.

char * FlattextDocMgr::handleDoc char *    docno [virtual]
 

Handle a doc.

Reimplemented from TextHandler.

void FlattextDocMgr::handleEndDoc   [virtual]
 

Handle the end of the doc.

Reimplemented from TextHandler.

bool FlattextDocMgr::loadFTFiles const char *    fn,
int    num
[private]
 

bool FlattextDocMgr::loadFTLookup const char *    fn [private]
 

bool FlattextDocMgr::loadTOC const char *    fn [private]
 

bool FlattextDocMgr::open const char *    manname [virtual]
 

open previously created manager

Implements DocumentManager.

bool FlattextDocMgr::readinSources const char *    fn [private]
 

open the file with all the sources and save internally

void FlattextDocMgr::writeTOC   [private]
 

save info we'll need to open this Manager


Member Data Documentation

lookup_e* FlattextDocMgr::entries [private]
 

int FlattextDocMgr::fileid [private]
 

string FlattextDocMgr::IDname [private]
 

string FlattextDocMgr::IDnameext [private]
 

int FlattextDocMgr::numdocs [private]
 

string FlattextDocMgr::parseMode [private]
 

long FlattextDocMgr::prevpos [private]
 

vector<string> FlattextDocMgr::sources [private]
 

map<char*, lookup_e*, abc> FlattextDocMgr::table [private]
 

ofstream FlattextDocMgr::writefpos [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:00 2004 for LEMUR by doxygen1.2.16