LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ELstatistics.h
Go to the documentation of this file.
1 #ifndef messagefacility_MessageService_ELstatistics_h
2 #define messagefacility_MessageService_ELstatistics_h
3 // vim: set sw=2 expandtab :
4 
5 #include "cetlib/ostream_handle.h"
6 #include "fhiclcpp/types/Atom.h"
11 
12 #include <memory>
13 #include <set>
14 
15 namespace fhicl {
16 
17  class ParameterSet;
18 
19 } // namespace fhicl
20 
21 namespace mf {
22 
23  class ErrorObj;
24 
25 } // namespace mf
26 
27 namespace mf {
28  namespace service {
29 
30  class ELstatistics : public ELdestination {
31 
32  public:
33  struct Config {
35  };
36 
38 
39  public:
40  ~ELstatistics();
41  ELstatistics(Parameters const&, std::ostream&);
42  ELstatistics(Config const&, cet::ostream_handle&&);
43  ELstatistics(ELstatistics const&) = delete;
44  ELstatistics(ELstatistics&&) = delete;
45  ELstatistics& operator=(ELstatistics const&) = delete;
46  ELstatistics& operator=(ELstatistics&&) = delete;
47 
48  public:
49  void log(mf::ErrorObj&) override;
50 
51  private:
52  // Called only by MessageLoggerScribe::summarize()
53  // Called only by MessageLogger::LogStatistics()
54  void summary() override;
55 
56  private:
57  cet::ostream_handle osh_;
58  };
59 
60  } // namespace service
61 } // namespace mf
62 
63 #endif /* messagefacility_MessageService_ELstatistics_h */
64 
65 // Local variables:
66 // mode: c++
67 // End:
parameter set interface
cet::ostream_handle osh_
Definition: ELstatistics.h:57
fhicl::TableFragment< ELdestination::Config > elDestConfig
Definition: ELstatistics.h:34