LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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"
10 
11 namespace mf::service {
12 
13  class ELostreamOutput : public ELdestination {
14  public:
15  struct Config {
17  };
19 
21  ELostreamOutput(Parameters const& config,
22  cet::ostream_handle&&,
23  bool emitAtStart = false);
24  ELostreamOutput(Parameters const& config,
25  std::ostream&,
26  bool emitAtStart = false);
27  ELostreamOutput(Config const& config,
28  cet::ostream_handle&&,
29  bool emitAtStart = false);
30  ELostreamOutput(ELostreamOutput const&) = delete;
31  ELostreamOutput(ELostreamOutput&&) = delete;
32  ELostreamOutput& operator=(ELostreamOutput const&) = delete;
34 
35  private:
36  void routePayload(std::ostringstream const& oss,
37  ErrorObj const& msg) override;
38 
39  cet::ostream_handle osh;
41  };
42 
43 } // namespace mf::service
44 
45 #endif /* messagefacility_MessageService_ELostreamOutput_h */
46 
47 // Local variables:
48 // mode: c++
49 // End:
ELostreamOutput & operator=(ELostreamOutput const &)=delete
void routePayload(std::ostringstream const &oss, ErrorObj const &msg) override
fhicl::TableFragment< ELdestination::Config > elDestConfig
ELostreamOutput(Parameters const &config, cet::ostream_handle &&, bool emitAtStart=false)