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.cs.cmu.edu/~lemur/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 ======================================================================*/ 00027 00028 #include "Term.hpp" 00029 #include "DocumentProps.hpp" 00030 #include "CollectionProps.hpp" 00031 00032 class PushIndex { 00033 public: 00034 virtual ~PushIndex() {}; 00035 00037 virtual bool beginDoc(DocumentProps* dp)=0; 00038 00040 virtual bool addTerm(Term& t)=0; 00041 00043 virtual void endDoc(DocumentProps* dp)=0; 00044 00046 virtual void endCollection(CollectionProps* cp)=0; 00047 00048 00049 private: 00050 }; 00051 00052 #endif