Class for journalling a referenced value when the janitor leaves scope. More...
#include <journaller.h>
Public Member Functions | |
| JournalValueJanitor (Journaller *journal, const T &value, const std::string &msg=std::string(), JournalLogLevel level=JLL_Debug, bool enabled=true) | |
| Constructor. More... | |
| ~JournalValueJanitor () | |
| Destructor. More... | |
Public Attributes | |
| bool | m_enabled |
| Boolean value if set to true then the janitor is enabled. More... | |
Private Member Functions | |
| const JournalValueJanitor & | operator= (const JournalValueJanitor &) |
Private Attributes | |
| Journaller * | m_journal |
| JournalLogLevel | m_level |
| std::string | m_msg |
| const T & | m_value |
Class for journalling a referenced value when the janitor leaves scope.
The class stores a reference to the supplied object and uses streaming to output it to the journal. Like all journalling this means that for the supplied type T std::stringstream& std::stringstream::operator << (std::stringstream&, const T& value) must be defined.
Definition at line 415 of file journaller.h.
|
inline |
Constructor.
Definition at line 429 of file journaller.h.
|
inline |
Destructor.
Definition at line 439 of file journaller.h.
|
private |
| bool JournalValueJanitor< T >::m_enabled |
Boolean value if set to true then the janitor is enabled.
Definition at line 425 of file journaller.h.
|
private |
Definition at line 420 of file journaller.h.
|
private |
Definition at line 423 of file journaller.h.
|
private |
Definition at line 422 of file journaller.h.
|
private |
Definition at line 421 of file journaller.h.