00001 /*========================================================================== 00002 * Copyright (c) 2001 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.lemurproject.org/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 00013 #ifndef _PUSHINDEX_HPP 00014 #define _PUSHINDEX_HPP 00015 00017 00023 /* 00024 * NAME DATE - COMMENTS 00025 * tnt 03/01 - created 00026 * tnt 07/02 - modified to add registering of docmgr 00027 * 00028 ======================================================================*/ 00029 00030 #include "Term.hpp" 00031 #include "DocumentProps.hpp" 00032 #include "CollectionProps.hpp" 00033 00034 class PushIndex { 00035 public: 00036 virtual ~PushIndex() {}; 00037 00039 virtual bool beginDoc(const DocumentProps* dp)=0; 00040 00042 virtual bool addTerm(const Term& t)=0; 00043 00045 virtual void endDoc(const DocumentProps* dp)=0; 00046 00048 virtual void endCollection(const CollectionProps* cp)=0; 00049 00050 virtual void setDocManager(const string &mgrID)=0; 00051 00052 private: 00053 }; 00054 00055 #endif