NepomukDaemons
clucenefilter.h
Go to the documentation of this file.00001 /* 00002 * Modified version of StandardFilter.h for Nepomuk mostly to optimize for filename indexing 00003 * Copyright (C) 2008 Sebastian Trueg <trueg@kde.org> 00004 * 00005 * Based on StandardFilter.h from the CLucene package. 00006 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public License 00019 * along with this library; see the file COPYING.LIB. If not, write to 00020 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 * Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #ifndef _NEPOMUK_CLUCENE_FILTER_H_ 00025 #define _NEPOMUK_CLUCENE_FILTER_H_ 00026 00027 #include <CLucene/analysis/AnalysisHeader.h> 00028 #include <CLucene/analysis/Analyzers.h> 00029 #include <CLucene/util/StringBuffer.h> 00030 00031 namespace Nepomuk { 00032 00034 class CLuceneFilter: public CL_NS(analysis)::TokenFilter 00035 { 00036 public: 00037 // Construct filtering <i>in</i>. 00038 CLuceneFilter(CL_NS(analysis)::TokenStream* in, bool deleteTokenStream); 00039 00040 ~CLuceneFilter(); 00041 00042 00047 bool next(CL_NS(analysis)::Token* token); 00048 }; 00049 } 00050 00051 #endif