/usr/include/dune/common/stdstreams.hh is in libdune-common-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | // $Id: stdstreams.hh 6785 2012-05-31 22:07:47Z sander $
/*
Declaration of standard Dune-library streams
*/
#ifndef DUNE_COMMON_STDSTREAMS_HH
#define DUNE_COMMON_STDSTREAMS_HH
#include "debugstream.hh"
namespace Dune {
/*!
\addtogroup DebugOut
@{
standard debug streams with level below MINIMAL_DEBUG_LEVEL will
collapse to doing nothing if output is requested.
MINIMAL_DEBUG_LEVEL is set to DUNE_MINIMAL_DEBUG_LEVEL, wich is
defined in config.h and can be changed by the configure option
@code --with-minimal-debug-level=[grave|warn|info|verb|vverb] @endcode
For a Dune-Release this should be set to at least 4 so that only
important messages are active. Dune-developers may adapt this
setting to their debugging needs locally
Keep in mind that libdune has to be recompiled if this value is changed!
The singleton instances of the available debug streams can be found in
the \ref DebugOut "Standard Debug Streams" module
*/
/*! \file
\brief Standard Dune debug streams
The standard debug streams are compiled into libdune to exist
globally. This file declares the stream types and the global debug
level.
*/
/*! @} */
/*!
\defgroup StdStreams Standard Debug Streams
\ingroup DebugOut
@{
Dune defines several standard output streams for the library
routines.
Applications may control the standard streams via the attach/detach,
push/pop interface but should define an independent set of streams (see \ref DebugAppl )
*/
/**
* @brief The default minimum debug level.
*
* If the level of a stream is bigger than this value
* it will be activated.
*/
#ifndef DUNE_MINIMAL_DEBUG_LEVEL
#define DUNE_MINIMAL_DEBUG_LEVEL 4
#endif
static const DebugLevel MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL;
/**
* @brief The level of the very verbose debug stream.
* @see dvverb
*/
static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL = 1;
/**
@brief Type of very verbose debug stream.
@see dvverb
*/
typedef DebugStream<VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVVerbType;
/*!
\brief stream for very verbose output.
\code
#include <dune/common/stdstreams.hh>
\endcode
Information on the lowest
level. This is expected to report insane amounts of
information. Use of the activation-flag to only generate output
near the problem is recommended.
*/
extern DVVerbType dvverb;
/**
* @brief The level of the verbose debug stream.
* @see dvverb
*/
static const DebugLevel VERBOSE_DEBUG_LEVEL = 2;
/**
@brief Type of more verbose debug stream.
@see dverb
*/
typedef DebugStream<VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DVerbType;
/**
* @brief Singleton of verbose debug stream.
*
* \code
#include <dune/common/stdstreams.hh>
* \endcode
*/
extern DVerbType dverb;
/**
* @brief The level of the informative debug stream.
* @see dinfo
*/
static const DebugLevel INFO_DEBUG_LEVEL = 3;
/**
@brief Type of debug stream with info level.
@see dinfo
*/
typedef DebugStream<INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DInfoType;
/**
@brief Stream for informative output.
\code
#include <dune/common/stdstreams.hh>
\endcode
Summary infos on what a module
does, runtimes, etc.
*/
extern DInfoType dinfo;
/**
* @brief The level of the debug stream for warnings.
* @see dwarn
*/
static const DebugLevel WARN_DEBUG_LEVEL = 4;
/**
@brief Type of debug stream with warn level.
@see dwarn
*/
typedef DebugStream<WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DWarnType;
/**
* @brief Stream for warnings indicating problems.
*
* \code
#include <dune/common/stdstreams.hh>
* \endcode
*/
extern DWarnType dwarn;
/**
* @brief The level of the debug stream for fatal errors.
* @see dgrave
*/
static const DebugLevel GRAVE_DEBUG_LEVEL = 5;
/** @brief Type of debug stream for fatal errors.*/
typedef DebugStream<GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL> DGraveType;
/**
* @brief Stream for warnings indicating fatal errors.
*
* \code
#include <dune/common/stdstreams.hh>
* \endcode
*/
extern DGraveType dgrave;
/** @brief The type of the stream used for error messages. */
typedef DebugStream<1> DErrType;
/*!
@brief Stream for error messages.
\code
#include <dune/common/stdstreams.hh>
\endcode
Only packages integrating Dune
completely will redirect it. The output of derr is independent of
the debug-level, only the activation-flag is checked.
*/
extern DErrType derr;
//! }@
}
#endif
|