ATLAS Offline Software
MessagePrinterErrorCollect.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 
9 #ifndef ASG_MESSAGING__MESSAGE_PRINTER_ERROR_COLLECT_H
10 #define ASG_MESSAGING__MESSAGE_PRINTER_ERROR_COLLECT_H
11 
12 #ifdef XAOD_STANDALONE
13 
15 #include <vector>
16 
17 namespace asg
18 {
25 
26  class MessagePrinterErrorCollect final : public IMessagePrinter
27  {
33  public:
34  virtual void
35  print (MSG::Level reglvl, const std::string& name,
36  const std::string& text) override;
37 
38 
42  public:
43  bool empty () const noexcept;
44 
45 
52  public:
53  bool matchesRegex (const std::string& pattern) const;
54 
55 
61  public:
62  std::string asString (const std::string& prefix) const;
63 
64 
66  private:
67  std::vector<std::string> m_errorMessages;
68  };
69 }
70 
71 #endif
72 
73 #endif
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
asg
Definition: DataHandleTestTool.h:28
EL::Detail::ManagerStep::final
@ final
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
asg::detail::matchesRegex
bool matchesRegex(const std::string &regex, const std::string &str)
return whether str matches regex
Definition: Control/AthToolSupport/AsgTesting/Root/UnitTest.cxx:25
vector
Definition: MultiHisto.h:13
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IMessagePrinter.h
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11