source: molecuilder/src/Actions/ActionRegistry.hpp@ c3f8c4

Last change on this file since c3f8c4 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: 567 bytes
Line 
1/*
2 * ActionRegistry.hpp
3 *
4 * Created on: Jan 7, 2010
5 * Author: crueger
6 */
7
8#ifndef ACTIONREGISTRY_HPP_
9#define ACTIONREGISTRY_HPP_
10
11#include <string>
12#include <map>
13
14#include "Patterns/Singleton.hpp"
15
16class Action;
17
18class ActionRegistry : public Singleton<ActionRegistry>
19{
20 friend class Singleton<ActionRegistry>;
21public:
22 Action* getActionByName(const std::string);
23 void registerAction(Action*);
24
25private:
26 std::map<const std::string,Action*> actionMap;
27
28private:
29 ActionRegistry();
30 virtual ~ActionRegistry();
31};
32
33#endif /* ACTIONREGISTRY_HPP_ */
Note: See TracBrowser for help on using the repository browser.