00001
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
#ifndef XAPIAN_INCLUDED_OUTPUT_H
00028
#define XAPIAN_INCLUDED_OUTPUT_H
00029
00030
#include <fstream>
00031
00033 #define XAPIAN_OUTPUT_FUNCTION(CLASS) \
00034
inline std::ostream & \
00035
operator<<(std::ostream & os, const CLASS & object) { \
00036
return os << object.get_description(); \
00037
}
00038
00039
#include <xapian/database.h>
00040
XAPIAN_OUTPUT_FUNCTION(
Xapian::Database)
00041 XAPIAN_OUTPUT_FUNCTION(Xapian::WritableDatabase)
00042
00043 #include <xapian/document.h>
00044 XAPIAN_OUTPUT_FUNCTION(Xapian::Document)
00045
00046 #include <xapian/query.h>
00047 XAPIAN_OUTPUT_FUNCTION(Xapian::Query)
00048
00049 #include <xapian/enquire.h>
00050 XAPIAN_OUTPUT_FUNCTION(Xapian::RSet)
00051 XAPIAN_OUTPUT_FUNCTION(Xapian::MSetIterator)
00052 XAPIAN_OUTPUT_FUNCTION(Xapian::MSet)
00053 XAPIAN_OUTPUT_FUNCTION(Xapian::ESetIterator)
00054 XAPIAN_OUTPUT_FUNCTION(Xapian::ESet)
00055 XAPIAN_OUTPUT_FUNCTION(Xapian::Enquire)
00056
00057 #include <xapian/stem.h>
00058 XAPIAN_OUTPUT_FUNCTION(Xapian::Stem)
00059
00060 #include <xapian/postingiterator.h>
00061 XAPIAN_OUTPUT_FUNCTION(Xapian::PostingIterator)
00062
00063 #include <xapian/positioniterator.h>
00064 XAPIAN_OUTPUT_FUNCTION(Xapian::PositionIterator)
00065
00066 #include <xapian/termiterator.h>
00067 XAPIAN_OUTPUT_FUNCTION(Xapian::TermIterator)
00068
00069 #include <xapian/valueiterator.h>
00070 XAPIAN_OUTPUT_FUNCTION(Xapian::ValueIterator)
00071
00072 #endif