LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ELextendedID.h
Go to the documentation of this file.
1 #ifndef messagefacility_Utilities_ELextendedID_h
2 #define messagefacility_Utilities_ELextendedID_h
3 // vim: set sw=2 expandtab :
4 
6 
7 namespace mf {
8 
9  class ELextendedID {
10 
11  public:
12  ~ELextendedID();
13  ELextendedID();
14  ELextendedID(std::string const& id,
16  std::string const& module,
17  std::string const& subroutine,
18  std::string const& hostname,
19  std::string const& hostaddr,
20  std::string const& application);
21 
22  std::string const& id() const;
23  ELseverityLevel severity() const;
24  std::string const& module() const;
25  std::string const& subroutine() const;
26  std::string const& hostname() const;
27  std::string const& hostaddr() const;
28  std::string const& application() const;
29  long pid() const;
30 
31  void setID(std::string const& id);
32  void setSeverity(ELseverityLevel severity);
33  void setModule(std::string const& module);
34  void setSubroutine(std::string const& subroutine);
35  void setHostname(std::string const& hostname);
36  void setHostaddr(std::string const& hostaddr);
37  void setApplication(std::string const& application);
38  void setPID(long pid);
39 
40  bool operator<(ELextendedID const& xid) const;
41  void clear();
42 
43  private:
44  std::string id_{};
46  std::string module_{};
47  std::string subroutine_{};
48  std::string hostname_{};
49  std::string hostaddr_{};
50  std::string application_{};
51  long pid_{0};
52  };
53 
54 } // namespace mf
55 
56 #endif /* messagefacility_Utilities_ELextendedID_h */
57 
58 // Local variables:
59 // mode: c++
60 // End:
std::string module_
Definition: ELextendedID.h:46
ELseverityLevel severity() const
Definition: ELextendedID.cc:33
std::string hostname_
Definition: ELextendedID.h:48
void setSeverity(ELseverityLevel severity)
Definition: ELextendedID.cc:81
std::string const & application() const
Definition: ELextendedID.cc:63
void setHostaddr(std::string const &hostaddr)
std::string const & module() const
Definition: ELextendedID.cc:39
void setHostname(std::string const &hostname)
Definition: ELextendedID.cc:99
void setSubroutine(std::string const &subroutine)
Definition: ELextendedID.cc:93
std::string const & hostaddr() const
Definition: ELextendedID.cc:57
std::string subroutine_
Definition: ELextendedID.h:47
bool operator<(ELextendedID const &xid) const
std::string const & id() const
Definition: ELextendedID.cc:27
ELseverityLevel severity_
Definition: ELextendedID.h:45
void setID(std::string const &id)
Definition: ELextendedID.cc:75
void setPID(long pid)
void setApplication(std::string const &application)
std::string hostaddr_
Definition: ELextendedID.h:49
void setModule(std::string const &module)
Definition: ELextendedID.cc:87
std::string application_
Definition: ELextendedID.h:50
std::string id_
Definition: ELextendedID.h:44
std::string const & subroutine() const
Definition: ELextendedID.cc:45
long pid() const
Definition: ELextendedID.cc:69
std::string const & hostname() const
Definition: ELextendedID.cc:51