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

PushIndex.hpp

Go to the documentation of this file.
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 
00016 /*
00017  * NAME DATE - COMMENTS
00018  * tnt 03/01 - created
00019  * tnt 07/02 - modified to add registering of docmgr
00020  *
00021  ======================================================================*/
00022 
00023 #include "Term.hpp"
00024 #include "DocumentProps.hpp"
00025 #include "CollectionProps.hpp"
00026 
00027 
00028 namespace lemur
00029 {
00030   namespace index
00031   {
00032     
00034 
00039     class PushIndex {
00040     public:
00041       virtual ~PushIndex() {};
00042  
00044       virtual bool beginDoc(const lemur::parse::DocumentProps* dp)=0;
00045 
00047       virtual bool addTerm(const lemur::api::Term& t)=0;
00048 
00050       virtual void endDoc(const lemur::parse::DocumentProps* dp)=0;
00051 
00053       virtual void endCollection(const lemur::parse::CollectionProps* cp)=0;
00054 
00055       virtual void setDocManager(const string &mgrID)=0;
00056 
00057     private:
00058     };
00059   }
00060 }
00061 
00062 
00063 #endif

Generated on Tue Jun 15 11:02:55 2010 for Lemur by doxygen 1.3.4