source: molecuilder/src/Actions/ActionRegistry.hpp@ 13743e

Last change on this file since 13743e was 13743e, checked in by Frederik Heber <heber@…>, 15 years ago

ActionRegistry now is iterable due to new functons getBeginIter() and getEndIter().

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 694 bytes
RevLine 
[3e8325]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
[8a4f12]14#include "Patterns/Singleton.hpp"
15
[3e8325]16class Action;
17
[8a4f12]18class ActionRegistry : public Singleton<ActionRegistry>
[3e8325]19{
[8a4f12]20 friend class Singleton<ActionRegistry>;
[3e8325]21public:
22 Action* getActionByName(const std::string);
23 void registerAction(Action*);
24
[13743e]25 std::map<const std::string,Action*>::iterator getBeginIter();
26 std::map<const std::string,Action*>::iterator getEndIter();
27
[3e8325]28private:
29 std::map<const std::string,Action*> actionMap;
30
31private:
32 ActionRegistry();
33 virtual ~ActionRegistry();
34};
35
36#endif /* ACTIONREGISTRY_HPP_ */
Note: See TracBrowser for help on using the repository browser.