source: molecuilder/src/Actions/ErrorAction.cpp@ f2efcf

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