source: src/commands/com_execute_full_cycle.cpp@ 66f24d

Last change on this file since 66f24d 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: 1.0 KB
Line 
1/**
2 * @file com_execute_full_cycle.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:35:13 2011
5 *
6 * @brief Executes a set of cycles 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
17using namespace VMG;
18
19class VMGCommandExecuteFullCycle : public Command
20{
21public:
22 Request Run(Command::argument_vector arguments)
23 {
24 std::string str_init = arguments[0] + "_INIT";
25 std::string str_loop = arguments[0] + "_LOOP";
26 std::string str_finalize = arguments[0] + "_FINALIZE";
27
28 VMG::Factory& factory = MG::GetFactory();
29
30 factory.GetObject(str_init)->Cast<CommandList>()->ExecuteList();
31 factory.GetObject(str_loop)->Cast<CommandList>()->ExecuteList();
32 factory.GetObject(str_finalize)->Cast<CommandList>()->ExecuteList();
33
34 return Continue;
35 }
36
37 static const char* Name() {return "ExecuteFullCycle";}
38 static int Arguments() {return 1;}
39};
40
41CREATE_INITIALIZER(VMGCommandExecuteFullCycle);
Note: See TracBrowser for help on using the repository browser.