WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
S4U_DaemonActor.h
1 
12 #ifndef WRENCH_SIM4U_DAEMONACTOR_H
13 #define WRENCH_SIM4U_DAEMONACTOR_H
14 
15 
16 #include "wrench/logging/TerminalOutput.h"
17 #include <string>
18 #include <vector>
19 #include <iostream>
20 #include "wrench-dev.h"
21 #include "wrench/simgrid_S4U_util/S4U_Mailbox.h"
22 
23 
24 
25 /***********************/
27 /***********************/
28 
29 namespace wrench {
30 
31  class S4U_Daemon;
32 
36  class S4U_DaemonActor {
37 
38  public:
39 
44  explicit S4U_DaemonActor(S4U_Daemon *d) {
45  this->daemon = d;
46  }
47 
51  void operator()() {
52 
53  this->daemon->runMainMethod();
54 
55  }
56 
57  private:
58 
59  S4U_Daemon *daemon;
60 
61  };
62 
63  /***********************/
65  /***********************/
66 };
67 
68 
69 #endif //WRENCH_SIM4U_DAEMONWITHMAILBOXACTOR_H
wrench
Definition: Action.cpp:28