Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionRegistry.cpp

    re73a8a2 rcf1a07  
    99#include "Actions/Action.hpp"
    1010
    11 #include "Patterns/Singleton_impl.hpp"
    12 
    1311#include <string>
    1412#include <cassert>
     
    1614
    1715using namespace std;
     16
     17ActionRegistry *ActionRegistry::theInstance=0;
    1818
    1919ActionRegistry::ActionRegistry()
     
    4343}
    4444
    45 CONSTRUCT_SINGLETON(ActionRegistry)
     45// singleton stuff
     46ActionRegistry* ActionRegistry::getRegistry(){
     47  if(!theInstance){
     48    theInstance = new ActionRegistry();
     49  }
     50  return theInstance;
     51}
     52
     53void ActionRegistry::purgeRegistry(){
     54  if(theInstance){
     55    delete theInstance;
     56    theInstance = 0;
     57  }
     58}
Note: See TracChangeset for help on using the changeset viewer.