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
include
ReusableStringReader.h
Go to the documentation of this file.
1
2
// Copyright (c) 2009-2014 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
16
class
ReusableStringReader
:
public
Reader
{
17
public
:
18
ReusableStringReader
();
19
virtual
~ReusableStringReader
();
20
21
LUCENE_CLASS
(
ReusableStringReader
);
22
23
public
:
24
int32_t
upto
;
25
int32_t
left
;
26
String
s
;
27
28
public
:
29
virtual
void
init
(
const
String&
s
);
30
31
using
Reader::read
;
32
34
virtual
int32_t
read
(
wchar_t
* buffer, int32_t offset, int32_t
length
);
35
37
virtual
void
close
();
38
};
39
40
}
41
42
#endif
clucene.sourceforge.net