LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 #include <string>
8 
9 namespace mf {
10 
11  class ELextendedID {
12 
13  public:
14  ~ELextendedID();
15  ELextendedID();
16  ELextendedID(std::string const& id,
18  std::string const& module,
19  std::string const& subroutine,
20  std::string const& hostname,
21  std::string const& hostaddr,
22  std::string const& application);
23 
24  std::string const& id() const;
25  ELseverityLevel severity() const;
26  std::string const& module() const;
27  std::string const& subroutine() const;
28  std::string const& hostname() const;
29  std::string const& hostaddr() const;
30  std::string const& application() const;
31  long pid() const;
32 
33  void setID(std::string const& id);
34  void setSeverity(ELseverityLevel severity);
35  void setModule(std::string const& module);
36  void setSubroutine(std::string const& subroutine);
37  void setHostname(std::string const& hostname);
38  void setHostaddr(std::string const& hostaddr);
39  void setApplication(std::string const& application);
40  void setPID(long pid);
41 
42  bool operator<(ELextendedID const& xid) const;
43  void clear();
44 
45  private:
46  std::string id_{};
48  std::string module_{};
49  std::string subroutine_{};
50  std::string hostname_{};
51  std::string hostaddr_{};
52  std::string application_{};
53  long pid_{0};
54  };
55 
56 } // namespace mf
57 
58 #endif /* messagefacility_Utilities_ELextendedID_h */
59 
60 // Local variables:
61 // mode: c++
62 // End:
std::string module_
Definition: ELextendedID.h:48
ELseverityLevel severity() const
Definition: ELextendedID.cc:33
std::string hostname_
Definition: ELextendedID.h:50
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:49
bool operator<(ELextendedID const &xid) const
std::string const & id() const
Definition: ELextendedID.cc:27
ELseverityLevel severity_
Definition: ELextendedID.h:47
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:51
void setModule(std::string const &module)
Definition: ELextendedID.cc:87
std::string application_
Definition: ELextendedID.h:52
std::string id_
Definition: ELextendedID.h:46
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