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

include/om/omoutput.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 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 OM_HGUARD_OMOUTPUT_H
00028 #define OM_HGUARD_OMOUTPUT_H
00029 
00030 #include <iostream>
00031 
00032 #define OUTPUT_FUNCTION(a) \
00033 inline std::ostream & \
00034 operator<<(std::ostream & os, const a & obj) { \
00035     return os << obj.get_description(); \
00036 }
00037 
00038 #include "om/omdatabase.h"
00039 OUTPUT_FUNCTION(OmDatabase)
00040 OUTPUT_FUNCTION(OmWritableDatabase)
00041 
00042 #include "om/omdocument.h"
00043 OUTPUT_FUNCTION(OmDocument)
00044 
00045 #include "om/omquery.h"
00046 OUTPUT_FUNCTION(OmQuery)
00047 
00048 #include "om/omenquire.h"
00049 OUTPUT_FUNCTION(OmRSet)
00050 OUTPUT_FUNCTION(OmMSetIterator)
00051 OUTPUT_FUNCTION(OmMSet)
00052 OUTPUT_FUNCTION(OmESetIterator)
00053 OUTPUT_FUNCTION(OmESet)
00054 OUTPUT_FUNCTION(OmEnquire)
00055 
00056 #include "om/omstem.h"
00057 OUTPUT_FUNCTION(OmStem)
00058 
00059 #include "om/ompostlistiterator.h"
00060 OUTPUT_FUNCTION(OmPostListIterator)
00061 
00062 #include "om/ompositionlistiterator.h"
00063 OUTPUT_FUNCTION(OmPositionListIterator)
00064 
00065 #include "om/omtermlistiterator.h"
00066 OUTPUT_FUNCTION(OmTermIterator)
00067 
00068 #include "om/omvalueiterator.h"
00069 OUTPUT_FUNCTION(OmValueIterator)
00070 
00071 #endif /* OM_HGUARD_OMOUTPUT_H */

Documentation for Xapian (version 0.6.3).
Generated on 14 Dec 2002 by Doxygen 1.2.15.