Log / printf-like function calling janitor class. More...
#include <xsens_janitors.h>
Public Types | |
typedef R(__cdecl * | t_func_JanitorSimpleLogFunc) (const char *, const char *,...) |
A function prototype for a janitor simple log function. More... | |
Public Member Functions | |
void | disable (void) |
Disables the log function calling. More... | |
void | enable (void) |
Enables the log function calling. More... | |
JanitorSimpleLogFunc (t_func_JanitorSimpleLogFunc func, const char *filter, const char *str, bool enable=true) | |
Constructor. More... | |
JanitorSimpleLogFunc (t_func_JanitorSimpleLogFunc func, const char *filter, const char *str, const char *functionName, bool enable=true) | |
Constructor with additional 'function name' parameter. More... | |
~JanitorSimpleLogFunc () | |
Destructor. More... | |
Private Member Functions | |
const JanitorSimpleLogFunc & | operator= (const JanitorSimpleLogFunc &) |
Private Attributes | |
bool | m_enabled |
const char * | m_filter |
t_func_JanitorSimpleLogFunc | m_funcJF |
const char * | m_functionName |
const char * | m_str |
Log / printf-like function calling janitor class.
This class can be used to make sure that the given printf-like function is called with the supplied string when the janitor leaves scope.
Definition at line 805 of file xsens_janitors.h.
typedef R(__cdecl* xsens::JanitorSimpleLogFunc< R >::t_func_JanitorSimpleLogFunc) (const char *, const char *,...) |
A function prototype for a janitor simple log function.
Definition at line 808 of file xsens_janitors.h.
|
inline |
Constructor with additional 'function name' parameter.
Definition at line 820 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 826 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 831 of file xsens_janitors.h.
|
inline |
Disables the log function calling.
Definition at line 844 of file xsens_janitors.h.
|
inline |
Enables the log function calling.
Definition at line 851 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 815 of file xsens_janitors.h.
|
private |
Definition at line 812 of file xsens_janitors.h.
|
private |
Definition at line 811 of file xsens_janitors.h.
|
private |
Definition at line 814 of file xsens_janitors.h.
|
private |
Definition at line 813 of file xsens_janitors.h.