Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
NotifyCategory Class Reference

A particular category of error messages. More...

Inheritance diagram for NotifyCategory:
ConfigFlags

Public Member Functions

 __init__ (const NotifyCategory)
 
Ostream debug (bool prefix)
 A shorthand way to write out(NS_debug). More...
 
Ostream error (bool prefix)
 A shorthand way to write out(NS_error). More...
 
Ostream fatal (bool prefix)
 A shorthand way to write out(NS_fatal). More...
 
str getBasename ()
 
NotifyCategory getChild (int i)
 Returns the nth child Category of this particular Category. More...
 
list getChildren ()
 
str getFullname ()
 
int getNumChildren ()
 Returns the number of child Categories of this particular Category. More...
 
NotifySeverity getSeverity ()
 
Ostream info (bool prefix)
 A shorthand way to write out(NS_info). More...
 
bool isDebug ()
 A shorthand way to write is_on(NS_debug). More...
 
bool isError ()
 A shorthand way to write is_on(NS_error). More...
 
bool isFatal ()
 A shorthand way to write is_on(NS_fatal). More...
 
bool isInfo ()
 A shorthand way to write is_on(NS_info). More...
 
bool isOn (NotifySeverity severity)
 Returns true if messages of the indicated severity level ought to be reported for this Category. More...
 
bool isSpam ()
 A shorthand way to write is_on(NS_spam). More...
 
bool isWarning ()
 A shorthand way to write is_on(NS_warning). More...
 
Ostream out (NotifySeverity severity, bool prefix)
 Begins a new message to this Category at the indicated severity level. More...
 
 setSeverity (NotifySeverity severity)
 Sets the severity level of messages that will be reported from this Category. More...
 
Ostream spam (bool prefix)
 A shorthand way to write out(NS_spam). More...
 
Ostream warning (bool prefix)
 A shorthand way to write out(NS_warning). More...
 
- Public Member Functions inherited from ConfigFlags
 __init__ ()
 
 __init__ (const ConfigFlags)
 

Static Public Member Functions

static setServerDelta (long 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. More...
 

Public Attributes

String basename
 
NotifyCategory children []
 
String fullname
 
NotifySeverity severity
 

Additional Inherited Members

- Public Types inherited from ConfigFlags
enum  ValueType {
  VT_undefined = 0, VT_list = 1, VT_string = 2, VT_filename = 3,
  VT_bool = 4, VT_int = 5, VT_double = 6, VT_enum = 7,
  VT_search_path = 8, VT_int64 = 9, VT_color = 10
}
 
enum  VariableFlags {
  F_trust_level_mask = 4095, F_open = 4096, F_closed = 8192, F_dynamic = 16384,
  F_dconfig = 32768
}
 

Detailed Description

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.

Member Function Documentation

◆ __init__()

__init__ ( const  NotifyCategory)

◆ debug()

Ostream debug ( bool  prefix)

A shorthand way to write out(NS_debug).

◆ error()

Ostream error ( bool  prefix)

A shorthand way to write out(NS_error).

◆ fatal()

Ostream fatal ( bool  prefix)

A shorthand way to write out(NS_fatal).

◆ getBasename()

str getBasename ( )

◆ getChild()

NotifyCategory getChild ( int  i)

Returns the nth child Category of this particular Category.

◆ getChildren()

list getChildren ( )

◆ getFullname()

str getFullname ( )

◆ getNumChildren()

int getNumChildren ( )

Returns the number of child Categories of this particular Category.

◆ getSeverity()

NotifySeverity getSeverity ( )

◆ info()

Ostream info ( bool  prefix)

A shorthand way to write out(NS_info).

◆ isDebug()

bool isDebug ( )

A shorthand way to write is_on(NS_debug).

◆ isError()

bool isError ( )

A shorthand way to write is_on(NS_error).

◆ isFatal()

bool isFatal ( )

A shorthand way to write is_on(NS_fatal).

◆ isInfo()

bool isInfo ( )

A shorthand way to write is_on(NS_info).

◆ isOn()

bool isOn ( NotifySeverity  severity)

Returns true if messages of the indicated severity level ought to be reported for this Category.

◆ isSpam()

bool isSpam ( )

A shorthand way to write is_on(NS_spam).

◆ isWarning()

bool isWarning ( )

A shorthand way to write is_on(NS_warning).

◆ out()

Ostream out ( NotifySeverity  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()

static setServerDelta ( long int  delta)
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.

◆ setSeverity()

setSeverity ( NotifySeverity  severity)

Sets the severity level of messages that will be reported from this Category.

This allows any message of this severity level or higher.

◆ spam()

Ostream spam ( bool  prefix)

A shorthand way to write out(NS_spam).

◆ warning()

Ostream warning ( bool  prefix)

A shorthand way to write out(NS_warning).

Member Data Documentation

◆ basename

String basename

◆ children

NotifyCategory children[]

◆ fullname

String fullname

◆ severity

NotifySeverity severity