/* * Context.h * * Created on: Dec 7, 2012 * Author: attero */ #ifndef CONTEXT_MANAGER_H_ #define CONTEXT_MANAGER_H_ #include #include #include #include #include "Context.h" class ContextManager { public: ContextManager(); std::stack stack; std::map contexts; Context * create_new_context(); void destroy_context(std::string name); Context * get_context(std::string name); Context * context(std::string name); Context * get_top(); SenchaObject execute_function(std::string name, std::vector arguments); void pop_context(); unsigned int index; virtual ~ContextManager(); }; #endif /* CONTEXT_MANAGER_H_ */