00001 /*========================================================================== 00002 * Copyright (c) 2002 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 #include <iomanip> 00013 #include "Passage.hpp" 00014 #include <vector> 00015 00016 using std::vector; 00017 00018 #ifndef _BASICPASSAGE_HPP 00019 #define _BASICPASSAGE_HPP 00020 00026 class BasicPassage : public Passage { 00027 00028 public: 00029 BasicPassage(const char* id) { 00030 psg = new passageVec; 00031 docID = (char *)id; 00032 score = -1; 00033 marked = 0; 00034 } 00035 00036 virtual void clear() ; 00037 00038 virtual void addTerm(termCount term) ; 00039 00040 virtual void addTerms(passageVec pv) ; 00041 00042 virtual passageVec* getAsVector(void) ; 00043 00044 virtual int operator<(Passage &b) ; 00045 00046 }; 00047 00048 #endif