Lucene++ - a full-featured, c++ search engine
API Documentation


Constants.h
Go to the documentation of this file.
1 // 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 CONSTANTS_H
8 #define CONSTANTS_H
9 
10 #include "Lucene.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI Constants {
16 private:
17  Constants();
18 
19 public:
20  virtual ~Constants();
21 
22 public:
23  static String OS_NAME;
24  static String LUCENE_MAIN_VERSION;
25  static String LUCENE_VERSION;
26 };
27 
32 class LPPAPI LuceneVersion {
33 private:
34  LuceneVersion();
35 
36 public:
37  virtual ~LuceneVersion();
38 
39 public:
40  enum Version {
42  LUCENE_20 = 0,
43 
46 
49 
52 
55 
58 
63 
65 
77  LUCENE_CURRENT
78  };
79 
80 public:
81  static bool onOrAfter(LuceneVersion::Version first, LuceneVersion::Version second);
82 };
83 
84 }
85 
86 #endif
Lucene::LuceneVersion::Version
Version
Definition: Constants.h:40
Lucene::LuceneVersion::LUCENE_23
@ LUCENE_23
Match settings and bugs in Lucene's 2.3 release.
Definition: Constants.h:51
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::Constants::LUCENE_VERSION
static String LUCENE_VERSION
Definition: Constants.h:25
Lucene::LuceneVersion::LUCENE_22
@ LUCENE_22
Match settings and bugs in Lucene's 2.2 release.
Definition: Constants.h:48
Lucene::LuceneVersion::LUCENE_21
@ LUCENE_21
Match settings and bugs in Lucene's 2.1 release.
Definition: Constants.h:45
Lucene::Constants::OS_NAME
static String OS_NAME
Definition: Constants.h:23
Lucene::Constants
Some useful Lucene constants.
Definition: Constants.h:15
Lucene::LuceneVersion::LUCENE_24
@ LUCENE_24
Match settings and bugs in Lucene's 2.4 release.
Definition: Constants.h:54
Lucene::LuceneVersion::LUCENE_30
@ LUCENE_30
Match settings and bugs in Lucene's 3.0 release.
Definition: Constants.h:62
Lucene::LuceneVersion::LUCENE_29
@ LUCENE_29
Match settings and bugs in Lucene's 2.9 release.
Definition: Constants.h:57
Lucene::LuceneVersion
Use by certain classes to match version compatibility across releases of Lucene.
Definition: Constants.h:32
Lucene::Constants::LUCENE_MAIN_VERSION
static String LUCENE_MAIN_VERSION
Definition: Constants.h:24

clucene.sourceforge.net