Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <iosfwd>
7 :
8 : /// \cond
9 : namespace Options {
10 : class Option;
11 : template <typename T>
12 : struct create_from_yaml;
13 : } // namespace Options
14 : /// \endcond
15 :
16 : /// \ingroup LoggingGroup
17 : /// \brief Indicates how much informative output a class should output.
18 0 : enum class Verbosity { Silent, Quiet, Verbose, Debug };
19 :
20 0 : std::ostream& operator<<(std::ostream& os, const Verbosity& verbosity);
21 :
22 : template <>
23 0 : struct Options::create_from_yaml<Verbosity> {
24 : template <typename Metavariables>
25 0 : static Verbosity create(const Options::Option& options) {
26 : return create<void>(options);
27 : }
28 : };
29 : template <>
30 0 : Verbosity Options::create_from_yaml<Verbosity>::create<void>(
31 : const Options::Option& options);
|