ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::Debug Class Reference

#include <debug.h>

List of all members.

Public Types

enum  DebugChannel {
  Info = 1, Warning = 2 << 0, Error = 2 << 1, Engine = 2 << 2,
  Lua = 2 << 3, Bitmaps = 2 << 4, Models = 2 << 5, Actors = 2 << 6,
  Costumes = 2 << 7, Chores = 2 << 8, Fonts = 2 << 9, Keyframes = 2 << 10,
  Materials = 2 << 11, Movie = 2 << 12, Sound = 2 << 13, Scripts = 2 << 14,
  Sets = 2 << 15, TextObjects = 2 << 16, Patchr = 2 << 17, Lipsync = 2 << 18,
  Sprites = 2 << 19
}

Static Public Member Functions

static void registerDebugChannels ()
static bool isChannelEnabled (DebugChannel chan)
static void debug (DebugChannel channel, const char *s,...)
 Prints a message to the console (stdout), only if the specified debug channel or the channel Info are active.
static void warning (DebugChannel channel, const char *s,...)
 Prints a message to the console (sterr), only if the specified debug channel or the channel Warning are active.
static void error (DebugChannel channel, const char *s,...)
 Prints a message to the console (stderr) and exit the program immediately, only if the specified debug channel or the channel Error are active.
static void error (const char *s,...)
 Prints a message to the console (stderr) and exit the program immediately, only if the debug channel Error is active.

Detailed Description

Definition at line 31 of file debug.h.


Member Enumeration Documentation

Enumerator:
Info 
Warning 
Error 
Engine 
Lua 
Bitmaps 
Models 
Actors 
Costumes 
Chores 
Fonts 
Keyframes 
Materials 
Movie 
Sound 
Scripts 
Sets 
TextObjects 
Patchr 
Lipsync 
Sprites 

Definition at line 33 of file debug.h.


Member Function Documentation

void Grim::Debug::debug ( DebugChannel  channel,
const char *  s,
  ... 
) [static]

Prints a message to the console (stdout), only if the specified debug channel or the channel Info are active.

Parameters:
channel The debug channel to use.

Definition at line 56 of file debug.cpp.

void Grim::Debug::error ( DebugChannel  channel,
const char *  s,
  ... 
) [static]

Prints a message to the console (stderr) and exit the program immediately, only if the specified debug channel or the channel Error are active.

Parameters:
channel The debug channel to use.

Definition at line 78 of file debug.cpp.

void Grim::Debug::error ( const char *  s,
  ... 
) [static]

Prints a message to the console (stderr) and exit the program immediately, only if the debug channel Error is active.

Parameters:
channel The debug channel to use.

Definition at line 89 of file debug.cpp.

bool Grim::Debug::isChannelEnabled ( DebugChannel  chan  )  [static]

Definition at line 52 of file debug.cpp.

void Grim::Debug::registerDebugChannels (  )  [static]

Definition at line 29 of file debug.cpp.

void Grim::Debug::warning ( DebugChannel  channel,
const char *  s,
  ... 
) [static]

Prints a message to the console (sterr), only if the specified debug channel or the channel Warning are active.

Parameters:
channel The debug channel to use.

Definition at line 67 of file debug.cpp.


The documentation for this class was generated from the following files:


Generated on Sat Jul 13 2019 05:04:03 for ResidualVM by doxygen 1.7.1
curved edge   curved edge