#include <Debug.h>
Public Member Functions | |
Debug () | |
Debug class default constructor. | |
virtual | ~Debug () |
Debug class default destructor. | |
void | SetVerbosity (string verbositystr) |
Set system verbosity. | |
string | GetVerbosity () |
Obtain debug system verbosity value. | |
void | Prntdbg (const char *file, int line, const char *function, int verb, string print) |
Print debug information to standard output or a file. | |
void | Prnterr (const char *file, int line, const char *function, string print) |
Print error information to standard error. | |
void | SetDebug (bool debug, bool debugcode) |
void | StopDebug () |
Stop debugging. | |
void | StartDebug () |
Start debugging. | |
bool | isDebugging () |
Obtain if we are debugging or not. | |
Private Attributes | |
int | verbosity |
Debug system verbosity. | |
bool debug bool | debugcode |
Display debug information or not. |
Debug class handles all debugging information and displays output on the screen while running in non-background mode with CLI (Command Line Interface) access
Definition at line 33 of file Debug.h.
debug::Debug::Debug | ( | ) |
debug::Debug::~Debug | ( | ) | [virtual] |
string debug::Debug::GetVerbosity | ( | ) |
bool debug::Debug::isDebugging | ( | ) |
void debug::Debug::Prntdbg | ( | const char * | file, | |
int | line, | |||
const char * | function, | |||
int | verb, | |||
string | ||||
) |
Print debug information to standard output or a file.
This method prints coloured debug information to standard output or a log file (depending on user selection). It also provides tracing of code files, lines and functions. For such task we are providing CODEAT define that provides all needed MACROS for processing this information.
file | string containing source file name | |
line | string containing line number | |
function | string containing function name | |
verb | minimum verbosity level for displaying this message | |
string contaning debug message content |
Referenced by main().
void debug::Debug::Prnterr | ( | const char * | file, | |
int | line, | |||
const char * | function, | |||
string | ||||
) |
Print error information to standard error.
This method prints debug information to standard error and / or a log file (depending on user selection). It also provides tracing of code files, lines and functions. For such task we are providing CODEAT define that provides all needed MACROS for processing this information.
file | string containing source file name | |
line | string containing line number | |
function | string containing function name | |
string contaning debug message content |
Referenced by main().
void debug::Debug::SetDebug | ( | bool | debug, | |
bool | debugcode | |||
) |
void debug::Debug::SetVerbosity | ( | string | verbositystr | ) |
bool debug bool debug::Debug::debugcode [private] |
int debug::Debug::verbosity [private] |
Debug system verbosity.
Definition at line 104 of file Debug.h.
Referenced by Debug(), and GetVerbosity().