Function calling janitor class. More...
#include <xsens_janitors.h>
Public Types | |
typedef ResultType(__stdcall * | t_func_JanitorFuncStdCall) (ParamType) |
A function prototype for a calling janitor function. More... | |
Public Member Functions | |
void | disable (void) |
Disables the function calling. More... | |
void | enable (void) |
Enables the function calling. More... | |
JanitorFuncStdCall (t_func_JanitorFuncStdCall func, ParamType &control, bool enabl=true) | |
Constructor. More... | |
~JanitorFuncStdCall () | |
Destructor. More... | |
Private Member Functions | |
const JanitorFuncStdCall & | operator= (const JanitorFuncStdCall &) |
Private Attributes | |
ParamType & | m_control |
bool | m_enabled |
t_func_JanitorFuncStdCall | m_funcJFSC |
Function calling janitor class.
This class can be used to make sure that the given function is called on the given object 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 864 of file xsens_janitors.h.
typedef ResultType(__stdcall* xsens::JanitorFuncStdCall< ParamType, ResultType >::t_func_JanitorFuncStdCall) (ParamType) |
A function prototype for a calling janitor function.
Definition at line 868 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 881 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 886 of file xsens_janitors.h.
|
inline |
Disables the function calling.
Definition at line 894 of file xsens_janitors.h.
|
inline |
Enables the function calling.
Definition at line 901 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 874 of file xsens_janitors.h.
|
private |
Definition at line 876 of file xsens_janitors.h.
|
private |
Definition at line 875 of file xsens_janitors.h.