Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Assert Class Reference

#include <cl_assert.h>

Collaboration diagram for CL_Assert:

Collaboration graph
[legend]
List of all members.

Static Public Methods

void enable_channels (int channel_mask)
void die (bool a, const char *file, int line, const char *func, const char *assert_str)
 param: channel_mask - Channels to be enabled.

void info (int channel, const char *text, const char *file, int line)
 param: a - Asserts if false.param: file - Name of the file where the assert occoured.param: line - Line in the file where the assert occoured.param: func - Function in which the assert occoured.param: assert_str - String that describe the assertion check.

void add_listener (CL_AssertListener *listener)
 param: channel - Channel to use.param: text - text to print.param: file - Name of the file where this was printed from.param: line - Line in the file where this was printed from.

void remove_listener (CL_AssertListener *listener)
 param: listener - The listener to be added.


Static Private Attributes

std::list<CL_AssertListener*> listeners

Member Function Documentation

void CL_Assert::add_listener ( CL_AssertListener * listener ) [static]
 

param: channel - Channel to use.param: text - text to print.param: file - Name of the file where this was printed from.param: line - Line in the file where this was printed from.

void CL_Assert::die ( bool a,
const char * file,
int line,
const char * func,
const char * assert_str ) [static]
 

param: channel_mask - Channels to be enabled.

void CL_Assert::enable_channels ( int channel_mask ) [static]
 

void CL_Assert::info ( int channel,
const char * text,
const char * file,
int line ) [static]
 

param: a - Asserts if false.param: file - Name of the file where the assert occoured.param: line - Line in the file where the assert occoured.param: func - Function in which the assert occoured.param: assert_str - String that describe the assertion check.

void CL_Assert::remove_listener ( CL_AssertListener * listener ) [static]
 

param: listener - The listener to be added.


Member Data Documentation

std::list<CL_AssertListener*> CL_Assert::listeners [static, private]
 

Definition at line 71 of file cl_assert.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:37 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001