source: molecuilder/src/Actions/ErrorAction.hpp@ 48b5fd

Last change on this file since 48b5fd was 521e29, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Switched type of pointer used for ActionStates

  • Property mode set to 100644
File size: 620 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 bool canUndo();
21 virtual bool shouldUndo();
22
23private:
24
25 virtual Action::state_ptr performCall();
26 virtual Action::state_ptr performUndo(Action::state_ptr);
27 virtual Action::state_ptr performRedo(Action::state_ptr);
28
29 std::string errorMsg;
30};
31
32#endif /* ERRORACTION_HPP_ */
Note: See TracBrowser for help on using the repository browser.