source:
molecuilder/src/Actions/Action.cpp@
3e8325
| Last change on this file since 3e8325 was 3e8325, checked in by , 16 years ago | |
|---|---|
|
|
| File size: 408 bytes | |
| Rev | Line | |
|---|---|---|
| [d20ed5] | 1 | /* |
| 2 | * Action.cpp | |
| 3 | * | |
| 4 | * Created on: Dec 8, 2009 | |
| 5 | * Author: crueger | |
| 6 | */ | |
| 7 | ||
| [3e8325] | 8 | #include <string> |
| [d20ed5] | 9 | |
| [3e8325] | 10 | #include "Actions/Action.hpp" |
| 11 | #include "Actions/ActionRegistry.hpp" | |
| 12 | ||
| 13 | using namespace std; | |
| 14 | ||
| 15 | Action::Action(std::string _name,bool _doRegister) : | |
| 16 | name(_name) | |
| 17 | { | |
| 18 | if(_doRegister){ | |
| 19 | ActionRegistry::getRegistry()->registerAction(this); | |
| 20 | } | |
| 21 | } | |
| [d20ed5] | 22 | |
| 23 | Action::~Action() | |
| [da09909] | 24 | {} |
| [3e8325] | 25 | |
| 26 | const string Action::getName(){ | |
| 27 | return name; | |
| 28 | } |
Note:
See TracBrowser
for help on using the repository browser.
