00001 // xapian.h: Public interfaces for core Xapian library 00002 // 00003 // Copyright (C) 2003,2004,2005 Olly Betts 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License as 00007 // published by the Free Software Foundation; either version 2 of the 00008 // License, or (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00018 // USA 00019 00020 #ifndef XAPIAN_INCLUDED_XAPIAN_H 00021 #define XAPIAN_INCLUDED_XAPIAN_H 00022 00023 // Set defines for library version and check C++ ABI versions match 00024 #include <xapian/version.h> 00025 00026 // Types 00027 #include <xapian/types.h> 00028 00029 // Exceptions 00030 #include <xapian/error.h> 00031 #include <xapian/errorhandler.h> 00032 00033 // Access to databases, documents, etc 00034 #include <xapian/database.h> 00035 #include <xapian/dbfactory.h> 00036 #include <xapian/document.h> 00037 #include <xapian/positioniterator.h> 00038 #include <xapian/postingiterator.h> 00039 #include <xapian/termiterator.h> 00040 #include <xapian/valueiterator.h> 00041 00042 // Searching 00043 #include <xapian/enquire.h> 00044 #include <xapian/expanddecider.h> 00045 #include <xapian/query.h> 00046 #include <xapian/queryparser.h> 00047 00048 // Stemming 00049 #include <xapian/stem.h> 00050 00051 // Unicode support 00052 #include <xapian/unicode.h> 00053 00054 // Methods returning library version: 00055 00056 #include <xapian/deprecated.h> 00057 #include <xapian/visibility.h> 00058 00059 namespace Xapian { 00065 XAPIAN_VISIBILITY_DEFAULT 00066 const char * version_string(); 00067 00073 XAPIAN_VISIBILITY_DEFAULT 00074 XAPIAN_DEPRECATED(const char * xapian_version_string()); 00075 00080 XAPIAN_VISIBILITY_DEFAULT 00081 int major_version(); 00082 00088 XAPIAN_VISIBILITY_DEFAULT 00089 XAPIAN_DEPRECATED(int xapian_major_version()); 00090 00095 XAPIAN_VISIBILITY_DEFAULT 00096 int minor_version(); 00097 00103 XAPIAN_VISIBILITY_DEFAULT 00104 XAPIAN_DEPRECATED(int xapian_minor_version()); 00105 00110 XAPIAN_VISIBILITY_DEFAULT 00111 int revision(); 00112 00118 XAPIAN_VISIBILITY_DEFAULT 00119 XAPIAN_DEPRECATED(int xapian_revision()); 00120 } 00121 00122 #endif /* XAPIAN_INCLUDED_XAPIAN_H */