CLucene - a full-featured, c++ search engine
API Documentation
00001 /*------------------------------------------------------------------------------ 00002 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00003 * 00004 * Distributable under the terms of either the Apache License (Version 2.0) or 00005 * the GNU Lesser General Public License, as specified in the COPYING file. 00006 ------------------------------------------------------------------------------*/ 00007 #ifndef _lucene_search_QueryFilter_ 00008 #define _lucene_search_QueryFilter_ 00009 00010 //#include "CLucene/util/BitSet.h" 00011 //#include "CLucene/index/IndexReader.h" 00012 //#include "SearchHeader.h" 00013 #include "Filter.h" 00014 CL_CLASS_DEF(search,Query) 00015 //#include "CachingWrapperFilter.h" 00016 00017 CL_NS_DEF(search) 00018 00019 class CLUCENE_EXPORT QueryFilter: public Filter 00020 { 00021 private: 00022 Query* query; 00023 protected: 00024 QueryFilter( const QueryFilter& copy ); 00025 public: 00026 QueryFilter( const Query* query ); 00027 00028 ~QueryFilter(); 00029 00030 CL_NS(util)::BitSet* bits( CL_NS(index)::IndexReader* reader ); 00031 00032 Filter *clone() const; 00033 00034 TCHAR *toString(); 00035 }; 00036 00037 CL_NS_END 00038 #endif