dune-common 2.11
Loading...
Searching...
No Matches
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// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
15#ifndef DUNE_COMMON_STDSTREAMS_HH
16#define DUNE_COMMON_STDSTREAMS_HH
17
18#include <dune-common-config.hh> // DUNE_MINIMAL_DEBUG_LEVEL
19#include "debugstream.hh"
20
21namespace Dune {
22
67#ifndef DUNE_MINIMAL_DEBUG_LEVEL
68#define DUNE_MINIMAL_DEBUG_LEVEL 4
69#endif
71
77
83
96 extern DVVerbType dvverb;
97
103
109
117 extern DVerbType dverb;
118
123 static const DebugLevel INFO_DEBUG_LEVEL = 3;
124
130
141 extern DInfoType dinfo;
142
147 static const DebugLevel WARN_DEBUG_LEVEL = 4;
148
154
162 extern DWarnType dwarn;
163
169
172
180 extern DGraveType dgrave;
181
184
196 extern DErrType derr;
197
199}
200
201#endif
Defines several output streams for messages of different importance.
unsigned int DebugLevel
Type for debug levels.
Definition debugstream.hh:118
DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVVerbType
Type of very verbose debug stream.
Definition stdstreams.hh:82
DErrType derr
Stream for error messages.
DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType
Type of debug stream with warn level.
Definition stdstreams.hh:153
static const DebugLevel MINIMAL_DEBUG_LEVEL
Definition stdstreams.hh:70
#define DUNE_MINIMAL_DEBUG_LEVEL
The default minimum debug level.
Definition stdstreams.hh:68
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL
The level of the very verbose debug stream.
Definition stdstreams.hh:76
DVVerbType dvverb
stream for very verbose output.
static const DebugLevel GRAVE_DEBUG_LEVEL
The level of the debug stream for fatal errors.
Definition stdstreams.hh:168
DVerbType dverb
Singleton of verbose debug stream.
DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType
Type of more verbose debug stream.
Definition stdstreams.hh:108
DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType
Type of debug stream for fatal errors.
Definition stdstreams.hh:171
DebugStream< 1 > DErrType
The type of the stream used for error messages.
Definition stdstreams.hh:183
DWarnType dwarn
Stream for warnings indicating problems.
static const DebugLevel INFO_DEBUG_LEVEL
The level of the informative debug stream.
Definition stdstreams.hh:123
DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType
Type of debug stream with info level.
Definition stdstreams.hh:129
DGraveType dgrave
Stream for warnings indicating fatal errors.
static const DebugLevel VERBOSE_DEBUG_LEVEL
The level of the verbose debug stream.
Definition stdstreams.hh:102
DInfoType dinfo
Stream for informative output.
static const DebugLevel WARN_DEBUG_LEVEL
The level of the debug stream for warnings.
Definition stdstreams.hh:147
Dune namespace
Definition alignedallocator.hh:13
Generic class to implement debug output streams.
Definition debugstream.hh:192