49 #ifndef IOSTREAM_INCLUDED 62 bool eq_nocase(std::string_view
a, std::string_view
b) {
64 a.begin(),
a.end(),
b.begin(),
b.end(), [](
char x,
char y) {
return std::toupper(
x) == std::toupper(
y); });
84 #ifdef ErrorObjCONSTRUCTOR_TRACE 85 std::cerr <<
"Constructor for ErrorObj\n";
94 : mySerial(orig.mySerial),
96 myIdOverflow(orig.myIdOverflow),
97 myTimestamp(orig.myTimestamp),
98 myItems(orig.myItems),
99 myReactedTo(orig.myReactedTo),
102 verbatim(orig.verbatim) {
103 #ifdef ErrorObjCONSTRUCTOR_TRACE 104 std::cerr <<
"Copy Constructor for ErrorObj\n";
110 #ifdef ErrorObjCONSTRUCTOR_TRACE 111 std::cerr <<
"Destructor for ErrorObj\n";
180 #ifdef ErrorObj_SUB_TRACE 181 std::cerr <<
"=:=:=: ErrorObj::setSubroutine(" << subroutine <<
")\n";
183 myXid.
subroutine = (subroutine[0] ==
' ') ? subroutine.substr(1) : subroutine;
188 #ifdef ErrorObj_SUB_TRACE 193 #ifdef ErrorObj_EMIT_TRACE 194 std::cerr <<
"=:=:=: ErrorObj::emitToken( " <<
s <<
" )\n";
197 #ifdef ErrorObj_SUB_TRACE 199 std::cerr <<
"=:=:=: subN ErrorObj::emitToken( " <<
s <<
" )\n";
204 if (eq_nocase(
s.substr(0, 5),
"@SUB=")) {
205 #ifdef ErrorObj_SUB_TRACE 206 std::cerr <<
"=:=:=: ErrorObj::@SUB s.substr(5) is: " <<
s.substr(5) <<
'\n';
244 #ifdef OLD_STYLE_AUTOMATIC_SPACES 245 if (!
myOs.str().empty()) {
253 if (!
myOs.str().empty())
messagelogger::ELseverityLevel severity
virtual ErrorObj & emitToken(std::string_view txt)
std::string fullText() const
void swap(ErrorObj &other)
const ELlist_string & items() const
virtual void setSeverity(const messagelogger::ELseverityLevel &sev)
std::list< std::string > ELlist_string
constexpr const ELseverityLevel ELhighestSeverity
const std::string & context() const
bool equal(const T &first, const T &second)
constexpr const ELseverityLevel ELsevere
virtual void setReactedTo(bool r)
ErrorObj & opltlt(const T &t)
virtual void set(const messagelogger::ELseverityLevel &sev, std::string_view id)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual void setSubroutine(std::string_view subroutine)
ErrorObj(const messagelogger::ELseverityLevel &sev, std::string_view id, bool verbatim=false)
ErrorObj & operator<<(std::ostream &(*f)(std::ostream &))
const unsigned int maxIDlength(200)
virtual void setModule(std::string_view module)
const ELextendedID & xid() const
const std::string & idOverflow() const
static std::atomic< int > ourSerial(0)
ErrorObj & operator=(const ErrorObj &other)
constexpr const ELseverityLevel ELzeroSeverity
virtual void setContext(std::string_view context)
static std::string const emptyString("")
virtual void setID(std::string_view ID)
constexpr const ELseverityLevel ELdebug