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
OffsetAttribute.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 OFFSETATTRIBUTE_H
8
#define OFFSETATTRIBUTE_H
9
10
#include "
Attribute.h
"
11
12
namespace
Lucene
13
{
15
class
LPPAPI
OffsetAttribute
:
public
Attribute
16
{
17
public
:
18
OffsetAttribute
();
19
virtual
~
OffsetAttribute
();
20
21
LUCENE_CLASS
(
OffsetAttribute
);
22
23
protected
:
24
int32_t _startOffset;
25
int32_t
_endOffset
;
26
27
public
:
28
virtual
String toString();
29
35
virtual
int32_t startOffset();
36
39
virtual
void
setOffset(int32_t startOffset, int32_t endOffset);
40
43
virtual
int32_t endOffset();
44
45
virtual
void
clear();
46
virtual
bool
equals(
LuceneObjectPtr
other);
47
virtual
int32_t hashCode();
48
virtual
void
copyTo(
AttributePtr
target);
49
virtual
LuceneObjectPtr
clone(
LuceneObjectPtr
other =
LuceneObjectPtr
());
50
};
51
}
52
53
#endif
clucene.sourceforge.net