00001 00004 /* 00005 * Copyright 1999,2000,2001 BrightStation PLC 00006 * Copyright 2002 Ananova Ltd 00007 * Copyright 2002,2003,2004,2007 Olly Betts 00008 * Copyright 2007 Lemur Consulting Ltd 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU General Public License as 00012 * published by the Free Software Foundation; either version 2 of the 00013 * License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00023 * USA 00024 */ 00025 00026 #ifndef XAPIAN_INCLUDED_OUTPUT_H 00027 #define XAPIAN_INCLUDED_OUTPUT_H 00028 00029 #include <fstream> 00030 00032 #define XAPIAN_OUTPUT_FUNCTION(CLASS) \ 00033 inline std::ostream & \ 00034 operator<<(std::ostream & os, const CLASS & object) { \ 00035 return os << object.get_description(); \ 00036 } 00037 00038 #include <xapian/database.h> 00039 XAPIAN_OUTPUT_FUNCTION(Xapian::Database) 00040 XAPIAN_OUTPUT_FUNCTION(Xapian::WritableDatabase) 00041 00042 #include <xapian/document.h> 00043 XAPIAN_OUTPUT_FUNCTION(Xapian::Document) 00044 00045 #include <xapian/query.h> 00046 XAPIAN_OUTPUT_FUNCTION(Xapian::Query) 00047 00048 #include <xapian/enquire.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 "stats.h" 00057 XAPIAN_OUTPUT_FUNCTION(Stats) 00058 00059 #include <xapian/stem.h> 00060 XAPIAN_OUTPUT_FUNCTION(Xapian::Stem) 00061 00062 #include <xapian/postingiterator.h> 00063 XAPIAN_OUTPUT_FUNCTION(Xapian::PostingIterator) 00064 00065 #include <xapian/positioniterator.h> 00066 XAPIAN_OUTPUT_FUNCTION(Xapian::PositionIterator) 00067 00068 #include <xapian/termiterator.h> 00069 XAPIAN_OUTPUT_FUNCTION(Xapian::TermIterator) 00070 00071 #include <xapian/valueiterator.h> 00072 XAPIAN_OUTPUT_FUNCTION(Xapian::ValueIterator) 00073 00074 #endif /* XAPIAN_INCLUDED_OUTPUT_H */