ATLAS Offline Software
ILoggedMessageSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAKERNEL_ILOGGEDMESSAGESVC_H
6 #define ATHENAKERNEL_ILOGGEDMESSAGESVC_H 1
7 
8 // Include files
9 #include "GaudiKernel/IMessageSvc.h"
10 #include <string>
11 #include <vector>
12 #include <functional>
13 
14 
21 class ILoggedMessageSvc : virtual public IMessageSvc {
22 public:
23 
26 
27  struct LoggedMessage {
28  int level;
29  std::string source;
30  std::string message;
31 
32  LoggedMessage(int l, const std::string& s, const std::string& m):
33  level(l),source(s),message(m){};
34  };
35 
36 
37  virtual const std::vector<std::pair<std::string, std::string> >& getMessages( MSG::Level ) const = 0;
38  virtual const std::vector< LoggedMessage >& getKeyMessages() const = 0;
39 
40  virtual ~ILoggedMessageSvc();
41 
42 
43 };
44 
45 #endif // ATHENAKERNEL_ILOGGEDMESSAGESVC_H
ILoggedMessageSvc::getKeyMessages
virtual const std::vector< LoggedMessage > & getKeyMessages() const =0
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
ILoggedMessageSvc::~ILoggedMessageSvc
virtual ~ILoggedMessageSvc()
Definition: ILoggedMessageSvc.cxx:7
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
ILoggedMessageSvc
Definition: ILoggedMessageSvc.h:21
ILoggedMessageSvc::LoggedMessage::message
std::string message
Definition: ILoggedMessageSvc.h:30
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ILoggedMessageSvc::LoggedMessage
Definition: ILoggedMessageSvc.h:27
ILoggedMessageSvc::LoggedMessage::LoggedMessage
LoggedMessage(int l, const std::string &s, const std::string &m)
Definition: ILoggedMessageSvc.h:32
ILoggedMessageSvc::LoggedMessage::level
int level
Definition: ILoggedMessageSvc.h:28
ILoggedMessageSvc::getMessages
virtual const std::vector< std::pair< std::string, std::string > > & getMessages(MSG::Level) const =0
ILoggedMessageSvc::DeclareInterfaceID
DeclareInterfaceID(ILoggedMessageSvc, 1, 1)
Declare interface ID.
ILoggedMessageSvc::LoggedMessage::source
std::string source
Definition: ILoggedMessageSvc.h:29