source: trunk/tools/assistant/lib/fulltextsearch/qtokenstream_p.h@ 632

Last change on this file since 632 was 561, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.1 sources.

File size: 2.5 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team.
4** All rights reserved.
5**
6** Portion Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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
39CL_NS_DEF(analysis)
40 class TokenStream;
41CL_NS_END
42CL_NS_USE(analysis)
43
44QT_BEGIN_NAMESPACE
45
46class QCLuceneAnalyzer;
47class QCLuceneTokenizer;
48class QCLuceneStopAnalyzer;
49class QCLuceneSimpleAnalyzer;
50class QCLuceneKeywordAnalyzer;
51class QCLuceneStandardAnalyzer;
52class QCLuceneWhitespaceAnalyzer;
53class QCLucenePerFieldAnalyzerWrapper;
54
55class QHELP_EXPORT QCLuceneTokenStreamPrivate : public QSharedData
56{
57public:
58 QCLuceneTokenStreamPrivate();
59 QCLuceneTokenStreamPrivate(const QCLuceneTokenStreamPrivate &other);
60
61 ~QCLuceneTokenStreamPrivate();
62
63 TokenStream *tokenStream;
64 bool deleteCLuceneTokenStream;
65
66private:
67 QCLuceneTokenStreamPrivate &operator=(const QCLuceneTokenStreamPrivate &other);
68};
69
70class QHELP_EXPORT QCLuceneTokenStream
71{
72public:
73 virtual ~QCLuceneTokenStream();
74
75 void close();
76 bool next(QCLuceneToken &token);
77
78protected:
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
89private:
90 QCLuceneTokenStream();
91};
92
93QT_END_NAMESPACE
94
95#endif // QTOKENSTREAM_P_H
Note: See TracBrowser for help on using the repository browser.