Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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 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 <iosfwd>
00031 
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 <xapian/stem.h>
00057 XAPIAN_OUTPUT_FUNCTION(Xapian::Stem)
00058 
00059 #include <xapian/postingiterator.h>
00060 XAPIAN_OUTPUT_FUNCTION(Xapian::PostingIterator)
00061 
00062 #include <xapian/positioniterator.h>
00063 XAPIAN_OUTPUT_FUNCTION(Xapian::PositionIterator)
00064 
00065 #include <xapian/termiterator.h>
00066 XAPIAN_OUTPUT_FUNCTION(Xapian::TermIterator)
00067 
00068 #include <xapian/valueiterator.h>
00069 XAPIAN_OUTPUT_FUNCTION(Xapian::ValueIterator)
00070 
00071 #endif /* XAPIAN_INCLUDED_OUTPUT_H */

Documentation for Xapian (version 0.7.1).
Generated on 11 Jul 2003 by Doxygen 1.2.15.