NotifyCategory
from panda3d.core import NotifyCategory
- class NotifyCategory
Bases:
ConfigFlags
A particular category of error messages. Typically there will be one of these per package, so that we can turn on or off error messages at least at a package level; further nested categories can be created within a package if a finer grain of control is required.
Inheritance diagram
- __init__(*args, **kwargs)
- basename
- children
- debug()
C++ Interface: debug(NotifyCategory self, bool prefix)
- /**
A shorthand way to write out(NS_debug).
*/
- error()
C++ Interface: error(NotifyCategory self, bool prefix)
- /**
A shorthand way to write out(NS_error).
*/
- fatal()
C++ Interface: fatal(NotifyCategory self, bool prefix)
- /**
A shorthand way to write out(NS_fatal).
*/
- fullname
- getChild()
C++ Interface: get_child(NotifyCategory self, int i)
- /**
Returns the nth child Category of this particular Category.
*/
- getChildren()
- getNumChildren()
C++ Interface: get_num_children(NotifyCategory self)
- /**
Returns the number of child Categories of this particular Category.
*/
- get_child()
C++ Interface: get_child(NotifyCategory self, int i)
- /**
Returns the nth child Category of this particular Category.
*/
- get_children()
- get_num_children()
C++ Interface: get_num_children(NotifyCategory self)
- /**
Returns the number of child Categories of this particular Category.
*/
- info()
C++ Interface: info(NotifyCategory self, bool prefix)
- /**
A shorthand way to write out(NS_info).
*/
- isDebug()
C++ Interface: is_debug(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_debug).
*/
- isError()
C++ Interface: is_error(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_error).
*/
- isFatal()
C++ Interface: is_fatal(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_fatal).
*/
- isInfo()
C++ Interface: is_info(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_info).
*/
- isOn()
C++ Interface: is_on(NotifyCategory self, int severity)
- /**
Returns true if messages of the indicated severity level ought to be
reported for this Category.
*/
- isSpam()
C++ Interface: is_spam(NotifyCategory self)
// When NOTIFY_DEBUG is not defined, the categories will never be set to // “spam” or “debug” severities, and these methods are redefined to be // static to make it more obvious to the compiler. However, we still want // to present a consistent interface to our scripting language, so during // the interrogate pass (that is, when CPPPARSER is defined), we still // pretend they’re nonstatic.
- /**
A shorthand way to write is_on(NS_spam).
*/
- isWarning()
C++ Interface: is_warning(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_warning).
*/
- is_debug()
C++ Interface: is_debug(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_debug).
*/
- is_error()
C++ Interface: is_error(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_error).
*/
- is_fatal()
C++ Interface: is_fatal(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_fatal).
*/
- is_info()
C++ Interface: is_info(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_info).
*/
- is_on()
C++ Interface: is_on(NotifyCategory self, int severity)
- /**
Returns true if messages of the indicated severity level ought to be
reported for this Category.
*/
- is_spam()
C++ Interface: is_spam(NotifyCategory self)
// When NOTIFY_DEBUG is not defined, the categories will never be set to // “spam” or “debug” severities, and these methods are redefined to be // static to make it more obvious to the compiler. However, we still want // to present a consistent interface to our scripting language, so during // the interrogate pass (that is, when CPPPARSER is defined), we still // pretend they’re nonstatic.
- /**
A shorthand way to write is_on(NS_spam).
*/
- is_warning()
C++ Interface: is_warning(NotifyCategory self)
- /**
A shorthand way to write is_on(NS_warning).
*/
- out()
C++ Interface: out(NotifyCategory self, int severity, bool prefix)
- /**
Begins a new message to this Category at the indicated severity level. If
the indicated severity level is enabled, this writes a prefixing string to
the Notify::out() stream and returns that. If the severity level is
disabled, this returns Notify::null().
*/
- setServerDelta()
C++ Interface: set_server_delta(int delta)
- /**
Sets a global delta (in seconds) between the local time and the server’s
time, for the purpose of synchronizing the time stamps in the log messages
of the client with that of a known server.
*/
- setSeverity()
C++ Interface: set_severity(const NotifyCategory self, int severity)
- /**
Sets the severity level of messages that will be reported from this
Category. This allows any message of this severity level or higher.
*/
- set_server_delta()
C++ Interface: set_server_delta(int delta)
- /**
Sets a global delta (in seconds) between the local time and the server’s
time, for the purpose of synchronizing the time stamps in the log messages
of the client with that of a known server.
*/
- set_severity()
C++ Interface: set_severity(const NotifyCategory self, int severity)
- /**
Sets the severity level of messages that will be reported from this
Category. This allows any message of this severity level or higher.
*/
- severity
- spam()
C++ Interface: spam(NotifyCategory self, bool prefix)
- /**
A shorthand way to write out(NS_spam).
*/
- upcastToConfigFlags()
C++ Interface: upcast_to_ConfigFlags(const NotifyCategory self)
upcast from NotifyCategory to ConfigFlags
- upcast_to_ConfigFlags()
C++ Interface: upcast_to_ConfigFlags(const NotifyCategory self)
upcast from NotifyCategory to ConfigFlags