include/xapian/output.h

Go to the documentation of this file.
00001 
00004 /*
00005  * ----START-LICENCE----
00006  * Copyright 1999,2000,2001 BrightStation PLC
00007  * Copyright 2002 Ananova Ltd
00008  * Copyright 2002,2003,2004 Olly Betts
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023  * USA
00024  * -----END-LICENCE-----
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 /* XAPIAN_INCLUDED_OUTPUT_H */

Documentation for Xapian (version 0.9.6).
Generated on 15 May 2006 by Doxygen 1.4.6.