Panda3D
|
A particular category of error messages. More...
#include "notifyCategory.h"
Public Member Functions | |
std::ostream & | debug (bool prefix=true) const |
A shorthand way to write out(NS_debug). | |
std::ostream & | error (bool prefix=true) const |
A shorthand way to write out(NS_error). | |
std::ostream & | fatal (bool prefix=true) const |
A shorthand way to write out(NS_fatal). | |
std::string | get_basename () const |
NotifyCategory * | get_child (size_t i) const |
std::string | get_fullname () const |
size_t | get_num_children () const |
NotifySeverity | get_severity () const |
std::ostream & | info (bool prefix=true) const |
A shorthand way to write out(NS_info). | |
bool | is_debug () const |
A shorthand way to write is_on(NS_debug). | |
bool | is_error () const |
A shorthand way to write is_on(NS_error). | |
bool | is_fatal () const |
A shorthand way to write is_on(NS_fatal). | |
bool | is_info () const |
A shorthand way to write is_on(NS_info). | |
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). | |
bool | is_warning () const |
A shorthand way to write is_on(NS_warning). | |
std::ostream & | out (NotifySeverity severity, bool prefix=true) const |
Begins a new message to this Category at the indicated severity level. | |
void | set_severity (NotifySeverity severity) |
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). | |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
Static Public Member Functions | |
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 synchronizing the time stamps in the log messages of the client with that of a known server. | |
Public Attributes | |
get_basename | |
get_child | |
Returns the nth child Category of this particular Category. | |
get_fullname | |
get_num_children | |
Returns the number of child Categories of this particular Category. | |
get_severity | |
set_severity | |
Sets the severity level of messages that will be reported from this Category. | |
Friends | |
class | Notify |
Additional Inherited Members | |
![]() | |
enum | ValueType { VT_undefined , VT_list , VT_string , VT_filename , VT_bool , VT_int , VT_double , VT_enum , VT_search_path , VT_int64 , VT_color } |
enum | VariableFlags { F_trust_level_mask = 0x00000fff , F_open = 0x00001000 , F_closed = 0x00002000 , F_dynamic = 0x00004000 , F_dconfig = 0x00008000 } |
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.
Definition at line 32 of file notifyCategory.h.
|
inline |
A shorthand way to write out(NS_debug).
Definition at line 140 of file notifyCategory.I.
References Notify::null(), and out().
|
inline |
A shorthand way to write out(NS_error).
Definition at line 168 of file notifyCategory.I.
References out().
Referenced by Shader::cp_report_error().
|
inline |
A shorthand way to write out(NS_fatal).
Definition at line 176 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write out(NS_info).
Definition at line 152 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write is_on(NS_debug).
Definition at line 83 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_error).
Definition at line 112 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_fatal).
Definition at line 120 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_info).
Definition at line 96 of file notifyCategory.I.
References is_on().
|
inline |
Returns true if messages of the indicated severity level ought to be reported for this Category.
Definition at line 61 of file notifyCategory.I.
Referenced by is_debug(), is_error(), is_fatal(), is_info(), is_spam(), is_warning(), and out().
|
inline |
A shorthand way to write is_on(NS_spam).
Definition at line 70 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_warning).
Definition at line 104 of file notifyCategory.I.
References is_on().
std::ostream & NotifyCategory::out | ( | NotifySeverity | severity, |
bool | prefix = true ) const |
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().
Definition at line 58 of file notifyCategory.cxx.
References is_on(), and Notify::null().
Referenced by debug(), error(), fatal(), info(), spam(), and warning().
|
static |
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.
Definition at line 145 of file notifyCategory.cxx.
|
inline |
A shorthand way to write out(NS_spam).
Definition at line 128 of file notifyCategory.I.
References Notify::null(), and out().
|
inline |
A shorthand way to write out(NS_warning).
Definition at line 160 of file notifyCategory.I.
References out().
|
friend |
Definition at line 94 of file notifyCategory.h.
|
inline |
Definition at line 43 of file notifyCategory.h.
NotifyCategory * NotifyCategory::get_child |
Returns the nth child Category of this particular Category.
Definition at line 71 of file notifyCategory.h.
|
inline |
Definition at line 42 of file notifyCategory.h.
size_t NotifyCategory::get_num_children |
Returns the number of child Categories of this particular Category.
Definition at line 71 of file notifyCategory.h.
NotifySeverity NotifyCategory::get_severity |
Definition at line 44 of file notifyCategory.h.
|
inline |
Sets the severity level of messages that will be reported from this Category.
This allows any message of this severity level or higher.
Definition at line 44 of file notifyCategory.h.