ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
StorageSvc
StorageSvc
DbPrint.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef STORAGESVC_DBPRINT_H
5
#define STORAGESVC_DBPRINT_H 1
6
7
#include "
AthenaBaseComps/AthMessaging.h
"
8
9
#include <atomic>
10
11
struct
DbPrintLvl
{
12
static
std::atomic<MSG::Level>
outputLvl
;
13
inline
static
void
setLevel
( MSG::Level l ) {
outputLvl
.store(l); }
14
inline
static
MSG::Level
getLevel
(
const
std::string& name );
15
};
16
17
18
class
DbPrint
:
public
MsgStream {
19
public
:
20
DbPrint
(
const
std::string& name );
21
22
// return the configured output level
23
static
MSG::Level
getOutputLvl
();
24
25
// read the output level from environment
26
static
MSG::Level
getOutputLvlFromEnv
();
27
28
static
MsgStream&
endmsg
( MsgStream& s ) { return ::endmsg(s); }
29
};
30
31
33
class
APRMessaging
:
public
AthMessaging
{
34
public
:
35
APRMessaging
(
const
std::string& name);
36
37
APRMessaging
(
const
APRMessaging
&) =
delete
;
38
APRMessaging
&
operator=
(
const
APRMessaging
&) =
delete
;
39
APRMessaging
(
APRMessaging
&&) =
delete
;
40
APRMessaging
&
operator=
(
APRMessaging
&&) =
delete
;
41
};
42
43
#endif
AthMessaging.h
APRMessaging::APRMessaging
APRMessaging(APRMessaging &&)=delete
APRMessaging::APRMessaging
APRMessaging(const APRMessaging &)=delete
APRMessaging::APRMessaging
APRMessaging(const std::string &name)
APRMessaging::operator=
APRMessaging & operator=(APRMessaging &&)=delete
APRMessaging::operator=
APRMessaging & operator=(const APRMessaging &)=delete
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
DbPrint::getOutputLvlFromEnv
static MSG::Level getOutputLvlFromEnv()
DbPrint::endmsg
static MsgStream & endmsg(MsgStream &s)
Definition
DbPrint.h:28
DbPrint::getOutputLvl
static MSG::Level getOutputLvl()
DbPrint::DbPrint
DbPrint(const std::string &name)
DbPrintLvl
Definition
DbPrint.h:11
DbPrintLvl::setLevel
static void setLevel(MSG::Level l)
Definition
DbPrint.h:13
DbPrintLvl::outputLvl
static std::atomic< MSG::Level > outputLvl
Definition
DbPrint.h:12
DbPrintLvl::getLevel
static MSG::Level getLevel(const std::string &name)
Generated on
for ATLAS Offline Software by
1.17.0