/* * Registry.hpp * * Created on: Jan 7, 2010 * Author: crueger */ #ifndef ACTIONREGISTRY_HPP_ #define ACTIONREGISTRY_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "CodePatterns/Registry.hpp" #include "CodePatterns/Singleton.hpp" #include "Actions/Action.hpp" /** Action Registry. * * The Action registry is a storage for any Action instance to retrieved by name. * It is a singleton and can be called from anywhere. * */ class ActionRegistry : public Singleton, public Registry { friend class Singleton; //friend class Registry; public: Action* getActionByName(const std::string name); bool isActionPresentByName(const std::string name) const; int getLastPosition(const std::string &MenuName) const; private: ActionRegistry(); ~ActionRegistry(); }; #endif /* ACTIONREGISTRY_HPP_ */