MacroRecorder::MacroRecorderDisable Class Reference


Detailed Description

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

#include <macrorec.h>

Inheritance diagram for MacroRecorder::MacroRecorderDisable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  MacroRecorderDisable ()
  Constructor.
  ~MacroRecorderDisable ()
  Destructor.

Constructor & Destructor Documentation

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();
    }

MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable
MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable MacroRecorder::MacroRecorderDisable