15 #ifndef NOTIFYCATEGORY_H 16 #define NOTIFYCATEGORY_H 18 #include "dtoolbase.h" 20 #include "notifySeverity.h" 21 #include "configVariableEnum.h" 22 #include "configFlags.h" 23 #include "memoryBase.h" 42 INLINE
string get_fullname()
const;
43 INLINE
string get_basename()
const;
44 INLINE NotifySeverity get_severity()
const;
45 INLINE
void set_severity(NotifySeverity severity);
47 INLINE
bool is_on(NotifySeverity severity)
const;
55 #if defined(NOTIFY_DEBUG) || defined(CPPPARSER) 56 INLINE
bool is_spam()
const;
57 INLINE
bool is_debug()
const;
59 CONSTEXPR
static bool is_spam();
60 CONSTEXPR
static bool is_debug();
62 INLINE
bool is_info()
const;
63 INLINE
bool is_warning()
const;
64 INLINE
bool is_error()
const;
65 INLINE
bool is_fatal()
const;
67 ostream &out(NotifySeverity severity,
bool prefix =
true)
const;
68 INLINE ostream &spam(
bool prefix =
true)
const;
69 INLINE ostream &debug(
bool prefix =
true)
const;
70 INLINE ostream &info(
bool prefix =
true)
const;
71 INLINE ostream &warning(
bool prefix =
true)
const;
72 INLINE ostream &error(
bool prefix =
true)
const;
73 INLINE ostream &fatal(
bool prefix =
true)
const;
75 int get_num_children()
const;
78 static void set_server_delta(
long delta);
81 string get_config_name()
const;
82 void update_severity_cache();
83 static bool get_notify_timestamp();
84 static bool get_check_debug_notify_protect();
90 typedef vector<NotifyCategory *> Children;
93 static long _server_delta;
95 AtomicAdjust::Integer _local_modified;
96 NotifySeverity _severity_cache;
103 #include "notifyCategory.I" static ostream & out()
A convenient way to get the ostream that should be written to for a Notify-type message.
A particular category of error messages.
This class is the base class of both ConfigVariable and ConfigVariableCore.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
An object that handles general error reporting to the user.