Main Page   Namespace List   Class Hierarchy   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.cs.cmu.edu/~lemur/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 
00021 class TokenTerm : public Term {
00022 public:
00023 
00025   virtual const char *spelling() = 0;
00026 };
00027 
00028 
00030 
00037 class Document {
00038 public:
00039   virtual ~Document() {};
00040   
00042   virtual char *getID() const =0;
00043 
00044 
00046   virtual void startTermIteration()=0;
00047 
00049   virtual bool hasMore() = 0;
00050 
00052   virtual TokenTerm *nextTerm()=0;
00053 
00055   virtual void skipToEnd()=0;
00056 
00058   virtual DocumentProps *property() {
00059     return (props);
00060   }
00061 private:
00062   DocumentProps *props;
00063 };
00064 
00065 
00066 #endif
00067 
00068 
00069   
00070 
00071 

Generated on Fri Feb 6 07:11:46 2004 for LEMUR by doxygen1.2.16