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

IncPassageTextHandler.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2002 University of Massachusetts.  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 _INCPASSAGETEXTHANDLER_HPP
00014 #define _INCPASSAGETEXTHANDLER_HPP
00015 #include "IncFPTextHandler.hpp"
00016 #include "IncPassagePushIndex.hpp"
00017 
00022 
00023 class IncPassageTextHandler : public IncFPTextHandler {
00024 
00025 public:
00028   IncPassageTextHandler(const string &filename, int psgSize, int bufferSize, 
00029                         bool countStopWords = false) {
00030     // create index and helper objects  
00031     index = new IncPassagePushIndex(filename, psgSize, bufferSize);
00032     dp = new DocumentProps();
00033     term = new InvFPTerm();
00034     countStopWds = countStopWords;
00035     docLength = 0;
00036     pos = 1;
00037     // set state that is on first doc
00038     first = true;
00039   }
00040 };
00041 
00042 #endif
00043 

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