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
5
//====================================================================
6
// APR Printer object
7
//--------------------------------------------------------------------
8
9
#ifndef POOL_DBPRINT_H
10
#define POOL_DBPRINT_H 1
11
12
#include "
AthenaBaseComps/AthMessaging.h
"
13
14
#include <atomic>
15
16
namespace
pool
{
17
18
struct
DbPrintLvl
{
19
static
std::atomic<MSG::Level>
outputLvl
;
20
inline
static
void
setLevel
( MSG::Level l ) {
outputLvl
.store(l); }
21
inline
static
MSG::Level
getLevel
(
const
std::string& name );
22
};
23
24
25
class
DbPrint
:
public
MsgStream {
26
public
:
27
DbPrint
(
const
std::string& name );
28
29
// return the configured output level
30
static
MSG::Level
getOutputLvl
();
31
32
// read the output level from environment
33
static
MSG::Level
getOutputLvlFromEnv
();
34
35
static
MsgStream&
endmsg
( MsgStream& s ) { return ::endmsg(s); }
36
};
37
38
40
class
APRMessaging
:
public
AthMessaging
{
41
public
:
42
APRMessaging
(
const
std::string& name);
43
44
APRMessaging
(
const
APRMessaging
&) =
delete
;
45
APRMessaging
&
operator=
(
const
APRMessaging
&) =
delete
;
46
APRMessaging
(
APRMessaging
&&) =
delete
;
47
APRMessaging
&
operator=
(
APRMessaging
&&) =
delete
;
48
};
49
50
}
// End namespace pool
51
#endif
// POOL_DBPRINT_H
AthMessaging.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
pool::APRMessaging::APRMessaging
APRMessaging(const APRMessaging &)=delete
pool::APRMessaging::operator=
APRMessaging & operator=(APRMessaging &&)=delete
pool::APRMessaging::APRMessaging
APRMessaging(const std::string &name)
pool::APRMessaging::operator=
APRMessaging & operator=(const APRMessaging &)=delete
pool::APRMessaging::APRMessaging
APRMessaging(APRMessaging &&)=delete
pool::DbPrint::getOutputLvlFromEnv
static MSG::Level getOutputLvlFromEnv()
pool::DbPrint::getOutputLvl
static MSG::Level getOutputLvl()
pool::DbPrint::DbPrint
DbPrint(const std::string &name)
pool::DbPrint::endmsg
static MsgStream & endmsg(MsgStream &s)
Definition
DbPrint.h:35
pool
Framework include files.
Definition
libname.h:15
pool::DbPrintLvl
Definition
DbPrint.h:18
pool::DbPrintLvl::setLevel
static void setLevel(MSG::Level l)
Definition
DbPrint.h:20
pool::DbPrintLvl::outputLvl
static std::atomic< MSG::Level > outputLvl
Definition
DbPrint.h:19
pool::DbPrintLvl::getLevel
static MSG::Level getLevel(const std::string &name)
Generated on
for ATLAS Offline Software by
1.17.0