author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Fri, 16 Apr 2010 11:39:52 +0300 | |
branch | RCL_3 |
changeset 8 | 740e5562c97f |
parent 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
3 |
** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team. |
|
4 |
** All rights reserved. |
|
5 |
** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
6 |
** Portion Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 7 |
** All rights reserved. |
8 |
** |
|
9 |
** This file may be used under the terms of the GNU Lesser General Public |
|
10 |
** License version 2.1 as published by the Free Software Foundation and |
|
11 |
** appearing in the file LICENSE.LGPL included in the packaging of this file. |
|
12 |
** Please review the following information to ensure the GNU Lesser General |
|
13 |
** Public License version 2.1 requirements will be met: |
|
14 |
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
15 |
** |
|
16 |
****************************************************************************/ |
|
17 |
||
18 |
#ifndef QTOKENSTREAM_P_H |
|
19 |
#define QTOKENSTREAM_P_H |
|
20 |
||
21 |
// |
|
22 |
// W A R N I N G |
|
23 |
// ------------- |
|
24 |
// |
|
25 |
// This file is not part of the Qt API. It exists for the convenience |
|
26 |
// of the help generator tools. This header file may change from version |
|
27 |
// to version without notice, or even be removed. |
|
28 |
// |
|
29 |
// We mean it. |
|
30 |
// |
|
31 |
||
32 |
#include "qtoken_p.h" |
|
33 |
#include "qclucene_global_p.h" |
|
34 |
||
35 |
#include <QtCore/QString> |
|
36 |
#include <QtCore/QSharedDataPointer> |
|
37 |
#include <QtCore/QSharedData> |
|
38 |
||
39 |
CL_NS_DEF(analysis) |
|
40 |
class TokenStream; |
|
41 |
CL_NS_END |
|
42 |
CL_NS_USE(analysis) |
|
43 |
||
44 |
QT_BEGIN_NAMESPACE |
|
45 |
||
46 |
class QCLuceneAnalyzer; |
|
47 |
class QCLuceneTokenizer; |
|
48 |
class QCLuceneStopAnalyzer; |
|
49 |
class QCLuceneSimpleAnalyzer; |
|
50 |
class QCLuceneKeywordAnalyzer; |
|
51 |
class QCLuceneStandardAnalyzer; |
|
52 |
class QCLuceneWhitespaceAnalyzer; |
|
53 |
class QCLucenePerFieldAnalyzerWrapper; |
|
54 |
||
55 |
class QHELP_EXPORT QCLuceneTokenStreamPrivate : public QSharedData |
|
56 |
{ |
|
57 |
public: |
|
58 |
QCLuceneTokenStreamPrivate(); |
|
59 |
QCLuceneTokenStreamPrivate(const QCLuceneTokenStreamPrivate &other); |
|
60 |
||
61 |
~QCLuceneTokenStreamPrivate(); |
|
62 |
||
63 |
TokenStream *tokenStream; |
|
64 |
bool deleteCLuceneTokenStream; |
|
65 |
||
66 |
private: |
|
67 |
QCLuceneTokenStreamPrivate &operator=(const QCLuceneTokenStreamPrivate &other); |
|
68 |
}; |
|
69 |
||
70 |
class QHELP_EXPORT QCLuceneTokenStream |
|
71 |
{ |
|
72 |
public: |
|
73 |
virtual ~QCLuceneTokenStream(); |
|
74 |
||
75 |
void close(); |
|
76 |
bool next(QCLuceneToken &token); |
|
77 |
||
78 |
protected: |
|
79 |
friend class QCLuceneAnalyzer; |
|
80 |
friend class QCLuceneTokenizer; |
|
81 |
friend class QCLuceneStopAnalyzer; |
|
82 |
friend class QCLuceneSimpleAnalyzer; |
|
83 |
friend class QCLuceneKeywordAnalyzer; |
|
84 |
friend class QCLuceneStandardAnalyzer; |
|
85 |
friend class QCLuceneWhitespaceAnalyzer; |
|
86 |
friend class QCLucenePerFieldAnalyzerWrapper; |
|
87 |
QSharedDataPointer<QCLuceneTokenStreamPrivate> d; |
|
88 |
||
89 |
private: |
|
90 |
QCLuceneTokenStream(); |
|
91 |
}; |
|
92 |
||
93 |
QT_END_NAMESPACE |
|
94 |
||
95 |
#endif // QTOKENSTREAM_P_H |