dune-common  2.2.0
stdstreams.hh
Go to the documentation of this file.
00001 // $Id: stdstreams.hh 6785 2012-05-31 22:07:47Z sander $
00002 
00003 /*
00004 
00005   Declaration of standard Dune-library streams
00006 
00007 */
00008 
00009 #ifndef DUNE_COMMON_STDSTREAMS_HH
00010 #define DUNE_COMMON_STDSTREAMS_HH
00011 
00012 #include "debugstream.hh"
00013 
00014 namespace Dune {
00015 
00067   #ifndef DUNE_MINIMAL_DEBUG_LEVEL
00068   #define DUNE_MINIMAL_DEBUG_LEVEL 4
00069   #endif
00070   static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL;
00071 
00076   static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL = 1;
00077   
00082   typedef DebugStream<VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVVerbType;
00083 
00096   extern DVVerbType dvverb;
00097 
00102   static const DebugLevel VERBOSE_DEBUG_LEVEL = 2;
00103 
00108   typedef DebugStream<VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVerbType;
00109 
00117   extern DVerbType dverb;
00118 
00123   static const DebugLevel INFO_DEBUG_LEVEL = 3;
00124 
00129   typedef DebugStream<INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DInfoType;
00130 
00141   extern DInfoType dinfo;
00142 
00147   static const DebugLevel WARN_DEBUG_LEVEL = 4;
00148 
00153   typedef DebugStream<WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DWarnType;
00154 
00162   extern DWarnType dwarn;
00163 
00168   static const DebugLevel GRAVE_DEBUG_LEVEL = 5;
00169 
00171   typedef DebugStream<GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DGraveType;
00172 
00180   extern DGraveType dgrave;
00181 
00183   typedef DebugStream<1> DErrType;
00184 
00196   extern DErrType derr;
00197 
00199 }
00200 
00201 #endif