Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
Teuchos_VerbosityLevel.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Teuchos: Common Tools Package
4
//
5
// Copyright 2004 NTESS and the Teuchos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef TEUCHOS_VERBOSITY_LEVEL_HPP
11
#define TEUCHOS_VERBOSITY_LEVEL_HPP
12
13
17
18
19
#include "Teuchos_Assert.hpp"
20
#include "Teuchos_ArrayView.hpp"
21
#include "Teuchos_iostream_helpers.hpp"
22
23
24
namespace
Teuchos
{
25
26
31
enum
EVerbosityLevel
{
32
VERB_DEFAULT
=-1,
33
VERB_NONE
=0,
34
VERB_LOW
=1,
35
VERB_MEDIUM
=2,
36
VERB_HIGH
=3,
37
VERB_EXTREME
=4
38
};
39
40
42
constexpr
const
int
EVerbosityLevel_size
= 6;
43
44
49
TEUCHOSCORE_LIB_DLL_EXPORT
50
ArrayView<const EVerbosityLevel>
getValidVerbLevels
();
51
52
58
TEUCHOSCORE_LIB_DLL_EXPORT
59
ArrayView<const std::string>
getValidVerbLevelsNames
();
60
61
67
TEUCHOSCORE_LIB_DLL_EXPORT
68
ArrayView<const char * const>
getValidVerbLevelsNamesRawStrings
();
69
70
72
TEUCHOS_ENUM_INPUT_STREAM_OPERATOR(
EVerbosityLevel
)
73
74
75
79
TEUCHOSCORE_LIB_DLL_EXPORT std::string toString(
const
EVerbosityLevel
verbLevel);
80
81
95
TEUCHOSCORE_LIB_DLL_EXPORT
bool
includesVerbLevel
(
96
const
EVerbosityLevel
verbLevel,
97
const
EVerbosityLevel
requestedVerbLevel,
98
const
bool
isDefaultLevel =
false
99
);
100
101
111
TEUCHOSCORE_LIB_DLL_EXPORT
EVerbosityLevel
incrVerbLevel
(
112
const
EVerbosityLevel
inputVerbLevel,
113
const
int
numLevels
114
);
115
116
117
}
// namespace Teuchos
118
119
120
#endif
// TEUCHOS_VERBOSITY_LEVEL_HPP
Teuchos::ArrayView
Nonowning array view.
Definition
Teuchos_ArrayViewDecl.hpp:90
Teuchos::getValidVerbLevels
TEUCHOSCORE_LIB_DLL_EXPORT ArrayView< const EVerbosityLevel > getValidVerbLevels()
Definition
Teuchos_VerbosityLevel.cpp:15
Teuchos::getValidVerbLevelsNamesRawStrings
TEUCHOSCORE_LIB_DLL_EXPORT ArrayView< const char *const > getValidVerbLevelsNamesRawStrings()
Definition
Teuchos_VerbosityLevel.cpp:45
Teuchos::getValidVerbLevelsNames
TEUCHOSCORE_LIB_DLL_EXPORT ArrayView< const std::string > getValidVerbLevelsNames()
Definition
Teuchos_VerbosityLevel.cpp:30
Teuchos::EVerbosityLevel
EVerbosityLevel
Verbosity level.
Definition
Teuchos_VerbosityLevel.hpp:31
Teuchos::VERB_MEDIUM
@ VERB_MEDIUM
Generate more output.
Definition
Teuchos_VerbosityLevel.hpp:35
Teuchos::VERB_HIGH
@ VERB_HIGH
Generate a high level of output.
Definition
Teuchos_VerbosityLevel.hpp:36
Teuchos::VERB_EXTREME
@ VERB_EXTREME
Generate the most output possible.
Definition
Teuchos_VerbosityLevel.hpp:37
Teuchos::VERB_NONE
@ VERB_NONE
Generate no output.
Definition
Teuchos_VerbosityLevel.hpp:33
Teuchos::VERB_DEFAULT
@ VERB_DEFAULT
Generate output as defined by the object.
Definition
Teuchos_VerbosityLevel.hpp:32
Teuchos::VERB_LOW
@ VERB_LOW
Generate only a minimal amount of output.
Definition
Teuchos_VerbosityLevel.hpp:34
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos::includesVerbLevel
TEUCHOSCORE_LIB_DLL_EXPORT bool includesVerbLevel(const EVerbosityLevel verbLevel, const EVerbosityLevel requestedVerbLevel, const bool isDefaultLevel=false)
Return true if the verbosity level includes the given level.
Definition
Teuchos_VerbosityLevel.cpp:94
Teuchos::incrVerbLevel
TEUCHOSCORE_LIB_DLL_EXPORT EVerbosityLevel incrVerbLevel(const EVerbosityLevel inputVerbLevel, const int numLevels)
Return an increased or decreased verbosity level.
Definition
Teuchos_VerbosityLevel.cpp:109
Teuchos::EVerbosityLevel_size
constexpr const int EVerbosityLevel_size
Definition
Teuchos_VerbosityLevel.hpp:42
Generated by
1.17.0