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

include/om/omoutput.h

00001 /* omoutput.h: Functions for outputting strings describing OM objects.
00002  *
00003  * ----START-LICENCE----
00004  * Copyright 1999,2000,2001 BrightStation PLC
00005  * Copyright 2002 Ananova Ltd
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of the
00010  * License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00020  * USA
00021  * -----END-LICENCE-----
00022  */
00023 
00024 #ifndef OM_HGUARD_OMOUTPUT_H
00025 #define OM_HGUARD_OMOUTPUT_H
00026 
00027 #include <iostream>
00028 
00029 #define 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 "om/omdatabase.h"
00036 OUTPUT_FUNCTION(OmDatabase)
00037 OUTPUT_FUNCTION(OmWritableDatabase)
00038 
00039 #include "om/omdocument.h"
00040 OUTPUT_FUNCTION(OmDocument)
00041 
00042 #include "om/omquery.h"
00043 OUTPUT_FUNCTION(OmQuery)
00044 
00045 #include "om/omenquire.h"
00046 OUTPUT_FUNCTION(OmRSet)
00047 OUTPUT_FUNCTION(OmMSetIterator)
00048 OUTPUT_FUNCTION(OmMSet)
00049 OUTPUT_FUNCTION(OmESetIterator)
00050 OUTPUT_FUNCTION(OmESet)
00051 OUTPUT_FUNCTION(OmEnquire)
00052 
00053 #include "om/omstem.h"
00054 OUTPUT_FUNCTION(OmStem)
00055 
00056 #include "om/omsettings.h"
00057 OUTPUT_FUNCTION(OmSettings)
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.5.4).
Generated on 16 Oct 2002 by Doxygen 1.2.15.