Public Member Functions | Private Attributes | List of all members
mf::ELextendedID Class Reference

#include <ELextendedID.h>

Public Member Functions

 ~ELextendedID ()
 
 ELextendedID ()
 
 ELextendedID (std::string const &id, ELseverityLevel severity, std::string const &module, std::string const &subroutine, std::string const &hostname, std::string const &hostaddr, std::string const &application)
 
std::string const & id () const
 
ELseverityLevel severity () const
 
std::string const & module () const
 
std::string const & subroutine () const
 
std::string const & hostname () const
 
std::string const & hostaddr () const
 
std::string const & application () const
 
long pid () const
 
void setID (std::string const &id)
 
void setSeverity (ELseverityLevel severity)
 
void setModule (std::string const &module)
 
void setSubroutine (std::string const &subroutine)
 
void setHostname (std::string const &hostname)
 
void setHostaddr (std::string const &hostaddr)
 
void setApplication (std::string const &application)
 
void setPID (long pid)
 
bool operator< (ELextendedID const &xid) const
 
void clear ()
 

Private Attributes

std::string id_ {}
 
ELseverityLevel severity_ {}
 
std::string module_ {}
 
std::string subroutine_ {}
 
std::string hostname_ {}
 
std::string hostaddr_ {}
 
std::string application_ {}
 
long pid_ {0}
 

Detailed Description

Definition at line 11 of file ELextendedID.h.

Constructor & Destructor Documentation

mf::ELextendedID::~ELextendedID ( )

Definition at line 6 of file ELextendedID.cc.

6 {}
mf::ELextendedID::ELextendedID ( )

Definition at line 8 of file ELextendedID.cc.

8 {}
mf::ELextendedID::ELextendedID ( std::string const &  id,
ELseverityLevel  severity,
std::string const &  module,
std::string const &  subroutine,
std::string const &  hostname,
std::string const &  hostaddr,
std::string const &  application 
)

Definition at line 10 of file ELextendedID.cc.

17  : id_(id)
19  , module_(module)
24  {}
std::string module_
Definition: ELextendedID.h:48
ELseverityLevel severity() const
Definition: ELextendedID.cc:33
std::string hostname_
Definition: ELextendedID.h:50
std::string const & application() const
Definition: ELextendedID.cc:63
std::string const & module() const
Definition: ELextendedID.cc:39
std::string const & hostaddr() const
Definition: ELextendedID.cc:57
std::string subroutine_
Definition: ELextendedID.h:49
ELseverityLevel severity_
Definition: ELextendedID.h:47
std::string hostaddr_
Definition: ELextendedID.h:51
std::string application_
Definition: ELextendedID.h:52
std::string id_
Definition: ELextendedID.h:46
std::string const & subroutine() const
Definition: ELextendedID.cc:45
std::string const & hostname() const
Definition: ELextendedID.cc:51

Member Function Documentation

std::string const & mf::ELextendedID::application ( ) const

Definition at line 63 of file ELextendedID.cc.

64  {
65  return application_;
66  }
std::string application_
Definition: ELextendedID.h:52
void mf::ELextendedID::clear ( )

Definition at line 142 of file ELextendedID.cc.

143  {
144  *this = ELextendedID();
145  }
std::string const & mf::ELextendedID::hostaddr ( ) const

Definition at line 57 of file ELextendedID.cc.

58  {
59  return hostaddr_;
60  }
std::string hostaddr_
Definition: ELextendedID.h:51
std::string const & mf::ELextendedID::hostname ( ) const

Definition at line 51 of file ELextendedID.cc.

52  {
53  return hostname_;
54  }
std::string hostname_
Definition: ELextendedID.h:50
std::string const & mf::ELextendedID::id ( ) const

Definition at line 27 of file ELextendedID.cc.

28  {
29  return id_;
30  }
std::string id_
Definition: ELextendedID.h:46
std::string const & mf::ELextendedID::module ( ) const

Definition at line 39 of file ELextendedID.cc.

40  {
41  return module_;
42  }
std::string module_
Definition: ELextendedID.h:48
bool mf::ELextendedID::operator< ( ELextendedID const &  xid) const

Definition at line 123 of file ELextendedID.cc.

