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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ReusableStringReader.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 REUSABLESTRINGREADER_H
8 #define REUSABLESTRINGREADER_H
9 
10 #include "Reader.h"
11 
12 namespace Lucene
13 {
17  {
18  public:
20  virtual ~ReusableStringReader();
21 
23 
24  public:
25  int32_t upto;
26  int32_t left;
27  String s;
28 
29  public:
30  virtual void init(const String& s);
31 
32  using Reader::read;
33 
35  virtual int32_t read(wchar_t* buffer, int32_t offset, int32_t length);
36 
38  virtual void close();
39  };
40 }
41 
42 #endif

clucene.sourceforge.net