source: molecuilder/src/Actions/Action.cpp@ 91379c

Last change on this file since 91379c was 8a4f12, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Changed ActionRegistry to use the new Singleton Mechanism

  • Property mode set to 100644
File size: 407 bytes
Line 
1/*
2 * Action.cpp
3 *
4 * Created on: Dec 8, 2009
5 * Author: crueger
6 */
7
8#include <string>
9
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::getInstance().registerAction(this);
20 }
21}
22
23Action::~Action()
24{}
25
26const string Action::getName(){
27 return name;
28}
Note: See TracBrowser for help on using the repository browser.