SoDaRadio-5.0.3-master:8901fb5
|
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 boost::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 boost::mutex | debug_msg_mutex |
Protected Member Functions | |
std::string | curDateTime () |
Protected Attributes | |
std::string | unit_name |
the name of the unit reporting status More... | |
unsigned int | debug_level |
the debug level (threshold) for messages More... | |
Static Protected Attributes | |
static unsigned int | default_debug_level = 0 |
static unsigned int | global_debug_level = 0 |
A simple base class to provide debug messaging from any derived class.
|
inline |
Definition at line 44 of file Debug.hxx.
References debug_level, default_debug_level, and unit_name.
|
inline |
Definition at line 49 of file Debug.hxx.
References debug_level, default_debug_level, and unit_name.
|
inline |
Definition at line 54 of file Debug.hxx.
References debug_level, and unit_name.
|
inline |
Definition at line 59 of file Debug.hxx.
References debug_level, and unit_name.
|
inlineprotected |
Definition at line 92 of file Debug.hxx.
Referenced by debugMsg().
|
inline |
Definition at line 64 of file Debug.hxx.
References curDateTime(), debug_level, debug_msg_mutex, global_debug_level, n200serbabble::msg, and unit_name.
Referenced by SoDa::USRPCtrl::applyTargetFreqCorrection(), SoDa::BaseBandRX::BaseBandRX(), SoDa::USRPTuner::checkLock(), SoDa::USRPCtrl::checkLock(), debugMsg(), SoDa::USRPCtrl::enableTransverterLO(), SoDa::USRPTX::execRepCommand(), SoDa::USRPRX::execSetCommand(), SoDa::BaseBandTX::execSetCommand(), SoDa::UI::execSetCommand(), SoDa::USRPTX::execSetCommand(), SoDa::BaseBandRX::execSetCommand(), SoDa::USRPCtrl::execSetCommand(), SoDa::USRPCtrl::initControlGPIO(), SoDa::USRPCtrl::normal_message_handler(), SoDa::USRPCtrl::reportAntennas(), SoDa::UI::run(), SoDa::USRPRX::run(), SoDa::USRPTX::run(), SoDa::USRPCtrl::run(), SoDa::BaseBandRX::run(), SoDa::UI::sendFFT(), SoDa::USRPCtrl::set1stLOFreq(), SoDa::USRPRX::set3rdLOFreq(), SoDa::IntNTuner::setRXFreq(), SoDa::USRPCtrl::setTransverterLOFreqPower(), SoDa::USRPCtrl::setTXEna(), SoDa::IntNTuner::setTXFreq(), SoDa::USRPCtrl::setTXFrontEndEnable(), SoDa::USRPCtrl::testIntNMode(), SoDa::USRPCtrl::USRPCtrl(), and SoDa::USRPTX::USRPTX().
|
inline |
Definition at line 71 of file Debug.hxx.
References debugMsg().
|
inline |
Definition at line 75 of file Debug.hxx.
References 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 |
|
inlinestatic |
Definition at line 85 of file Debug.hxx.
References global_debug_level.
|
protected |
the debug level (threshold) for messages
Definition at line 99 of file Debug.hxx.
Referenced by Debug(), debugMsg(), getDebugLevel(), and setDebugLevel().
|
static |
Definition at line 88 of file Debug.hxx.
Referenced by debugMsg().
|
staticprotected |
Definition at line 101 of file Debug.hxx.
Referenced by Debug(), getDefaultLevel(), and setDefaultLevel().
|
staticprotected |
Definition at line 102 of file Debug.hxx.
Referenced by debugMsg(), getGlobalLevel(), and setGlobalLevel().
|
protected |
the name of the unit reporting status
Definition at line 98 of file Debug.hxx.
Referenced by Debug(), and debugMsg().