LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ErrorObj.h"
Public Member Functions | |
virtual | ~ErrorObj () |
ErrorObj ()=delete | |
ErrorObj (ELseverityLevel const sev, std::string const &category, bool verbatim=false, std::string const &filename="", int lineNumber=0) | |
ErrorObj (ErrorObj const &) | |
int | serial () const |
ELextendedID const & | xid () const |
std::string const & | idOverflow () const |
timeval | timestamp () const |
std::list< std::string > const & | items () const |
bool | reactedTo () const |
std::string | fullText () const |
std::string const & | context () const |
std::string const & | iteration () const |
bool | is_verbatim () const |
std::string const & | filename () const |
int | lineNumber () const |
virtual void | setTimestamp (timeval const &) |
virtual void | setContext (std::string const &) |
virtual void | setIteration (std::string const &) |
virtual void | setSeverity (ELseverityLevel const) |
virtual void | setID (std::string const &) |
virtual void | setModule (std::string const &) |
virtual void | setSubroutine (std::string const &) |
virtual void | setHostName (std::string const &) |
virtual void | setHostAddr (std::string const &) |
virtual void | setApplication (std::string const &) |
virtual void | setPID (long) |
ErrorObj & | operator<< (std::ostream &(*f)(std::ostream &)) |
ErrorObj & | operator<< (std::ios_base &(*f)(std::ios_base &)) |
ErrorObj & | opltlt (char const *) |
template<class T > | |
ErrorObj & | opltlt (T const &) |
virtual ErrorObj & | eo_emit (std::string const &) |
virtual void | clear () |
virtual void | set (ELseverityLevel const, std::string const &id) |
virtual void | setReactedTo (bool) |
Private Attributes | |
int | serial_ {} |
ELextendedID | xid_ {} |
std::string | idOverflow_ {} |
timeval | timestamp_ {0, 0} |
std::list< std::string > | items_ {} |
bool | reactedTo_ {false} |
std::string | iteration_ {} |
std::ostringstream | oss_ {} |
bool | verbatim_ {false} |
std::string | filename_ {} |
int | lineNumber_ {} |
Definition at line 17 of file ErrorObj.h.
|
virtual |
Definition at line 20 of file ErrorObj.cc.
|
delete |
mf::ErrorObj::ErrorObj | ( | ELseverityLevel const | sev, |
std::string const & | category, | ||
bool | verbatim = false , |
||
std::string const & | filename = "" , |
||
int | lineNumber = 0 |
||
) |
Definition at line 22 of file ErrorObj.cc.
References filename(), filename_, idOverflow_, items_, iteration_, lineNumber(), lineNumber_, oss_, reactedTo_, timestamp_, verbatim_, and xid_.
mf::ErrorObj::ErrorObj | ( | ErrorObj const & | orig | ) |
Definition at line 42 of file ErrorObj.cc.
References filename_, idOverflow_, items_, lineNumber_, reactedTo_, serial_, timestamp_, verbatim_, and xid_.
|
virtual |
Definition at line 218 of file ErrorObj.cc.
References idOverflow_, items_, iteration_, oss_, reactedTo_, serial_, timestamp_, verbatim_, and xid_.
string const & mf::ErrorObj::context | ( | ) | const |
Definition at line 98 of file ErrorObj.cc.
References iteration_.
Referenced by mf::service::ELdestination::fillPrefix(), mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
virtual |
Definition at line 207 of file ErrorObj.cc.
References items_, and setSubroutine().
Referenced by opltlt().
string const & mf::ErrorObj::filename | ( | ) | const |
Definition at line 120 of file ErrorObj.cc.
References filename_.
Referenced by ErrorObj(), and mf::service::ELdestination::fillUsrMsg().
string mf::ErrorObj::fullText | ( | ) | const |
string const & mf::ErrorObj::idOverflow | ( | ) | const |
Definition at line 67 of file ErrorObj.cc.
References idOverflow_.
Referenced by mf::service::ELdestination::fillPrefix(), and mf::LogErrorObj().
bool mf::ErrorObj::is_verbatim | ( | ) | const |
Definition at line 91 of file ErrorObj.cc.
References verbatim_.
Referenced by mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), mf::service::ELdestination::fillUsrMsg(), and mf::LogErrorObj().
std::list< std::string > const & mf::ErrorObj::items | ( | ) | const |
Definition at line 79 of file ErrorObj.cc.
References items_.
Referenced by mf::service::ELdestination::fillUsrMsg().
string const & mf::ErrorObj::iteration | ( | ) | const |
int mf::ErrorObj::lineNumber | ( | ) | const |
Definition at line 126 of file ErrorObj.cc.
References lineNumber_.
Referenced by ErrorObj(), and mf::service::ELdestination::fillUsrMsg().
ErrorObj & mf::ErrorObj::operator<< | ( | std::ostream &(*)(std::ostream &) | f | ) |
ErrorObj & mf::ErrorObj::operator<< | ( | std::ios_base &(*)(std::ios_base &) | f | ) |
Definition at line 255 of file ErrorObj.cc.
ErrorObj & mf::ErrorObj::opltlt | ( | char const * | s | ) |
Definition at line 263 of file ErrorObj.cc.
References eo_emit(), and oss_.
Referenced by mf::operator<<().
ErrorObj & mf::ErrorObj::opltlt | ( | T const & | t | ) |
bool mf::ErrorObj::reactedTo | ( | ) | const |
Definition at line 85 of file ErrorObj.cc.
References reactedTo_.
int mf::ErrorObj::serial | ( | ) | const |
Definition at line 55 of file ErrorObj.cc.
References serial_.
Referenced by mf::service::ELdestination::fillPrefix().
|
virtual |
Definition at line 232 of file ErrorObj.cc.
References mf::ourSerial, serial_, setID(), setSeverity(), and timestamp_.
|
virtual |
Definition at line 195 of file ErrorObj.cc.
References mf::ELextendedID::setApplication(), and xid_.
|
virtual |
|
virtual |
Definition at line 189 of file ErrorObj.cc.
References mf::ELextendedID::setHostaddr(), and xid_.
|
virtual |
Definition at line 183 of file ErrorObj.cc.
References mf::ELextendedID::setHostname(), and xid_.
|
virtual |
Definition at line 141 of file ErrorObj.cc.
References idOverflow_, mf::ELextendedID::setID(), and xid_.
Referenced by set().
|
virtual |
|
virtual |
|
virtual |
Definition at line 201 of file ErrorObj.cc.
References mf::ELextendedID::setPID(), and xid_.
|
virtual |
Definition at line 177 of file ErrorObj.cc.
References r, and reactedTo_.
Referenced by mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
virtual |
Definition at line 132 of file ErrorObj.cc.
References mf::ELdebug, mf::ELhighestSeverity, mf::ELsevere, mf::ELzeroSeverity, mf::ELextendedID::setSeverity(), and xid_.
Referenced by set().
|
virtual |
Definition at line 170 of file ErrorObj.cc.
References mf::ELextendedID::setSubroutine(), and xid_.
Referenced by eo_emit().
|
virtual |
Definition at line 241 of file ErrorObj.cc.
References timestamp_.
timeval mf::ErrorObj::timestamp | ( | ) | const |
Definition at line 73 of file ErrorObj.cc.
References timestamp_.
Referenced by mfplugins::ELsyslog::fillPrefix(), and mf::service::ELdestination::fillPrefix().
ELextendedID const & mf::ErrorObj::xid | ( | ) | const |
Definition at line 61 of file ErrorObj.cc.
References xid_.
Referenced by mfplugins::ELsyslog::fillPrefix(), mf::service::ELdestination::fillPrefix(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), mf::LogErrorObj(), and mfplugins::ELsyslog::routePayload().
|
private |
Definition at line 89 of file ErrorObj.h.
Referenced by ErrorObj(), and filename().
|
private |
Definition at line 82 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), idOverflow(), and setID().
|
private |
Definition at line 84 of file ErrorObj.h.
Referenced by clear(), eo_emit(), ErrorObj(), fullText(), and items().
|
private |
Definition at line 86 of file ErrorObj.h.
Referenced by clear(), context(), ErrorObj(), iteration(), setContext(), and setIteration().
|
private |
Definition at line 90 of file ErrorObj.h.
Referenced by ErrorObj(), and lineNumber().
|
private |
Definition at line 87 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), operator<<(), and opltlt().
|
private |
Definition at line 85 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), reactedTo(), and setReactedTo().
|
private |
Definition at line 80 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), serial(), and set().
|
private |
Definition at line 83 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), set(), setTimestamp(), and timestamp().
|
private |
Definition at line 88 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), and is_verbatim().
|
private |
Definition at line 81 of file ErrorObj.h.
Referenced by clear(), ErrorObj(), setApplication(), setHostAddr(), setHostName(), setID(), setModule(), setPID(), setSeverity(), setSubroutine(), and xid().