00001 00004 /* 00005 * ----START-LICENCE---- 00006 * Copyright 1999,2000,2001 BrightStation PLC 00007 * Copyright 2002 Ananova Ltd 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License as 00011 * published by the Free Software Foundation; either version 2 of the 00012 * License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 * USA 00023 * -----END-LICENCE----- 00024 */ 00025 00026 #ifndef OM_HGUARD_OMOUTPUT_H 00027 #define OM_HGUARD_OMOUTPUT_H 00028 00029 #include <iostream> 00030 00031 #define OUTPUT_FUNCTION(a) \ 00032 inline std::ostream & \ 00033 operator<<(std::ostream & os, const a & obj) { \ 00034 return os << obj.get_description(); \ 00035 } 00036 00037 #include "om/omdatabase.h" 00038 OUTPUT_FUNCTION(OmDatabase) 00039 OUTPUT_FUNCTION(OmWritableDatabase) 00040 00041 #include "om/omdocument.h" 00042 OUTPUT_FUNCTION(OmDocument) 00043 00044 #include "om/omquery.h" 00045 OUTPUT_FUNCTION(OmQuery) 00046 00047 #include "om/omenquire.h" 00048 OUTPUT_FUNCTION(OmRSet) 00049 OUTPUT_FUNCTION(OmMSetIterator) 00050 OUTPUT_FUNCTION(OmMSet) 00051 OUTPUT_FUNCTION(OmESetIterator) 00052 OUTPUT_FUNCTION(OmESet) 00053 OUTPUT_FUNCTION(OmEnquire) 00054 00055 #include "om/omstem.h" 00056 OUTPUT_FUNCTION(OmStem) 00057 00058 #include "om/omsettings.h" 00059 OUTPUT_FUNCTION(OmSettings) 00060 00061 #include "om/ompostlistiterator.h" 00062 OUTPUT_FUNCTION(OmPostListIterator) 00063 00064 #include "om/ompositionlistiterator.h" 00065 OUTPUT_FUNCTION(OmPositionListIterator) 00066 00067 #include "om/omtermlistiterator.h" 00068 OUTPUT_FUNCTION(OmTermIterator) 00069 00070 #include "om/omvalueiterator.h" 00071 OUTPUT_FUNCTION(OmValueIterator) 00072 00073 #endif /* OM_HGUARD_OMOUTPUT_H */