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 203 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 205 of file xsens_janitors.h.
|
inline |
Definition at line 213 of file xsens_janitors.h.
|
inline |
Definition at line 215 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 221 of file xsens_janitors.h.
References xsens::JanitorLogFunc< T, C, R >::m_enabled.
|
inline |
Definition at line 224 of file xsens_janitors.h.
References xsens::JanitorLogFunc< T, C, R >::m_enabled.
|
private |
Definition at line 208 of file xsens_janitors.h.
Referenced by xsens::JanitorLogFunc< T, C, R >::~JanitorLogFunc().
|
private |
Definition at line 210 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 209 of file xsens_janitors.h.
|
private |
Definition at line 207 of file xsens_janitors.h.
Referenced by xsens::JanitorLogFunc< T, C, R >::~JanitorLogFunc().
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |