14#ifndef NOTIFYCATEGORY_H
15#define NOTIFYCATEGORY_H
34 NotifyCategory(
const std::string &fullname,
const std::string &basename,
35 NotifyCategory *parent);
38 INLINE std::string get_fullname()
const;
39 INLINE std::string get_basename()
const;
40 INLINE NotifySeverity get_severity()
const;
42 MAKE_PROPERTY(fullname, get_fullname);
43 MAKE_PROPERTY(basename, get_basename);
46 INLINE
bool is_on(NotifySeverity severity)
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;
70 NotifyCategory *
get_child(
size_t i)
const;
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;
84 NotifyCategory *_parent;
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 specializes ConfigVariable as an enumerated type.
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.
set_severity
Sets the severity level of messages that will be reported from this Category.
std::ostream & fatal(bool prefix=true) const
A shorthand way to write out(NS_fatal).
bool is_error() const
A shorthand way to write is_on(NS_error).
bool is_on(NotifySeverity severity) const
Returns true if messages of the indicated severity level ought to be reported for this Category.
bool is_spam() const
A shorthand way to write is_on(NS_spam).
std::ostream & debug(bool prefix=true) const
A shorthand way to write out(NS_debug).
get_child
Returns the nth child Category of this particular Category.
std::ostream & info(bool prefix=true) const
A shorthand way to write out(NS_info).
std::ostream & out(NotifySeverity severity, bool prefix=true) const
Begins a new message to this Category at the indicated severity level.
std::ostream & spam(bool prefix=true) const
A shorthand way to write out(NS_spam).
std::ostream & warning(bool prefix=true) const
A shorthand way to write out(NS_warning).
bool is_debug() const
A shorthand way to write is_on(NS_debug).
get_num_children
Returns the number of child Categories of this particular Category.
bool is_info() const
A shorthand way to write is_on(NS_info).
std::ostream & error(bool prefix=true) const
A shorthand way to write out(NS_error).
bool is_fatal() const
A shorthand way to write is_on(NS_fatal).
static void set_server_delta(long delta)
Sets a global delta (in seconds) between the local time and the server's time, for the purpose of syn...
bool is_warning() const
A shorthand way to write is_on(NS_warning).
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.