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
{
33
class
Issue
;
34
template
<
class
>
class
SingletonCreator
;
35
48
49
class
Configuration
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
64
void
debug_level
(
int
debug_level
)
65
{
m_debug_level
=
debug_level
; }
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 &
operator<<
( std::ostream &,
const
ers::Configuration
& );
77
}
78
79
#endif
80
ers::Configuration
Manager of ERS streams configuration.
Definition
Configuration.hpp:50
ers::Configuration::debug_level
void debug_level(int debug_level)
Definition
Configuration.hpp:64
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:52
ers::Configuration::Configuration
Configuration()
Definition
Configuration.cpp:45
ers::Configuration::verbosity_level
int verbosity_level() const
returns current verbosity level
Definition
Configuration.hpp:61
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:80
ers::SingletonCreator
Definition
SingletonCreator.hpp:35
ers
Definition
Logger.hxx:202
ers::verbosity_level
int verbosity_level()
Definition
ers.hpp:119
ers::operator<<
std::ostream & operator<<(std::ostream &, const ers::Configuration &)
Definition
Configuration.cpp:60
Generated on
for DUNE-DAQ by
1.17.0