Ignore:
Timestamp:
Jan 7, 2010, 2:46:34 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
d97af9
Parents:
34ff5e6
Message:

Added a central registry that allows access to actions by name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/Action.cpp

    r34ff5e6 r3e8325  
    66 */
    77
    8 #include "Action.hpp"
     8#include <string>
    99
    10 Action::Action()
    11 {}
     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}
    1222
    1323Action::~Action()
    1424{}
     25
     26const string Action::getName(){
     27  return name;
     28}
Note: See TracChangeset for help on using the changeset viewer.