source: molecuilder/src/Actions/Action.cpp@ 3e8325

Last change on this file since 3e8325 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: 408 bytes
RevLine 
[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
13using namespace std;
14
15Action::Action(std::string _name,bool _doRegister) :
16name(_name)
17{
18 if(_doRegister){
19 ActionRegistry::getRegistry()->registerAction(this);
20 }
21}
[d20ed5]22
23Action::~Action()
[da09909]24{}
[3e8325]25
26const string Action::getName(){
27 return name;
28}
Note: See TracBrowser for help on using the repository browser.