/* * ErrorAction.hpp * * Created on: Jan 5, 2010 * Author: crueger */ #ifndef ERRORACTION_HPP_ #define ERRORACTION_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include "Actions/Action.hpp" namespace MoleCuilder { class ErrorAction : public Action { public: ErrorAction(const ActionTrait &_trait,const char * _errorMsg); virtual ~ErrorAction(); virtual bool canUndo(); virtual bool shouldUndo(); void outputAsCLI(std::ostream &ost) const; void outputAsPython(std::ostream &ost, const std::string &prefix) const; private: virtual Dialog * createDialog(); virtual ActionState::ptr performCall(); virtual ActionState::ptr performUndo(ActionState::ptr); virtual ActionState::ptr performRedo(ActionState::ptr); std::string errorMsg; }; } #endif /* ERRORACTION_HPP_ */