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
Reader.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 READER_H
8
#define READER_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
13
{
15
class
LPPAPI
Reader
:
public
LuceneObject
16
{
17
protected
:
18
Reader
();
19
20
public
:
21
virtual
~
Reader
();
22
LUCENE_CLASS
(
Reader
);
23
24
public
:
25
static
const
int32_t READER_EOF;
26
28
virtual
int32_t read();
29
31
virtual
int32_t read(
wchar_t
* buffer, int32_t offset, int32_t length) = 0;
32
34
virtual
int64_t skip(int64_t n);
35
37
virtual
void
close() = 0;
38
40
virtual
bool
markSupported();
41
44
virtual
void
mark(int32_t readAheadLimit);
45
49
virtual
void
reset();
50
52
virtual
int64_t length();
53
};
54
}
55
56
#endif
clucene.sourceforge.net