Changeset 8a4f12 for molecuilder/src/Actions/ActionRegistry.hpp
- Timestamp:
- Mar 11, 2010, 2:08:44 PM (16 years ago)
- Children:
- c3f8c4
- Parents:
- abab7e
- File:
-
- 1 edited
-
molecuilder/src/Actions/ActionRegistry.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/ActionRegistry.hpp
rabab7e r8a4f12 12 12 #include <map> 13 13 14 #include "Patterns/Singleton.hpp" 15 14 16 class Action; 15 17 16 class ActionRegistry 18 class ActionRegistry : public Singleton<ActionRegistry> 17 19 { 20 friend class Singleton<ActionRegistry>; 18 21 public: 19 22 Action* getActionByName(const std::string); … … 23 26 std::map<const std::string,Action*> actionMap; 24 27 25 // singleton stuff26 public:27 static ActionRegistry* getRegistry();28 static void purgeRegistry();29 28 private: 30 29 ActionRegistry(); 31 30 virtual ~ActionRegistry(); 32 static ActionRegistry *theInstance;33 31 }; 34 32
Note:
See TracChangeset
for help on using the changeset viewer.
