MacroRecorder::MacroRecorderDisable Class Reference
 
 
 
MacroRecorder::MacroRecorderDisable Class Reference

#include <macrorec.h>

Inheritance diagram for MacroRecorder::MacroRecorderDisable:
MaxHeapOperators

Class 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

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