|
MRPT
1.9.9
|
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 213 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Types | |
| typedef R(__cdecl * | t_func_JanitorLogFunc) (const char *,...) |
Public Member Functions | |
| JanitorLogFunc (t_func_JanitorLogFunc func, const char *str, T &control, bool enable=true) | |
| ~JanitorLogFunc () | |
| void | disable (void) |
| void | enable (void) |
Private Attributes | |
| const char * | m_str |
| T & | m_control |
| t_func_JanitorLogFunc | m_funcJF |
| bool | m_enabled |
| typedef R(__cdecl* xsens::JanitorLogFunc< T, C, R >::t_func_JanitorLogFunc) (const char *,...) |
Definition at line 216 of file xsens_janitors.h.
|
inline |
Definition at line 222 of file xsens_janitors.h.
|
inline |
Definition at line 222 of file xsens_janitors.h.
|
inline |
Definition at line 236 of file xsens_janitors.h.
References xsens::JanitorLogFunc< T, C, R >::m_enabled.
|
inline |
Definition at line 237 of file xsens_janitors.h.
References xsens::JanitorLogFunc< T, C, R >::m_enabled.
|
private |
Definition at line 220 of file xsens_janitors.h.
|
private |
Definition at line 222 of file xsens_janitors.h.
Referenced by xsens::JanitorLogFunc< T, C, R >::disable(), and xsens::JanitorLogFunc< T, C, R >::enable().
|
private |
Definition at line 221 of file xsens_janitors.h.
|
private |
Definition at line 219 of file xsens_janitors.h.
| Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 814d80880 Fri Aug 24 01:51:28 2018 +0200 at mar 26 may 2026 12:30:59 CEST |