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
RevLine 
[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
14class ErrorAction : public Action
15{
16public:
[3e8325]17 ErrorAction(std::string _name,const char * _errorMsg,bool _doRegister=true);
[70c4aa6]18 virtual ~ErrorAction();
19
20 virtual bool canUndo();
[0012e6]21 virtual bool shouldUndo();
[70c4aa6]22
23private:
[0012e6]24
[521e29]25 virtual Action::state_ptr performCall();
26 virtual Action::state_ptr performUndo(Action::state_ptr);
27 virtual Action::state_ptr performRedo(Action::state_ptr);
[0012e6]28
[70c4aa6]29 std::string errorMsg;
30};
31
32#endif /* ERRORACTION_HPP_ */
Note: See TracBrowser for help on using the repository browser.