Dune Core Modules (2.3.1)

stdstreams.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 // $Id$
4 
14 #ifndef DUNE_COMMON_STDSTREAMS_HH
15 #define DUNE_COMMON_STDSTREAMS_HH
16 
17 #include "debugstream.hh"
18 
19 namespace Dune {
20 
65 #ifndef DUNE_MINIMAL_DEBUG_LEVEL
66 #define DUNE_MINIMAL_DEBUG_LEVEL 4
67 #endif
68  static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL;
69 
75 
81 
95 
100  static const DebugLevel VERBOSE_DEBUG_LEVEL = 2;
101 
107 
115  extern DVerbType dverb;
116 
121  static const DebugLevel INFO_DEBUG_LEVEL = 3;
122 
128 
139  extern DInfoType dinfo;
140 
145  static const DebugLevel WARN_DEBUG_LEVEL = 4;
146 
152 
160  extern DWarnType dwarn;
161 
166  static const DebugLevel GRAVE_DEBUG_LEVEL = 5;
167 
170 
179 
182 
194  extern DErrType derr;
195 
197 }
198 
199 #endif
Generic class to implement debug output streams.
Definition: debugstream.hh:191
Defines several output streams for messages of different importance.
unsigned int DebugLevel
Type for debug levels.
Definition: debugstream.hh:117
DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVVerbType
Type of very verbose debug stream.
Definition: stdstreams.hh:80
DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType
Type of debug stream with warn level.
Definition: stdstreams.hh:151
DVVerbType dvverb(std::cout)
stream for very verbose output.
Definition: stdstreams.hh:94
#define DUNE_MINIMAL_DEBUG_LEVEL
The default minimum debug level.
Definition: stdstreams.hh:66
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL
The level of the very verbose debug stream.
Definition: stdstreams.hh:74
DWarnType dwarn(std::cerr)
Stream for warnings indicating problems.
Definition: stdstreams.hh:160
static const DebugLevel GRAVE_DEBUG_LEVEL
The level of the debug stream for fatal errors.
Definition: stdstreams.hh:166
DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType
Type of more verbose debug stream.
Definition: stdstreams.hh:106
DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType
Type of debug stream for fatal errors.
Definition: stdstreams.hh:169
DGraveType dgrave(std::cerr)
Stream for warnings indicating fatal errors.
Definition: stdstreams.hh:178
DebugStream< 1 > DErrType
The type of the stream used for error messages.
Definition: stdstreams.hh:181
static const DebugLevel INFO_DEBUG_LEVEL
The level of the informative debug stream.
Definition: stdstreams.hh:121
DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType
Type of debug stream with info level.
Definition: stdstreams.hh:127
DInfoType dinfo(std::cout)
Stream for informative output.
Definition: stdstreams.hh:139
DVerbType dverb(std::cout)
Singleton of verbose debug stream.
Definition: stdstreams.hh:115
static const DebugLevel VERBOSE_DEBUG_LEVEL
The level of the verbose debug stream.
Definition: stdstreams.hh:100
DErrType derr(std::cerr)
Stream for error messages.
Definition: stdstreams.hh:194
static const DebugLevel WARN_DEBUG_LEVEL
The level of the debug stream for warnings.
Definition: stdstreams.hh:145
Dune namespace.
Definition: alignment.hh:14
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 16, 22:29, 2024)