/* * ActionRegistry.hpp * * Created on: Jan 7, 2010 * Author: crueger */ #ifndef ACTIONREGISTRY_HPP_ #define ACTIONREGISTRY_HPP_ #include #include #include "Patterns/Singleton.hpp" class Action; class ActionRegistry : public Singleton { friend class Singleton; public: Action* getActionByName(const std::string); void registerAction(Action*); void unregisterAction(Action*); std::map::iterator getBeginIter(); std::map::iterator getEndIter(); private: std::map actionMap; private: ActionRegistry(); virtual ~ActionRegistry(); }; #endif /* ACTIONREGISTRY_HPP_ */