LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 9 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.

Referenced by clear().

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:46
ELseverityLevel severity() const
Definition: ELextendedID.cc:33
std::string hostname_
Definition: ELextendedID.h:48
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:47
ELseverityLevel severity_
Definition: ELextendedID.h:45
std::string hostaddr_
Definition: ELextendedID.h:49
std::string application_
Definition: ELextendedID.h:50
std::string id_
Definition: ELextendedID.h:44
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.

References application_.

Referenced by setApplication().

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

Definition at line 142 of file ELextendedID.cc.

References ELextendedID().

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

Definition at line 57 of file ELextendedID.cc.

References hostaddr_.

Referenced by setHostaddr().

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

Definition at line 51 of file ELextendedID.cc.

References hostname_.

Referenced by setHostname().

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

Definition at line 27 of file ELextendedID.cc.

References id_.

Referenced by mf::LogErrorObj(), setID(), and mf::service::ELdestination::skipMsg().

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

Definition at line 39 of file ELextendedID.cc.

References module_.

Referenced by setModule().

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

Definition at line 123 of file ELextendedID.cc.

References id_, module_, severity_, and subroutine_.

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:46
std::string subroutine_
Definition: ELextendedID.h:47
ELseverityLevel severity_
Definition: ELextendedID.h:45
std::string id_
Definition: ELextendedID.h:44
long mf::ELextendedID::pid ( ) const

Definition at line 69 of file ELextendedID.cc.

References pid_.

Referenced by setPID().

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

Definition at line 111 of file ELextendedID.cc.

References application(), and application_.

Referenced by mf::ErrorObj::setApplication().

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

Definition at line 105 of file ELextendedID.cc.

References hostaddr(), and hostaddr_.

Referenced by mf::ErrorObj::setHostAddr().

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

Definition at line 99 of file ELextendedID.cc.

References hostname(), and hostname_.

Referenced by mf::ErrorObj::setHostName().

100  {
102  }
std::string hostname_
Definition: ELextendedID.h:48
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.

References id(), and id_.

Referenced by mf::ErrorObj::setID().

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

Definition at line 87 of file ELextendedID.cc.

References module(), and module_.

Referenced by mf::ErrorObj::setModule().

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

Definition at line 117 of file ELextendedID.cc.

References pid(), and pid_.

Referenced by mf::ErrorObj::setPID().

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.

References severity(), and severity_.

Referenced by mf::ErrorObj::setSeverity().

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

Definition at line 93 of file ELextendedID.cc.

References subroutine(), and subroutine_.

Referenced by mf::ErrorObj::setSubroutine().

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

Definition at line 45 of file ELextendedID.cc.

References subroutine_.

Referenced by setSubroutine().

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

Member Data Documentation

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

Definition at line 50 of file ELextendedID.h.

Referenced by application(), and setApplication().

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

Definition at line 49 of file ELextendedID.h.

Referenced by hostaddr(), and setHostaddr().

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

Definition at line 48 of file ELextendedID.h.

Referenced by hostname(), and setHostname().

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

Definition at line 44 of file ELextendedID.h.

Referenced by id(), operator<(), and setID().

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

Definition at line 46 of file ELextendedID.h.

Referenced by module(), operator<(), and setModule().

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

Definition at line 51 of file ELextendedID.h.

Referenced by pid(), and setPID().

ELseverityLevel mf::ELextendedID::severity_ {}
private

Definition at line 45 of file ELextendedID.h.

Referenced by operator<(), setSeverity(), and severity().

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

Definition at line 47 of file ELextendedID.h.

Referenced by operator<(), setSubroutine(), and subroutine().


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