/** * @file com_execute_full_cycle.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:35:13 2011 * * @brief Executes a set of cycles once. * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/command.hpp" #include "base/command_list.hpp" using namespace VMG; class VMGCommandExecuteFullCycle : public Command { public: Request Run(Command::argument_vector arguments) { MPE_EVENT_BEGIN() std::string str_init = arguments[0] + "_INIT"; std::string str_loop = arguments[0] + "_LOOP"; std::string str_finalize = arguments[0] + "_FINALIZE"; VMG::Factory& factory = MG::GetFactory(); factory.Get(str_init)->Cast()->ExecuteList(); factory.Get(str_loop)->Cast()->ExecuteList(); factory.Get(str_finalize)->Cast()->ExecuteList(); MPE_EVENT_END() return Continue; } static const char* Name() {return "ExecuteFullCycle";} static int Arguments() {return 1;} }; CREATE_INITIALIZER(VMGCommandExecuteFullCycle)