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 namespace lemur 00019 { 00020 namespace api 00021 { 00022 00024 00031 class Document { 00032 public: 00033 virtual ~Document() {}; 00034 00036 virtual const char *getID() const =0; 00037 00038 00040 virtual void startTermIteration() const=0; 00041 00043 virtual bool hasMore() const= 0; 00044 00046 virtual const lemur::api::Term *nextTerm() const=0; 00047 00049 virtual void skipToEnd() const=0; 00050 00052 virtual lemur::parse::DocumentProps *property() { 00053 return (props); 00054 } 00055 private: 00056 lemur::parse::DocumentProps *props; 00057 }; 00058 } 00059 } 00060 00061 #endif