LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ELostreamOutput.h
Go to the documentation of this file.
1 #ifndef messagefacility_MessageService_ELostreamOutput_h
2 #define messagefacility_MessageService_ELostreamOutput_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 <string>
14 
15 namespace mf {
16 
17  class ErrorObj;
18 
19 } // namespace mf
20 
21 namespace mf {
22  namespace service {
23 
24  class ELostreamOutput : public ELdestination {
25 
26  public:
27  struct Config {
29  };
30 
32 
33  public:
35  ELostreamOutput(Parameters const& config,
36  cet::ostream_handle&&,
37  bool emitAtStart = false);
38  ELostreamOutput(Parameters const& config,
39  std::ostream&,
40  bool emitAtStart = false);
41  ELostreamOutput(Config const& config,
42  cet::ostream_handle&&,
43  bool emitAtStart = false);
44  ELostreamOutput(ELostreamOutput const&) = delete;
45  ELostreamOutput(ELostreamOutput&&) = delete;
46  ELostreamOutput& operator=(ELostreamOutput const&) = delete;
48 
49  private:
50  void routePayload(std::ostringstream const& oss,
51  mf::ErrorObj const& msg) override;
52 
53  private:
54  cet::ostream_handle osh;
56  };
57 
58  } // namespace service
59 } // namespace mf
60 
61 #endif /* messagefacility_MessageService_ELostreamOutput_h */
62 
63 // Local variables:
64 // mode: c++
65 // End:
ELostreamOutput & operator=(ELostreamOutput const &)=delete
void routePayload(std::ostringstream const &oss, mf::ErrorObj const &msg) override
fhicl::TableFragment< ELdestination::Config > elDestConfig
ELostreamOutput(Parameters const &config, cet::ostream_handle &&, bool emitAtStart=false)