![]() |
semf
|
Class helps debugging by publishing logging information through printf
function.
More...
#include <debug.h>
Public Member Functions | |
Debug (T &object, DebugLevel level, const char *name) | |
Adds an object to the list to get printed out for debug. More... | |
virtual | ~Debug ()=default |
void | setEnabled (bool enable=true) |
Enables or disables the debugger output for a specific object. More... | |
void | setDisabled (bool disable=true) |
Enables or disables the debugger output for a specific object. More... | |
![]() | |
virtual | ~Node ()=default |
T * | next () const |
Returns a pointer to the next element in a list. More... | |
void | setNext (T *next) |
Sets a pointer to the next element in a list. More... | |
T * | previous () const |
Returns a pointer to the previous element in a list. More... | |
void | setPrevious (T *previous) |
Sets a pointer to the previous element in a list. More... | |
bool | isInAList () |
Returns if a node is part of a LinkedList . More... | |
Static Public Member Functions | |
static void | debugClass (DebugLevel maxLevel) |
Activates debugging for all objects of the same type with a maximum level. More... | |
template<class... Args> | |
static void | print (T &object, DebugLevel level, const char *name, const char *format, Args... args) |
Internal function - do not call directly. More... | |
Class helps debugging by publishing logging information through printf
function.
For registering a class type for debugging use SEMF_DEBUG_ADD_CLASS(T, level). For debugging only single objects, use SEMF_DEBUG_ADD_OBJECT(object, level).
For printing information out, use SEMF_ERROR
, SEMF_WARNING
, SEMF_INFO
, SEMF_DEBUG
and SEMF_TRACE
macros.
semf::Debug< T >::Debug | ( | T & | object, |
DebugLevel | level, | ||
const char * | name | ||
) |
|
virtualdefault |
|
static |
|
static |
Internal function - do not call directly.
Use SEMF_ERROR
, SEMF_WARNING
, SEMF_INFO
, SEMF_DEBUG
and SEMF_TRACE
macros.
object | Reference to the object from where the log is provided. |
level | Level of log message. |
name | Name of the class and function. |
format | Printf string format. |
args | Printf argument list. |
Definition at line 189 of file debug.h.
void semf::Debug< T >::setDisabled | ( | bool | disable = true | ) |
void semf::Debug< T >::setEnabled | ( | bool | enable = true | ) |