dlvhex
2.5.0
|
Allows for printing within a given scope using some indent. More...
#include <include/dlvhex2/Logger.h>
Public Member Functions | |
Closure (Logger &l, Levels level, const std::string &str, bool message) | |
Generic constructor. | |
Closure (Logger &l, Levels level, const std::string &str, const void *const val, bool message) | |
Constructor. | |
~Closure () | |
Destructor. | |
Private Member Functions | |
void | sayHello () |
Prints an ENTRY message. | |
void | sayGoodbye () |
Prints an EXIT message. | |
Private Attributes | |
Logger & | l |
Logger to use. | |
Levels | level |
Level to print at. | |
unsigned | cutoff |
Value to be removed from the indent after the scope was left (restore the old indent). | |
bool | message |
Message to print. |
Allows for printing within a given scope using some indent.
Logger::Closure::Closure | ( | Logger & | l, |
Levels | level, | ||
const std::string & | str, | ||
bool | message | ||
) | [inline] |
Generic constructor.
With value (converted/reinterpret-casted to const void* const).
l | See Logger::Closure::l. |
level | See Logger::Closure::level. |
str | String to print. |
message | See Logger::Closure::message. |
Definition at line 197 of file Logger.h.
References Logger::indent, LOG_SCOPED_LOCK, and Logger::shallPrint().
Logger::Closure::Closure | ( | Logger & | l, |
Levels | level, | ||
const std::string & | str, | ||
const void *const | val, | ||
bool | message | ||
) | [inline] |
Constructor.
With value (converted/reinterpret-casted to const void* const).
l | See Logger::Closure::l. |
level | See Logger::Closure::level. |
str | String to print. |
val | Value to print. |
message | See Logger::Closure::message. |
Definition at line 217 of file Logger.h.
References Logger::indent, LOG_SCOPED_LOCK, and Logger::shallPrint().
Logger::Closure::~Closure | ( | ) | [inline] |
void Logger::Closure::sayGoodbye | ( | ) | [inline, private] |
void Logger::Closure::sayHello | ( | ) | [inline, private] |
unsigned Logger::Closure::cutoff [private] |
Logger& Logger::Closure::l [private] |
Levels Logger::Closure::level [private] |
bool Logger::Closure::message [private] |