ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace 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;
43 };
44
45} // End namespace pool
46#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
DbPrint(const std::string &name)
static MsgStream & endmsg(MsgStream &s)
Definition DbPrint.h:30
singleton-like access to IMessageSvc via open function and helper
pool namespace
Definition libname.h:15
static void setLevel(MSG::Level l)
Definition DbPrint.h:21
static std::atomic< MSG::Level > outputLvl
Definition DbPrint.h:20
static MSG::Level getLevel(const std::string &name)