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

Document.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 _DOCUMENT_HPP
00014 #define _DOCUMENT_HPP
00015 
00016 #include "Term.hpp"
00017 #include "DocumentProps.hpp"
00018 
00020 
00027 class Document {
00028 public:
00029   virtual ~Document() {};
00030   
00032   virtual const char *getID() const =0;
00033 
00034 
00036   virtual void startTermIteration() const=0;
00037 
00039   virtual bool hasMore() const= 0;
00040 
00042   virtual const Term *nextTerm() const=0;
00043 
00045   virtual void skipToEnd() const=0;
00046 
00048   virtual DocumentProps *property() {
00049     return (props);
00050   }
00051 private:
00052   DocumentProps *props;
00053 };
00054 
00055 #endif
00056 
00057 
00058   
00059 
00060 

Generated on Wed Nov 3 12:58:54 2004 for Lemur Toolkit by doxygen1.2.18