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