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 INLINE
bool is_spam()
const;
55 INLINE
bool is_debug()
const;
56 INLINE
bool is_info()
const;
57 INLINE
bool is_warning()
const;
58 INLINE
bool is_error()
const;
59 INLINE
bool is_fatal()
const;
61 std::ostream &out(NotifySeverity severity,
bool prefix =
true)
const;
62 INLINE std::ostream &spam(
bool prefix =
true)
const;
63 INLINE std::ostream &debug(
bool prefix =
true)
const;
64 INLINE std::ostream &info(
bool prefix =
true)
const;
65 INLINE std::ostream &warning(
bool prefix =
true)
const;
66 INLINE std::ostream &error(
bool prefix =
true)
const;
67 INLINE std::ostream &fatal(
bool prefix =
true)
const;
69 size_t get_num_children()
const;
71 MAKE_SEQ(get_children, get_num_children, get_child);
72 MAKE_SEQ_PROPERTY(children, get_num_children, get_child);
74 static void set_server_delta(
long delta);
77 std::string get_config_name()
const;
78 void update_severity_cache();
79 static bool get_notify_timestamp();
80 static bool get_check_debug_notify_protect();
82 std::string _fullname;
83 std::string _basename;
86 typedef std::vector<NotifyCategory *> Children;
89 static long _server_delta;
91 AtomicAdjust::Integer _local_modified;
92 NotifySeverity _severity_cache;
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...
A particular category of error messages.
An object that handles general error reporting to the user.
static std::ostream & out()
A convenient way to get the ostream that should be written to for a Notify- type message.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.