Last change
on this file since f2efcf 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:
518 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * ErrorAction.cpp
|
---|
3 | *
|
---|
4 | * Created on: Jan 5, 2010
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include <iostream>
|
---|
9 |
|
---|
10 | #include "Actions/ErrorAction.hpp"
|
---|
11 | #include "log.hpp"
|
---|
12 | #include "verbose.hpp"
|
---|
13 |
|
---|
14 | using namespace std;
|
---|
15 |
|
---|
16 | ErrorAction::ErrorAction(string _name,const char * _errorMsg,bool _doRegister) :
|
---|
17 | Action(_name,_doRegister),
|
---|
18 | errorMsg(_errorMsg)
|
---|
19 | {
|
---|
20 | }
|
---|
21 |
|
---|
22 | ErrorAction::~ErrorAction()
|
---|
23 | {
|
---|
24 | }
|
---|
25 |
|
---|
26 | void ErrorAction::call() {
|
---|
27 | Log() << Verbose(0) << errorMsg << endl;
|
---|
28 | }
|
---|
29 | void ErrorAction::undo() {
|
---|
30 | }
|
---|
31 |
|
---|
32 | bool ErrorAction::canUndo(){
|
---|
33 | return false;
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.