Ignore:
Timestamp:
Mar 11, 2010, 2:08:44 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
c3f8c4
Parents:
abab7e
Message:

Changed ActionRegistry to use the new Singleton Mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionRegistry.hpp

    rabab7e r8a4f12  
    1212#include <map>
    1313
     14#include "Patterns/Singleton.hpp"
     15
    1416class Action;
    1517
    16 class ActionRegistry
     18class ActionRegistry : public Singleton<ActionRegistry>
    1719{
     20  friend class Singleton<ActionRegistry>;
    1821public:
    1922  Action* getActionByName(const std::string);
     
    2326  std::map<const std::string,Action*> actionMap;
    2427
    25 // singleton stuff
    26 public:
    27   static ActionRegistry* getRegistry();
    28   static void purgeRegistry();
    2928private:
    3029  ActionRegistry();
    3130  virtual ~ActionRegistry();
    32   static ActionRegistry *theInstance;
    3331};
    3432
Note: See TracChangeset for help on using the changeset viewer.