source: molecuilder/src/Actions/ErrorAction.hpp@ 7bfc19

Last change on this file since 7bfc19 was 3e8325, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Added a central registry that allows access to actions by name.

  • Property mode set to 100644
File size: 472 bytes
Line 
1/*
2 * ErrorAction.hpp
3 *
4 * Created on: Jan 5, 2010
5 * Author: crueger
6 */
7
8#ifndef ERRORACTION_HPP_
9#define ERRORACTION_HPP_
10
11#include <string>
12#include "Actions/Action.hpp"
13
14class ErrorAction : public Action
15{
16public:
17 ErrorAction(std::string _name,const char * _errorMsg,bool _doRegister=true);
18 virtual ~ErrorAction();
19
20 virtual void call();
21 virtual void undo();
22 virtual bool canUndo();
23
24private:
25 std::string errorMsg;
26};
27
28#endif /* ERRORACTION_HPP_ */
Note: See TracBrowser for help on using the repository browser.