124  {
125  return (severity_ < xid.severity_) ?
126  true :
127  (severity_ > xid.severity_) ?
128  false :
129  (id_ < xid.id_) ?
130  true :
131  (id_ > xid.id_) ? false :
132  (module_ < xid.module_) ?
133  true :
134  (module_ > xid.module_) ?
135  false :
136  (subroutine_ < xid.subroutine_) ?
137  true :
138  (subroutine_ > xid.subroutine_) ? false : false;
139  }
std::string module_
Definition: ELextendedID.h:48
std::string subroutine_
Definition: ELextendedID.h:49
ELseverityLevel severity_
Definition: ELextendedID.h:47
std::string id_
Definition: ELextendedID.h:46
long mf::ELextendedID::pid ( ) const

Definition at line 69 of file ELextendedID.cc.

70  {
71  return pid_;
72  }
void mf::ELextendedID::setApplication ( std::string const &  application)

Definition at line 111 of file ELextendedID.cc.

112  {
114  }
std::string const & application() const
Definition: ELextendedID.cc:63
std::string application_
Definition: ELextendedID.h:52
void mf::ELextendedID::setHostaddr ( std::string const &  hostaddr)

Definition at line 105 of file ELextendedID.cc.

106  {
108  }
std::string const & hostaddr() const
Definition: ELextendedID.cc:57
std::string hostaddr_
Definition: ELextendedID.h:51
void mf::ELextendedID::setHostname ( std::string const &  hostname)

Definition at line 99 of file ELextendedID.cc.

100  {
102  }
std::string hostname_
Definition: ELextendedID.h:50
std::string const & hostname() const
Definition: ELextendedID.cc:51
void mf::ELextendedID::setID ( std::string const &  id)

Definition at line 75 of file ELextendedID.cc.

76  {
77  id_ = id;
78  }
std::string const & id() const
Definition: ELextendedID.cc:27
std::string id_
Definition: ELextendedID.h:46
void mf::ELextendedID::setModule ( std::string const &  module)

Definition at line 87 of file ELextendedID.cc.

88  {
89  module_ = module;
90  }
std::string module_
Definition: ELextendedID.h:48
std::string const & module() const
Definition: ELextendedID.cc:39
void mf::ELextendedID::setPID ( long  pid)

Definition at line 117 of file ELextendedID.cc.

118  {
119  pid_ = pid;
120  }
long pid() const
Definition: ELextendedID.cc:69
void mf::ELextendedID::setSeverity ( ELseverityLevel  severity)

Definition at line 81 of file ELextendedID.cc.

82  {
84  }
ELseverityLevel severity() const
Definition: ELextendedID.cc:33
ELseverityLevel severity_
Definition: ELextendedID.h:47
void mf::ELextendedID::setSubroutine ( std::string const &  subroutine)

Definition at line 93 of file ELextendedID.cc.

94  {
96  }
std::string subroutine_
Definition: ELextendedID.h:49
std::string const & subroutine() const
Definition: ELextendedID.cc:45
ELseverityLevel mf::ELextendedID::severity ( ) const

Definition at line 33 of file ELextendedID.cc.

34  {
35  return severity_;
36  }
ELseverityLevel severity_
Definition: ELextendedID.h:47
std::string const & mf::ELextendedID::subroutine ( ) const

Definition at line 45 of file ELextendedID.cc.

46  {
47  return subroutine_;
48  }
std::string subroutine_
Definition: ELextendedID.h:49

Member Data Documentation

std::string mf::ELextendedID::application_ {}
private

Definition at line 52 of file ELextendedID.h.

std::string mf::ELextendedID::hostaddr_ {}
private

Definition at line 51 of file ELextendedID.h.

std::string mf::ELextendedID::hostname_ {}
private

Definition at line 50 of file ELextendedID.h.

std::string mf::ELextendedID::id_ {}
private

Definition at line 46 of file ELextendedID.h.

std::string mf::ELextendedID::module_ {}
private

Definition at line 48 of file ELextendedID.h.

long mf::ELextendedID::pid_ {0}
private

Definition at line 53 of file ELextendedID.h.

ELseverityLevel mf::ELextendedID::severity_ {}
private

Definition at line 47 of file ELextendedID.h.

std::string mf::ELextendedID::subroutine_ {}
private

Definition at line 49 of file ELextendedID.h.


The documentation for this class was generated from the following files: