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:
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
std::string hostname_
Definition: ELextendedID.h:48
std::string const & id() const
void setSeverity(ELseverityLevel severity)
void setHostaddr(std::string const &hostaddr)
std::string const & hostname() const
void setHostname(std::string const &hostname)
void setSubroutine(std::string const &subroutine)
std::string subroutine_
Definition: ELextendedID.h:47
bool operator<(ELextendedID const &xid) const
ELseverityLevel severity_
Definition: ELextendedID.h:45
std::string const & application() const
void setID(std::string const &id)
void setPID(long pid)
std::string const & subroutine() const
std::string const & hostaddr() const
void setApplication(std::string const &application)
std::string hostaddr_
Definition: ELextendedID.h:49
std::string const & module() const
void setModule(std::string const &module)
std::string application_
Definition: ELextendedID.h:50
std::string id_
Definition: ELextendedID.h:44
long pid() const
enum BeamMode string