00001 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 // vi: set et ts=4 sw=2 sts=2: 00003 00013 #ifndef DUNE_COMMON_STDSTREAMS_HH 00014 #define DUNE_COMMON_STDSTREAMS_HH 00015 00016 #include "debugstream.hh" 00017 00018 namespace Dune { 00019 00064 #ifndef DUNE_MINIMAL_DEBUG_LEVEL 00065 #define DUNE_MINIMAL_DEBUG_LEVEL 4 00066 #endif 00067 static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL; 00068 00073 static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL = 1; 00074 00079 typedef DebugStream<VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVVerbType; 00080 00093 extern DVVerbType dvverb; 00094 00099 static const DebugLevel VERBOSE_DEBUG_LEVEL = 2; 00100 00105 typedef DebugStream<VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVerbType; 00106 00114 extern DVerbType dverb; 00115 00120 static const DebugLevel INFO_DEBUG_LEVEL = 3; 00121 00126 typedef DebugStream<INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DInfoType; 00127 00138 extern DInfoType dinfo; 00139 00144 static const DebugLevel WARN_DEBUG_LEVEL = 4; 00145 00150 typedef DebugStream<WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DWarnType; 00151 00159 extern DWarnType dwarn; 00160 00165 static const DebugLevel GRAVE_DEBUG_LEVEL = 5; 00166 00168 typedef DebugStream<GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DGraveType; 00169 00177 extern DGraveType dgrave; 00178 00180 typedef DebugStream<1> DErrType; 00181 00193 extern DErrType derr; 00194 00196 } 00197 00198 #endif