Loading...
Searching...
No Matches
stdstreams.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_COMMON_STDSTREAMS_HH
#define DUNE_COMMON_STDSTREAMS_HH
#include <dune-common-config.hh> // DUNE_MINIMAL_DEBUG_LEVEL
#include "debugstream.hh"
namespace Dune {
#ifndef DUNE_MINIMAL_DEBUG_LEVEL
#define DUNE_MINIMAL_DEBUG_LEVEL 4
#endif
static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL;
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL = 1;
typedef DebugStream<VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVVerbType;
extern DVVerbType dvverb;
static const DebugLevel VERBOSE_DEBUG_LEVEL = 2;
typedef DebugStream<VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVerbType;
extern DVerbType dverb;
static const DebugLevel INFO_DEBUG_LEVEL = 3;
typedef DebugStream<INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DInfoType;
extern DInfoType dinfo;
static const DebugLevel WARN_DEBUG_LEVEL = 4;
typedef DebugStream<WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DWarnType;
extern DWarnType dwarn;
static const DebugLevel GRAVE_DEBUG_LEVEL = 5;
typedef DebugStream<GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DGraveType;
extern DGraveType dgrave;
typedef DebugStream<1> DErrType;
extern DErrType derr;
}
#endif
debugstream.hh
Defines several output streams for messages of different importance.
Dune::DebugLevel
unsigned int DebugLevel
Type for debug levels.
Definition debugstream.hh:118
Dune::DVVerbType
DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVVerbType
Type of very verbose debug stream.
Definition stdstreams.hh:82
Dune::DWarnType
DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType
Type of debug stream with warn level.
Definition stdstreams.hh:153
Dune::dvverb
DVVerbType dvverb(std::cout)
stream for very verbose output.
Definition stdstreams.hh:96
Dune::MINIMAL_DEBUG_LEVEL
static const DebugLevel MINIMAL_DEBUG_LEVEL
Definition stdstreams.hh:70
DUNE_MINIMAL_DEBUG_LEVEL
#define DUNE_MINIMAL_DEBUG_LEVEL
The default minimum debug level.
Definition stdstreams.hh:68
Dune::VERY_VERBOSE_DEBUG_LEVEL
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL
The level of the very verbose debug stream.
Definition stdstreams.hh:76
Dune::dwarn
DWarnType dwarn(std::cerr)
Stream for warnings indicating problems.
Definition stdstreams.hh:162
Dune::GRAVE_DEBUG_LEVEL
static const DebugLevel GRAVE_DEBUG_LEVEL
The level of the debug stream for fatal errors.
Definition stdstreams.hh:168
Dune::DVerbType
DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType
Type of more verbose debug stream.
Definition stdstreams.hh:108
Dune::DGraveType
DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType
Type of debug stream for fatal errors.
Definition stdstreams.hh:171
Dune::dgrave
DGraveType dgrave(std::cerr)
Stream for warnings indicating fatal errors.
Definition stdstreams.hh:180
Dune::DErrType
DebugStream< 1 > DErrType
The type of the stream used for error messages.
Definition stdstreams.hh:183
Dune::INFO_DEBUG_LEVEL
static const DebugLevel INFO_DEBUG_LEVEL
The level of the informative debug stream.
Definition stdstreams.hh:123
Dune::DInfoType
DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType
Type of debug stream with info level.
Definition stdstreams.hh:129
Dune::dinfo
DInfoType dinfo(std::cout)
Stream for informative output.
Definition stdstreams.hh:141
Dune::dverb
DVerbType dverb(std::cout)
Singleton of verbose debug stream.
Definition stdstreams.hh:117
Dune::VERBOSE_DEBUG_LEVEL
static const DebugLevel VERBOSE_DEBUG_LEVEL
The level of the verbose debug stream.
Definition stdstreams.hh:102
Dune::derr
DErrType derr(std::cerr)
Stream for error messages.
Definition stdstreams.hh:196
Dune::WARN_DEBUG_LEVEL
static const DebugLevel WARN_DEBUG_LEVEL
The level of the debug stream for warnings.
Definition stdstreams.hh:147
Dune
Dune namespace
Definition alignedallocator.hh:13
Dune::DebugStream
Generic class to implement debug output streams.
Definition debugstream.hh:192