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
32{
33 class Issue;
34 template <class > class SingletonCreator;
35
48
50 {
51 friend std::ostream & operator<<( std::ostream &, const ers::Configuration & );
52 template <class > friend class SingletonCreator;
53
54 public:
55
56 static Configuration & instance();
57
58 int debug_level() const
59 { return m_debug_level; }
60
61 int verbosity_level() const
62 { return m_verbosity_level; }
63
66
68
69 private:
71
74 };
75
76 std::ostream & operator<<( std::ostream &, const ers::Configuration & );
77}
78
79#endif
80
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:80
int verbosity_level()
Definition ers.hpp:119
std::ostream & operator<<(std::ostream &, const ers::Configuration &)