source: src/commands/com_execute_cycle_loop.cpp@ 48b662

Last change on this file since 48b662 was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@847 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 773 bytes
Line 
1/**
2 * @file com_execute_cycle_loop.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:34:13 2011
5 *
6 * @brief Executes a single cycle as long as it returns
7 * "Continue"
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
18using namespace VMG;
19
20class VMGCommandExecuteCycleLoop : public Command
21{
22public:
23 Request Run(Command::argument_vector arguments)
24 {
25 while (MG::GetFactory().GetObject(arguments[0])->Cast<CommandList>()->ExecuteList() == Continue);
26
27 return Continue;
28 }
29
30 static const char* Name() {return "ExecuteCycleLoop";}
31 static int Arguments() {return 1;}
32};
33
34CREATE_INITIALIZER(VMGCommandExecuteCycleLoop);
Note: See TracBrowser for help on using the repository browser.