00001 /*========================================================================== 00002 * Copyright (c) 2002 Carnegie Mellon University. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.cs.cmu.edu/~lemur/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 #ifndef _DOCUMENTMANAGER_HPP 00013 #define _DOCUMENTMANAGER_HPP 00014 00022 #include "Parser.hpp" 00023 00024 class DocumentManager { 00025 public: 00026 00028 virtual bool open(const char* manname) = 0; 00029 00031 virtual char* getDoc(const char* docID) = 0; 00032 00034 virtual Parser* getParser() { return myparser; } ; 00035 00037 virtual void buildMgr() = 0; 00038 00040 virtual const char* getMyID() = 0; 00041 00042 virtual ~DocumentManager() {}; 00043 00044 00045 protected: 00046 Parser* myparser; 00047 }; 00048 00049 #endif