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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DateField.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 DATEFIELD_H
8 #define DATEFIELD_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
31  class LPPAPI DateField : public LuceneObject
32  {
33  public:
34  virtual ~DateField();
35 
37 
38  protected:
39  static int32_t DATE_LEN();
40 
41  public:
42  static const String& MIN_DATE_STRING();
43  static const String& MAX_DATE_STRING();
44 
46  static String dateToString(const boost::posix_time::ptime& date);
47 
49  static String timeToString(int64_t time);
50 
52  static int64_t stringToTime(const String& s);
53  };
54 }
55 
56 #endif

clucene.sourceforge.net