DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
include
ers
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
31
namespace
ers
{
32
class
Issue
;
33
template
<
class
>
34
class
SingletonCreator
;
35
48
49
class
Configuration
50
{
51
friend
std::ostream&
operator<<
(std::ostream&,
const
ers::Configuration
&);
52
template
<
class
>
53
friend
class
SingletonCreator
;
54
55
public
:
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
62
void
debug_level
(
int
debug_level
)
63
{
64
m_debug_level
=
debug_level
;
65
}
66
67
void
verbosity_level
(
int
verbosity_level
);
68
69
private
:
70
Configuration
();
71
72
int
m_debug_level
;
73
int
m_verbosity_level
;
74
};
75
76
std::ostream&
77
operator<<
(std::ostream&,
const
ers::Configuration
&);
78
}
79
80
#endif
ers::Configuration
Manager of ERS streams configuration.
Definition
Configuration.hpp:50
ers::Configuration::debug_level
void debug_level(int debug_level)
Definition
Configuration.hpp:62
ers::Configuration::m_debug_level
int m_debug_level
current active level for the debug stream
Definition
Configuration.hpp:72
ers::Configuration::SingletonCreator
friend class SingletonCreator
Definition
Configuration.hpp:53
ers::Configuration::Configuration
Configuration()
Definition
Configuration.cpp:92
ers::Configuration::verbosity_level
int verbosity_level() const
returns current verbosity level
Definition
Configuration.hpp:60
ers::Configuration::operator<<
friend std::ostream & operator<<(std::ostream &, const ers::Configuration &)
ers::Configuration::instance
static Configuration & instance()
return the singleton
Definition
Configuration.cpp:33
ers::Configuration::debug_level
int debug_level() const
returns current debug level
Definition
Configuration.hpp:58
ers::Configuration::m_verbosity_level
int m_verbosity_level
current verbosity level for all streams
Definition
Configuration.hpp:73
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:76
ers::SingletonCreator
Definition
SingletonCreator.hpp:34
ers
Definition
Logger.hxx:231
ers::verbosity_level
int verbosity_level()
Definition
ers.hpp:140
ers::operator<<
std::ostream & operator<<(std::ostream &, const ers::Configuration &)
Definition
Configuration.cpp:60
Generated on
for DUNE-DAQ by
1.18.0