ATLAS Offline Software
DbPrint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 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 <atomic>
15 #include "SystemTools.h"
16 
17 namespace pool {
18 
19  struct DbPrintLvl {
20  static std::atomic<MSG::Level> outputLvl;
21  inline static void setLevel( MSG::Level l ) { outputLvl.store(l); }
22  inline static MSG::Level getLevel( const std::string& name );
23  };
24 
25 
26  class DbPrint : public MsgStream {
27  public:
28  DbPrint( const std::string& name );
29 
30  static MsgStream& endmsg( MsgStream& s ) { return ::endmsg(s); }
31  };
32 
33 
35  class APRMessaging : public AthMessaging {
36  public:
37  APRMessaging(const std::string& name);
38 
39  APRMessaging(const APRMessaging&) = delete;
40  APRMessaging& operator=(const APRMessaging&) = delete;
43  };
44 
45 } // End namespace pool
46 #endif // POOL_DBPRINT_H
pool::DbPrintLvl::getLevel
static MSG::Level getLevel(const std::string &name)
pool::APRMessaging::APRMessaging
APRMessaging(const std::string &name)
pool::DbPrint
Definition: DbPrint.h:26
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
pool::DbPrintLvl
Definition: DbPrint.h:19
pool::DbPrintLvl::outputLvl
static std::atomic< MSG::Level > outputLvl
Definition: DbPrint.h:20
pool
pool namespace
Definition: libname.h:15
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:157
pool::APRMessaging
AthMessaging wrapper to set the output level in APR components.
Definition: DbPrint.h:35
pool::DbPrint::endmsg
static MsgStream & endmsg(MsgStream &s)
Definition: DbPrint.h:30
pool::DbPrintLvl::setLevel
static void setLevel(MSG::Level l)
Definition: DbPrint.h:21
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
pool::APRMessaging::operator=
APRMessaging & operator=(APRMessaging &&)=delete
pool::APRMessaging::APRMessaging
APRMessaging(const APRMessaging &)=delete
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
pool::APRMessaging::operator=
APRMessaging & operator=(const APRMessaging &)=delete
pool::APRMessaging::APRMessaging
APRMessaging(APRMessaging &&)=delete
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SystemTools.h
AthMessaging.h
python.SystemOfUnits.s
float s
Definition: SystemOfUnits.py:147
pool::DbPrint::DbPrint
DbPrint(const std::string &name)