/** * @file com_execute_cycle.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:33:49 2011 * * @brief Executes a given cycle once. * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/command.hpp" #include "base/command_list.hpp" #include "base/factory.hpp" using namespace VMG; class VMGCommandExecuteCycle : public Command { public: Request Run(Command::argument_vector arguments) { return MG::GetFactory().GetObject(arguments[0])->Cast()->ExecuteList(); } static const char* Name() {return "ExecuteCycle";} static int Arguments() {return 1;} }; CREATE_INITIALIZER(VMGCommandExecuteCycle);