|
|
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";
178 #ifdef ErrorObj_SUB_TRACE
179 std::cerr <<
"=:=:=: ErrorObj::setSubroutine(" << subroutine <<
")\n";
181 myXid.
subroutine = (subroutine[0] ==
' ') ? subroutine.substr(1) : subroutine;
186 #ifdef ErrorObj_SUB_TRACE
191 #ifdef ErrorObj_EMIT_TRACE
192 std::cerr <<
"=:=:=: ErrorObj::emitToken( " <<
s <<
" )\n";
195 #ifdef ErrorObj_SUB_TRACE
197 std::cerr <<
"=:=:=: subN ErrorObj::emitToken( " <<
s <<
" )\n";
202 if (eq_nocase(
s.substr(0, 5),
"@SUB=")) {
203 #ifdef ErrorObj_SUB_TRACE
204 std::cerr <<
"=:=:=: ErrorObj::@SUB s.substr(5) is: " <<
s.substr(5) <<
'\n';
242 #ifdef OLD_STYLE_AUTOMATIC_SPACES
243 if (!
myOs.str().empty()) {
251 if (!
myOs.str().empty())
virtual void setReactedTo(bool r)
virtual void set(const ELseverityLevel &sev, std::string_view id)
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
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
std::string fullText() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
virtual void setSeverity(const ELseverityLevel &sev)
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)
ErrorObj(const ELseverityLevel &sev, std::string_view id, bool verbatim=false)
const ELlist_string & items() const
constexpr const ELseverityLevel ELdebug
ErrorObj & operator=(const ErrorObj &other)
virtual void setContext(std::string_view context)
void swap(ErrorObj &other)
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