| 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(const char * _errorMsg) :
|
|---|
| 17 | errorMsg(_errorMsg)
|
|---|
| 18 | {
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | ErrorAction::~ErrorAction()
|
|---|
| 22 | {
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | void ErrorAction::call() {
|
|---|
| 26 | Log() << Verbose(0) << errorMsg << endl;
|
|---|
| 27 | }
|
|---|
| 28 | void ErrorAction::undo() {
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | bool ErrorAction::canUndo(){
|
|---|
| 32 | return false;
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.