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

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. More...

Inheritance diagram for NotifyCategory:
MemoryBase ConfigFlags

Public Member Functions

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)
 
str getFullname ()
 
int getNumChildren ()
 
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)
 
 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. 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...
 

Static Public Member Functions

static setServerDelta (long int delta)
 

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

◆ 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)

◆ getFullname()

str getFullname ( )

◆ getNumChildren()

int getNumChildren ( )

◆ 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 
)

◆ setServerDelta()

static setServerDelta ( long int  delta)
static

◆ 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).