Log / printf-like function calling janitor class. More...
#include <xsens_janitors.h>
Public Types | |
| typedef R(__cdecl * | t_func_JanitorLogFunc) (const char *, const char *,...) |
| A function prototype for a janitor log function. More... | |
Public Member Functions | |
| void | disable (void) |
| Disables the log function calling. More... | |
| void | enable (void) |
| Enables the log function calling. More... | |
| JanitorLogFunc (t_func_JanitorLogFunc func, const char *filter, const char *str, const char *functionName, T &control, bool enable=true) | |
| Constructor with additional 'function name' parameter. More... | |
| JanitorLogFunc (t_func_JanitorLogFunc func, const char *filter, const char *str, T &control, bool enable=true) | |
| Constructor. More... | |
| ~JanitorLogFunc () | |
| Destructor. More... | |
Private Member Functions | |
| const JanitorLogFunc & | operator= (const JanitorLogFunc &) |
Private Attributes | |
| T & | m_control |
| bool | m_enabled |
| const char * | m_filter |
| t_func_JanitorLogFunc | 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 parameter when the janitor leaves scope. Take care that the object is not of a type that is destroyed before the function unrolling begins.
Definition at line 746 of file xsens_janitors.h.
| typedef R(__cdecl* xsens::JanitorLogFunc< T, C, R >::t_func_JanitorLogFunc) (const char *, const char *,...) |
A function prototype for a janitor log function.
Definition at line 749 of file xsens_janitors.h.
|
inline |
Constructor with additional 'function name' parameter.
Definition at line 762 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 768 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 773 of file xsens_janitors.h.
|
inline |
Disables the log function calling.
Definition at line 786 of file xsens_janitors.h.
|
inline |
Enables the log function calling.
Definition at line 793 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 756 of file xsens_janitors.h.
|
private |
Definition at line 757 of file xsens_janitors.h.
|
private |
Definition at line 753 of file xsens_janitors.h.
|
private |
Definition at line 752 of file xsens_janitors.h.
|
private |
Definition at line 755 of file xsens_janitors.h.
|
private |
Definition at line 754 of file xsens_janitors.h.