| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file com_execute_cycle.cpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:33:49 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Executes a given cycle once.
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifdef HAVE_CONFIG_H
|
|---|
| 11 | #include <config.h>
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | #include "base/command.hpp"
|
|---|
| 15 | #include "base/command_list.hpp"
|
|---|
| 16 | #include "base/factory.hpp"
|
|---|
| 17 |
|
|---|
| 18 | using namespace VMG;
|
|---|
| 19 |
|
|---|
| 20 | class VMGCommandExecuteCycle : public Command
|
|---|
| 21 | {
|
|---|
| 22 | public:
|
|---|
| 23 | Request Run(Command::argument_vector arguments)
|
|---|
| 24 | {
|
|---|
| 25 | MPE_EVENT_BEGIN()
|
|---|
| 26 |
|
|---|
| 27 | Request req = MG::GetFactory().Get(arguments[0])->Cast<CommandList>()->ExecuteList();
|
|---|
| 28 |
|
|---|
| 29 | MPE_EVENT_END()
|
|---|
| 30 |
|
|---|
| 31 | return req;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | static const char* Name() {return "ExecuteCycle";}
|
|---|
| 35 | static int Arguments() {return 1;}
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | CREATE_INITIALIZER(VMGCommandExecuteCycle)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.