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

DocumentManager Class Reference

#include <DocumentManager.hpp>

Inheritance diagram for DocumentManager:

FlattextDocMgr List of all members.

Public Methods

virtual ~DocumentManager ()
virtual bool open (const char *manname)=0
 open previously created document manager, return true if opened successfully. index name should be the full name of the table-of-content file for the manager. E.g. "manager.flat" for FlattextDocMgr.

virtual char* getDoc (const char *docID)=0
 returns the document with the given docID (usually in raw format).

virtual ParsergetParser ()
 returns a handle to a Parser object that can handle parsing the raw format of these documents.


Protected Attributes

Parsermyparser

Detailed Description

Abstract API for document manager interface. The document manager should be able to retrieve a document given its external document id, it should also be able to provide a parser that can parse the raw document format.


Constructor & Destructor Documentation

DocumentManager::~DocumentManager ( ) [inline, virtual]
 


Member Function Documentation

char * DocumentManager::getDoc ( const char * docID ) [pure virtual]
 

returns the document with the given docID (usually in raw format).

Reimplemented in FlattextDocMgr.

Parser * DocumentManager::getParser ( ) [inline, virtual]
 

returns a handle to a Parser object that can handle parsing the raw format of these documents.

bool DocumentManager::open ( const char * manname ) [pure virtual]
 

open previously created document manager, return true if opened successfully. index name should be the full name of the table-of-content file for the manager. E.g. "manager.flat" for FlattextDocMgr.

Reimplemented in FlattextDocMgr.


Member Data Documentation

Parser * DocumentManager::myparser [protected]
 


The documentation for this class was generated from the following file:
Generated at Fri Jul 26 18:26:57 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000