Lucene++ - a full-featured, c++ search engine
API Documentation

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CharFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6
7 #ifndef CHARFILTER_H
8 #define CHARFILTER_H
9
10 #include "CharStream.h"
11
12 namespace Lucene
13 {
17 class LPPAPI CharFilter : public CharStream
18 {
19 protected:
20 CharFilter(CharStreamPtr in);
21 public:
22 virtual ~CharFilter();
23
24 LUCENE_CLASS(CharFilter);
25
26 protected:
27 CharStreamPtr input;
28
29 protected:
33 virtual int32_t correct(int32_t currentOff);
34
36 virtual int32_t correctOffset(int32_t currentOff);
37
38 virtual void close();
39 virtual int32_t read(wchar_t* buffer, int32_t offset, int32_t length);
40 virtual bool markSupported();
41 virtual void mark(int32_t readAheadLimit);
42 virtual void reset();
43 };
44 }
45
46 #endif

clucene.sourceforge.net