![]() |
SoDaRadio-12.2.0-cut_dependencies:6c82803
|
A simple base class to provide debug messaging from any derived class. More...
#include <Debug.hxx>
Public Member Functions | |
| Debug (std::string _unit_name=std::string("UNKNOWN")) | |
| Debug (const char *_unit_name_cstr) | |
| Debug (unsigned int _debug_level, std::string _unit_name=std::string("UNKNOWN")) | |
| Debug (unsigned int _debug_level, const char *_unit_name_cstr) | |
| void | debugMsg (const std::string &msg, unsigned int threshold=1) |
| void | debugMsg (const SoDa::Format &fmt, unsigned int threshold=1) |
| void | debugMsg (const char *msg, unsigned int threshold=1) |
| void | setDebugLevel (unsigned int v) |
| unsigned int | getDebugLevel () |
Static Public Member Functions | |
| static void | setDefaultLevel (unsigned int v) |
| static unsigned int | getDefaultLevel () |
| static void | setGlobalLevel (unsigned int v) |
| static unsigned int | getGlobalLevel () |
Static Public Attributes | |
| static std::mutex | debug_msg_mutex |
Protected Member Functions | |
| std::string | curDateTime () |
Protected Attributes | |
| std::string | unit_name |
| the name of the unit reporting status | |
| unsigned int | debug_level |
| the debug level (threshold) for messages | |
Static Protected Attributes | |
| static unsigned int | default_debug_level |
| static unsigned int | global_debug_level |
A simple base class to provide debug messaging from any derived class.
|
inline |
Definition at line 41 of file Debug.hxx.
References debug_level, default_debug_level, and unit_name.
|
inline |
Definition at line 46 of file Debug.hxx.
References debug_level, default_debug_level, and unit_name.
|
inline |
Definition at line 51 of file Debug.hxx.
References debug_level, and unit_name.
|
inline |
Definition at line 56 of file Debug.hxx.
References debug_level, and unit_name.
|
protected |
Referenced by debugMsg().
|
inline |
Definition at line 75 of file Debug.hxx.
References debugMsg().
|
inline |
Definition at line 71 of file Debug.hxx.
References debugMsg().
|
inline |
Definition at line 61 of file Debug.hxx.
References curDateTime(), debug_level, debug_msg_mutex, global_debug_level, and unit_name.
Referenced by debugMsg(), and debugMsg().
|
inline |
Definition at line 80 of file Debug.hxx.
References debug_level.
|
inlinestatic |
Definition at line 83 of file Debug.hxx.
References default_debug_level.
|
inlinestatic |
Definition at line 86 of file Debug.hxx.
References global_debug_level.
|
inline |
Definition at line 79 of file Debug.hxx.
References debug_level.
|
inlinestatic |
Definition at line 82 of file Debug.hxx.
References default_debug_level.
|
inlinestatic |
Definition at line 85 of file Debug.hxx.
References global_debug_level.
|
protected |
the debug level (threshold) for messages
Definition at line 95 of file Debug.hxx.
Referenced by Debug(), Debug(), Debug(), Debug(), debugMsg(), getDebugLevel(), and setDebugLevel().
|
static |
Definition at line 88 of file Debug.hxx.
Referenced by debugMsg().
|
staticprotected |
Definition at line 97 of file Debug.hxx.
Referenced by Debug(), Debug(), getDefaultLevel(), and setDefaultLevel().
|
staticprotected |
Definition at line 98 of file Debug.hxx.
Referenced by debugMsg(), getGlobalLevel(), and setGlobalLevel().
|
protected |
the name of the unit reporting status
Definition at line 94 of file Debug.hxx.
Referenced by Debug(), Debug(), Debug(), Debug(), SoDa::USRPTuner::USRPTuner(), and debugMsg().