|
|
Go to the documentation of this file.
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())
virtual void setReactedTo(bool r)
const std::string & context() const
virtual ErrorObj & emitToken(std::string_view txt)
constexpr const ELseverityLevel ELhighestSeverity
static std::atomic< int > ourSerial(0)
static const std::string emptyString("")
std::list< std::string > ELlist_string
virtual void setSeverity(const messagelogger::ELseverityLevel &sev)
std::string fullText() const
messagelogger::ELseverityLevel severity
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual void setID(std::string_view ID)
const ELextendedID & xid() const
const std::string & idOverflow() const
constexpr const ELseverityLevel ELsevere
const unsigned int maxIDlength(200)
const ELlist_string & items() const
constexpr const ELseverityLevel ELdebug
ErrorObj & operator=(const ErrorObj &other)
virtual void setContext(std::string_view context)
ErrorObj(const messagelogger::ELseverityLevel &sev, std::string_view id, bool verbatim=false)
void swap(ErrorObj &other)
virtual void set(const messagelogger::ELseverityLevel &sev, std::string_view id)
virtual void setModule(std::string_view module)
ErrorObj & opltlt(const T &t)
virtual void setSubroutine(std::string_view subroutine)
bool equal(const T &first, const T &second)
constexpr const ELseverityLevel ELzeroSeverity
ErrorObj & operator<<(std::ostream &(*f)(std::ostream &))