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
Use by certain classes to match version compatibility across releases of Lucene.
Definition: Constants.h:32
Match settings and bugs in Lucene's 2.9 release.
Definition: Constants.h:57
Some useful Lucene constants.
Definition: Constants.h:15
static String LUCENE_MAIN_VERSION
Definition: Constants.h:24
Match settings and bugs in Lucene's 2.1 release.
Definition: Constants.h:45
Match settings and bugs in Lucene's 3.0 release.
Definition: Constants.h:62
Match settings and bugs in Lucene's 2.4 release.
Definition: Constants.h:54
Match settings and bugs in Lucene's 2.3 release.
Definition: Constants.h:51
Definition: AbstractAllTermDocs.h:12
static String LUCENE_VERSION
Definition: Constants.h:25
Version
Definition: Constants.h:40
static String OS_NAME
Definition: Constants.h:23
Match settings and bugs in Lucene's 2.2 release.
Definition: Constants.h:48

clucene.sourceforge.net