CLucene - a full-featured, c++ search engine
API Documentation
00001 /*------------------------------------------------------------------------------ 00002 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00003 * 00004 * Distributable under the terms of either the Apache License (Version 2.0) or 00005 * the GNU Lesser General Public License, as specified in the COPYING file. 00006 ------------------------------------------------------------------------------*/ 00007 #ifndef _lucene_document_DateField_ 00008 #define _lucene_document_DateField_ 00009 00010 00011 CL_NS_DEF(document) 00012 00013 //here are some constants used throughout clucene 00014 //make date strings long enough to last a millenium 00015 #define DATEFIELD_DATE_MAX _ILONGLONG(31536000000000) //1000L*365*24*60*60*1000 00016 00017 #define DATEFIELD_DATE_LEN 9 00018 00019 00038 class DateField :LUCENE_BASE { 00039 public: 00040 ~DateField(); 00041 00047 _CL_DEPRECATED( DateTools ) static TCHAR* timeToString(const int64_t time); 00048 00055 _CL_DEPRECATED( DateTools ) static void timeToString(const int64_t time, TCHAR* str); 00056 00058 _CL_DEPRECATED( DateTools ) static int64_t stringToTime(const TCHAR* s); 00059 }; 00060 CL_NS_END 00061 #endif