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 225 of file xsens_janitors.h.
|
inline |
Definition at line 231 of file xsens_janitors.h.
References xsens::JanitorLogFunc< T, C, R >::m_control, xsens::JanitorLogFunc< T, C, R >::m_enabled, and xsens::JanitorLogFunc< T, C, R >::m_str.
|
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.
Referenced by xsens::JanitorLogFunc< T, C, R >::~JanitorLogFunc().
|
private |
Definition at line 222 of file xsens_janitors.h.
Referenced by xsens::JanitorLogFunc< T, C, R >::disable(), xsens::JanitorLogFunc< T, C, R >::enable(), and xsens::JanitorLogFunc< T, C, R >::~JanitorLogFunc().
|
private |
Definition at line 221 of file xsens_janitors.h.
|
private |
Definition at line 219 of file xsens_janitors.h.
Referenced by xsens::JanitorLogFunc< T, C, R >::~JanitorLogFunc().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |