ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14#include <atomic>
15
16namespace 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;
48 };
49
50} // End namespace pool
51#endif // POOL_DBPRINT_H
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
APRMessaging(const APRMessaging &)=delete
APRMessaging & operator=(APRMessaging &&)=delete
APRMessaging(const std::string &name)
APRMessaging & operator=(const APRMessaging &)=delete
APRMessaging(APRMessaging &&)=delete
static MSG::Level getOutputLvlFromEnv()
static MSG::Level getOutputLvl()
DbPrint(const std::string &name)
static MsgStream & endmsg(MsgStream &s)
Definition DbPrint.h:35
Framework include files.
Definition libname.h:15
static void setLevel(MSG::Level l)
Definition DbPrint.h:20
static std::atomic< MSG::Level > outputLvl
Definition DbPrint.h:19
static MSG::Level getLevel(const std::string &name)