LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
MessageFacilityMsg.h
Go to the documentation of this file.
1 #ifndef messagefacility_Utilities_MessageFacilityMsg_h
2 #define messagefacility_Utilities_MessageFacilityMsg_h
3 // vim: set sw=2 expandtab :
4 
5 #include <memory>
6 #include <string>
7 #include <sys/time.h>
8 
9 namespace mf {
10 
11  class ErrorObj;
12 
14 
15  public:
17  MessageFacilityMsg(ErrorObj const& errorobj);
19 
20  public:
21  bool empty() const;
22  ErrorObj ErrorObject() const;
23  timeval timestamp() const;
24  std::string timestr() const;
25  std::string severity() const;
26  std::string category() const;
27  std::string hostname() const;
28  std::string hostaddr() const;
29  long pid() const;
30  std::string application() const;
31  std::string module() const;
32  std::string context() const;
33  std::string iteration() const;
34  std::string file() const;
35  long line() const;
36  std::string message() const;
37 
38  void setTimestamp(timeval const&);
39  void setSeverity(std::string const&);
40  void setCategory(std::string const&);
41  void setHostname(std::string const&);
42  void setHostaddr(std::string const&);
43  void setPid(long);
44  void setApplication(std::string const&);
45  void setModule(std::string const&);
46  void setContext(std::string const&);
47  void setIteration(std::string const&);
48  void setMessage(std::string const& file,
49  std::string const& line,
50  std::string const& message);
51 
52  private:
53  std::unique_ptr<ErrorObj> msg_;
54  bool empty_;
55  };
56 
57 } // namespace mf
58 
59 #endif /* messagefacility_Utilities_MessageFacilityMsg_h */
60 
61 // Local Variables:
62 // mode: c++
63 // End:
void setApplication(std::string const &)
std::string iteration() const
std::string category() const
void setMessage(std::string const &file, std::string const &line, std::string const &message)
std::string message() const
ErrorObj ErrorObject() const
void setHostaddr(std::string const &)
void setContext(std::string const &)
void setSeverity(std::string const &)
void setCategory(std::string const &)
void setTimestamp(timeval const &)
std::string context() const
std::string application() const
std::string module() const
void setHostname(std::string const &)
void setModule(std::string const &)
std::string file() const
std::string hostaddr() const
std::string severity() const
void setIteration(std::string const &)
std::string timestr() const
std::unique_ptr< ErrorObj > msg_
std::string hostname() const