#include <macrorec.h>
Class for easily & safely disabling the macro recorder.
This class disables the macro recorder in its constructor and re-enables it in its destructor. It is therefore a fool-proof (and exception safe) way of temporarily disabling the macro recorder
Public Member Functions |
|
| MacroRecorderDisable () | |
| Constructor. |
|
| ~MacroRecorderDisable () | |
| Destructor. |
|
| MacroRecorderDisable | ( | ) | [inline] |
Constructor.
Enables the macro recorder automatically.
{
MacroRecorder* recorder = GetCOREInterface()->GetMacroRecorder();
if(recorder != NULL)
recorder->Disable();
}
| ~MacroRecorderDisable | ( | ) | [inline] |
Destructor.
Disables the macro recorder automatically.
{
MacroRecorder* recorder = GetCOREInterface()->GetMacroRecorder();
if(recorder != NULL)
recorder->Enable();
}