/* * ErrorAction.hpp * * Created on: Jan 5, 2010 * Author: crueger */ #ifndef ERRORACTION_HPP_ #define ERRORACTION_HPP_ #include #include "Actions/Action.hpp" class ErrorAction : public Action { public: ErrorAction(std::string _name,const char * _errorMsg,bool _doRegister=true); virtual ~ErrorAction(); virtual bool canUndo(); virtual bool shouldUndo(); private: virtual ActionState* performCall(); virtual ActionState* performUndo(ActionState*); virtual ActionState* performRedo(ActionState*); std::string errorMsg; }; #endif /* ERRORACTION_HPP_ */