source:
molecuilder/src/Actions/ErrorAction.hpp@
a1a532
| Last change on this file since a1a532 was 3e8325, checked in by , 16 years ago | |
|---|---|
|
|
| File size: 472 bytes | |
| Rev | Line | |
|---|---|---|
| [70c4aa6] | 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 | ||
| 14 | class ErrorAction : public Action | |
| 15 | { | |
| 16 | public: | |
| [3e8325] | 17 | ErrorAction(std::string _name,const char * _errorMsg,bool _doRegister=true); |
| [70c4aa6] | 18 | virtual ~ErrorAction(); |
| 19 | ||
| 20 | virtual void call(); | |
| 21 | virtual void undo(); | |
| 22 | virtual bool canUndo(); | |
| 23 | ||
| 24 | private: | |
| 25 | std::string errorMsg; | |
| 26 | }; | |
| 27 | ||
| 28 | #endif /* ERRORACTION_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.
