14 #ifndef NOTIFYCATEGORY_H 15 #define NOTIFYCATEGORY_H 34 NotifyCategory(
const std::string &fullname,
const std::string &basename,
38 INLINE std::string get_fullname()
const;
39 INLINE std::string get_basename()
const;
40 INLINE NotifySeverity get_severity()
const;
41 INLINE
void set_severity(NotifySeverity severity);
42 MAKE_PROPERTY(fullname, get_fullname);
43 MAKE_PROPERTY(basename, get_basename);
44 MAKE_PROPERTY(severity, get_severity, set_severity);
46 INLINE
bool is_on(NotifySeverity severity)
const;
54 #if defined(NOTIFY_DEBUG) || defined(CPPPARSER) 55 INLINE
bool is_spam()
const;
56 INLINE
bool is_debug()
const;
58 constexpr
static bool is_spam() {
return false; }
59 constexpr
static bool is_debug() {
return false; }
61 INLINE
bool is_info()
const;
62 INLINE
bool is_warning()
const;
63 INLINE
bool is_error()
const;
64 INLINE
bool is_fatal()
const;
66 std::ostream &out(NotifySeverity severity,
bool prefix =
true)
const;
67 INLINE std::ostream &spam(
bool prefix =
true)
const;
68 INLINE std::ostream &debug(
bool prefix =
true)
const;
69 INLINE std::ostream &info(
bool prefix =
true)
const;
70 INLINE std::ostream &warning(
bool prefix =
true)
const;
71 INLINE std::ostream &error(
bool prefix =
true)
const;
72 INLINE std::ostream &fatal(
bool prefix =
true)
const;
74 size_t get_num_children()
const;
76 MAKE_SEQ(get_children, get_num_children, get_child);
77 MAKE_SEQ_PROPERTY(children, get_num_children, get_child);
79 static void set_server_delta(
long delta);
82 std::string get_config_name()
const;
83 void update_severity_cache();
84 static bool get_notify_timestamp();
85 static bool get_check_debug_notify_protect();
87 std::string _fullname;
88 std::string _basename;
91 typedef std::vector<NotifyCategory *> Children;
94 static long _server_delta;
96 AtomicAdjust::Integer _local_modified;
97 NotifySeverity _severity_cache;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static std::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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An object that handles general error reporting to the user.