00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef XAPIAN_INCLUDED_OM_H
00024 #define XAPIAN_INCLUDED_OM_H
00025
00026 #include <xapian.h>
00027
00028
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
00103
00104
00105 #include <iostream>
00106
00107
00108 using Xapian::BoolWeight;
00109 using Xapian::TradWeight;
00110 using Xapian::BM25Weight;
00111
00112 #endif