Dune Core Modules (2.9.0)

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 (C) 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 "debugstream.hh"
19
20namespace Dune {
21
66#ifndef DUNE_MINIMAL_DEBUG_LEVEL
67#define DUNE_MINIMAL_DEBUG_LEVEL 4
68#endif
69 static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL;
70
76
82
96
102
108
117
122 static const DebugLevel INFO_DEBUG_LEVEL = 3;
123
129
141
146 static const DebugLevel WARN_DEBUG_LEVEL = 4;
147
153
162
168
171
180
183
196
198}
199
200#endif
Generic class to implement debug output streams.
Definition: debugstream.hh:192
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:81
DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType
Type of debug stream with warn level.
Definition: stdstreams.hh:152
DVVerbType dvverb(std::cout)
stream for very verbose output.
Definition: stdstreams.hh:95
#define DUNE_MINIMAL_DEBUG_LEVEL
The default minimum debug level.
Definition: stdstreams.hh:67
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL
The level of the very verbose debug stream.
Definition: stdstreams.hh:75
DWarnType dwarn(std::cerr)
Stream for warnings indicating problems.
Definition: stdstreams.hh:161
static const DebugLevel GRAVE_DEBUG_LEVEL
The level of the debug stream for fatal errors.
Definition: stdstreams.hh:167
DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType
Type of more verbose debug stream.
Definition: stdstreams.hh:107
DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType
Type of debug stream for fatal errors.
Definition: stdstreams.hh:170
DGraveType dgrave(std::cerr)
Stream for warnings indicating fatal errors.
Definition: stdstreams.hh:179
DebugStream< 1 > DErrType
The type of the stream used for error messages.
Definition: stdstreams.hh:182
static const DebugLevel INFO_DEBUG_LEVEL
The level of the informative debug stream.
Definition: stdstreams.hh:122
DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType
Type of debug stream with info level.
Definition: stdstreams.hh:128
DInfoType dinfo(std::cout)
Stream for informative output.
Definition: stdstreams.hh:140
DVerbType dverb(std::cout)
Singleton of verbose debug stream.
Definition: stdstreams.hh:116
static const DebugLevel VERBOSE_DEBUG_LEVEL
The level of the verbose debug stream.
Definition: stdstreams.hh:101
DErrType derr(std::cerr)
Stream for error messages.
Definition: stdstreams.hh:195
static const DebugLevel WARN_DEBUG_LEVEL
The level of the debug stream for warnings.
Definition: stdstreams.hh:146
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)