Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

include/om/om.h

00001 // om.h: Map old Om names to new Xapian names to allow old applications
00002 // to be compiled unmodified.
00003 //
00004 // ----START-LICENCE----
00005 // Copyright 2003 Olly Betts
00006 //
00007 // This program is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU General Public License as
00009 // published by the Free Software Foundation; either version 2 of the
00010 // License, or (at your option) any later version.
00011 //
00012 // This program is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with this program; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00020 // USA
00021 // -----END-LICENCE-----
00022 
00023 #ifndef XAPIAN_INCLUDED_OM_H
00024 #define XAPIAN_INCLUDED_OM_H
00025 
00026 #include <xapian.h>
00027 
00028 // Backward compatibility
00029 #include <string>
00030 typedef std::string om_termname;
00031 #define OmStem Xapian::Stem
00032 #define OmError Xapian::Error
00033 #define OmLogicError Xapian::LogicError
00034 #define OmRuntimeError Xapian::RuntimeError
00035 #define OmAssertionError Xapian::AssertionError
00036 #define OmUnimplementedError Xapian::UnimplementedError
00037 #define OmInvalidArgumentError Xapian::InvalidArgumentError
00038 #define OmInvalidOperationError Xapian::InvalidOperationError
00039 #define OmDocNotFoundError Xapian::DocNotFoundError
00040 #define OmRangeError Xapian::RangeError
00041 #define OmInternalError Xapian::InternalError
00042 #define OmDatabaseError Xapian::DatabaseError
00043 #define OmFeatureUnavailableError Xapian::FeatureUnavailableError
00044 #define OmNetworkError Xapian::NetworkError
00045 #define OmNetworkTimeoutError Xapian::NetworkTimeoutError
00046 #define OmDatabaseCorruptError Xapian::DatabaseCorruptError
00047 #define OmDatabaseCreateError Xapian::DatabaseCreateError
00048 #define OmOpeningError Xapian::DatabaseOpeningError
00049 #define OmDatabaseLockError Xapian::DatabaseLockError
00050 #define OmDatabaseModifiedError Xapian::DatabaseModifiedError
00051 #define OmInvalidResultError Xapian::InvalidResultError
00052 #define OmTypeError Xapian::TypeError
00053 #define OmInvalidDataError Xapian::InvalidDataError
00054 #define OmDataFlowError Xapian::DataFlowError
00055 #define OmExpandDecider Xapian::ExpandDecider
00056 #define OmExpandDeciderAnd Xapian::ExpandDeciderAnd
00057 #define OmExpandDeciderFilterTerms Xapian::ExpandDeciderFilterTerms
00058 #define OmPositionListIterator Xapian::PositionIterator
00059 #define OmTermIterator Xapian::TermIterator
00060 #define OmPostListIterator Xapian::PostingIterator
00061 #define OmQuery Xapian::Query
00062 #define OmEnquire Xapian::Enquire
00063 #define OmMSet Xapian::MSet
00064 #define OmMSetIterator Xapian::MSetIterator
00065 #define OmESet Xapian::ESet
00066 #define OmESetIterator Xapian::ESetIterator
00067 #define OmWeight Xapian::Weight
00068 #define OmMatchDecider Xapian::MatchDecider
00069 #define OmRSet Xapian::RSet
00070 #define OmDatabase Xapian::Database
00071 #define OmWritableDatabase Xapian::WritableDatabase
00072 #define OmDocument Xapian::Document
00073 #define OmValueIterator Xapian::ValueIterator
00074 
00075 #define OmAuto__open Xapian::Auto::open
00076 #define OmQuartz__open Xapian::Quartz::open
00077 #define OmInMemory__open Xapian::InMemory::open
00078 #define OmMuscat36DA__open Xapian::Muscat36::open_da
00079 #define OmMuscat36DB__open Xapian::Muscat36::open_db
00080 #define OmRemote__open Xapian::Remote::open
00081 #define OmStub__open Xapian::Auto::open_stub
00082 
00083 #define OM_DB_CREATE_OR_OPEN Xapian::DB_CREATE_OR_OPEN
00084 #define OM_DB_CREATE Xapian::DB_CREATE
00085 #define OM_DB_CREATE_OR_OVERWRITE Xapian::DB_CREATE_OR_OVERWRITE
00086 #define OM_DB_OPEN Xapian::DB_OPEN
00087 
00088 #define om_doccount Xapian::doccount
00089 #define om_doccount_diff Xapian::doccount_diff
00090 #define om_docid Xapian::docid
00091 #define om_doclength Xapian::doclength
00092 #define om_percent Xapian::percent
00093 #define om_termcount Xapian::termcount
00094 #define om_termcount_diff Xapian::termcount_diff
00095 #define om_termpos Xapian::termpos
00096 #define om_termpos_diff Xapian::termpos_diff
00097 #define om_timeout Xapian::timeout
00098 #define om_valueno Xapian::valueno
00099 #define om_valueno_diff Xapian::valueno_diff
00100 #define om_weight Xapian::weight
00101 
00102 // om/omoutput.h used to include iostream, but xapian/output.h includes iosfwd
00103 // instead.  So we include iostream here in case anyone relied on iostream
00104 // being implicitly included.
00105 #include <iostream>
00106 
00107 // More backward compatibility
00108 using Xapian::BoolWeight;
00109 using Xapian::TradWeight;
00110 using Xapian::BM25Weight;
00111 
00112 #endif /* XAPIAN_INCLUDED_OM_H */

Documentation for Xapian (version 0.7.1).
Generated on 11 Jul 2003 by Doxygen 1.2.15.