21 INLINE
string NotifyCategory::
22 get_fullname()
const {
31 INLINE
string NotifyCategory::
32 get_basename()
const {
41 NotifySeverity NotifyCategory::
42 get_severity()
const {
43 TAU_PROFILE(
"NotifyCategory NotifyCategory::get_severity() const",
" ", TAU_USER);
44 if (!is_cache_valid(_local_modified)) {
47 return _severity_cache;
59 #if defined(NOTIFY_DEBUG) 63 _severity = max(severity, NS_info);
75 is_on(NotifySeverity severity)
const {
76 TAU_PROFILE(
"bool NotifyCategory::is_on(NotifySeverity) const",
" ", TAU_USER);
77 return (
int)severity >= (int)get_severity();
80 #if defined(NOTIFY_DEBUG) || defined(CPPPARSER) 88 return is_on(NS_spam);
98 return is_on(NS_debug);
135 return is_on(NS_info);
145 return is_on(NS_warning);
155 return is_on(NS_error);
165 return is_on(NS_fatal);
175 #if defined(NOTIFY_DEBUG) 176 return out(NS_spam, prefix);
189 #if defined(NOTIFY_DEBUG) 190 return out(NS_debug, prefix);
203 return out(NS_info, prefix);
213 return out(NS_warning, prefix);
223 return out(NS_error, prefix);
233 return out(NS_fatal, prefix);
238 return out << cat.get_fullname();
bool is_error() const
A shorthand way to write is_on(NS_error).
ostream & warning(bool prefix=true) const
A shorthand way to write out(NS_warning).
static CONSTEXPR bool is_debug()
When NOTIFY_DEBUG is not defined, the categories are never set to "spam" or "debug" severities...
void set_severity(NotifySeverity severity)
Sets the severity level of messages that will be reported from this Category.
ostream & debug(bool prefix=true) const
A shorthand way to write out(NS_debug).
A particular category of error messages.
bool is_warning() const
A shorthand way to write is_on(NS_warning).
ostream & info(bool prefix=true) const
A shorthand way to write out(NS_info).
static ostream & null()
A convenient way to get an ostream that doesn't do anything.
ostream & error(bool prefix=true) const
A shorthand way to write out(NS_error).
ostream & spam(bool prefix=true) const
A shorthand way to write out(NS_spam).
bool is_info() const
A shorthand way to write is_on(NS_info).
ostream & fatal(bool prefix=true) const
A shorthand way to write out(NS_fatal).
bool is_on(NotifySeverity severity) const
Returns true if messages of the indicated severity level ought to be reported for this Category...
bool is_fatal() const
A shorthand way to write is_on(NS_fatal).
ostream & out(NotifySeverity severity, bool prefix=true) const
Begins a new message to this Category at the indicated severity level.
static CONSTEXPR bool is_spam()
When NOTIFY_DEBUG is not defined, the categories are never set to "spam" or "debug" severities...