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";
163 using namespace edm::messagelogger;
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
const edm::EventSetup & c
virtual ErrorObj & emitToken(std::string_view txt)
void swap(ErrorObj &other)
const std::string & context() const
virtual void setSeverity(const messagelogger::ELseverityLevel &sev)
const std::string & idOverflow() const
std::list< std::string > ELlist_string
constexpr const ELseverityLevel ELhighestSeverity
bool equal(const T &first, const T &second)
constexpr const ELseverityLevel ELsevere
virtual void setReactedTo(bool r)
const ELextendedID & xid() const
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)
uint16_t const *__restrict__ x
ErrorObj & operator<<(std::ostream &(*f)(std::ostream &))
const unsigned int maxIDlength(200)
virtual void setModule(std::string_view module)
static std::atomic< int > ourSerial(0)
const ELlist_string & items() const
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)
std::string fullText() const
constexpr const ELseverityLevel ELdebug