DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Configuration.hpp
Go to the documentation of this file.
1/*
2 * DUNE DAQ modification notice:
3 * This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
4 * Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
5 * Renamed since fork: yes (from ers/Configuration.h to include/ers/Configuration.hpp).
6 *
7 * Original copyright:
8 * Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
9 * Licensed under the Apache License, Version 2.0.
10 */
11
12#ifndef ERS_CONFIGURATION_H
13#define ERS_CONFIGURATION_H
14
15/*
16 * Configuration.h
17 * ers
18 *
19 * Created by Serguei Kolos on 21.11.05.
20 * Copyright 2005 CERN. All rights reserved.
21 *
22 */
23
28
29#include <iostream>
30
31namespace ers {
32class Issue;
33template<class>
35
48
50{
51 friend std::ostream& operator<<(std::ostream&, const ers::Configuration&);
52 template<class>
53 friend class SingletonCreator;
54
55public:
56 static Configuration& instance();
57
58 int debug_level() const { return m_debug_level; }
59
60 int verbosity_level() const { return m_verbosity_level; }
61
66
68
69private:
71
74};
75
76std::ostream&
77operator<<(std::ostream&, const ers::Configuration&);
78}
79
80#endif
Manager of ERS streams configuration.
void debug_level(int debug_level)
int m_debug_level
current active level for the debug stream
friend class SingletonCreator
int verbosity_level() const
returns current verbosity level
friend std::ostream & operator<<(std::ostream &, const ers::Configuration &)
static Configuration & instance()
return the singleton
int debug_level() const
returns current debug level
int m_verbosity_level
current verbosity level for all streams
Base class for any user define issue.
Definition Issue.hpp:76
int verbosity_level()
Definition ers.hpp:140
std::ostream & operator<<(std::ostream &, const ers::Configuration &)