00001 00024 #ifndef XAPIAN_INCLUDED_OUTPUT_H 00025 #define XAPIAN_INCLUDED_OUTPUT_H 00026 00027 #include <iostream> 00028 00029 #define XAPIAN_OUTPUT_FUNCTION(a) \ 00030 inline std::ostream & \ 00031 operator<<(std::ostream & os, const a & obj) { \ 00032 return os << obj.get_description(); \ 00033 } 00034 00035 #include <xapian/database.h> 00036 XAPIAN_OUTPUT_FUNCTION(Xapian::Database) 00037 XAPIAN_OUTPUT_FUNCTION(Xapian::WritableDatabase) 00038 00039 #include <xapian/document.h> 00040 XAPIAN_OUTPUT_FUNCTION(Xapian::Document) 00041 XAPIAN_OUTPUT_FUNCTION(Xapian::TermIterator) 00042 XAPIAN_OUTPUT_FUNCTION(Xapian::PositionListIterator) 00043 XAPIAN_OUTPUT_FUNCTION(Xapian::ValueIterator) 00044 00045 #include <xapian/omquery.h> 00046 XAPIAN_OUTPUT_FUNCTION(Xapian::Query) 00047 00048 #include <xapian/omenquire.h> 00049 XAPIAN_OUTPUT_FUNCTION(Xapian::RSet) 00050 XAPIAN_OUTPUT_FUNCTION(Xapian::MSetIterator) 00051 XAPIAN_OUTPUT_FUNCTION(Xapian::MSet) 00052 XAPIAN_OUTPUT_FUNCTION(Xapian::ESetIterator) 00053 XAPIAN_OUTPUT_FUNCTION(Xapian::ESet) 00054 XAPIAN_OUTPUT_FUNCTION(Xapian::Enquire) 00055 00056 #include <xapian/omstem.h> 00057 XAPIAN_OUTPUT_FUNCTION(Xapian::Stem) 00058 00059 #include <xapian/ompostlistiterator.h> 00060 XAPIAN_OUTPUT_FUNCTION(Xapian::PostListIterator) 00061 00062 #endif