SuperModule.cc
Go to the documentation of this file.
1 #include <sstream>
2 
3 #include "SuperModule.h"
4 #include <utl/ErrorLogger.h>
5 #include <fwk/RunController.h>
6 
7 using namespace std;
8 using namespace utl;
9 using namespace fwk;
10 
11 using namespace SuperModuleNS;
12 
13 
14 SuperModule::SuperModule()
15 {
16 }
17 
18 
19 SuperModule::~SuperModule()
20 {
21 }
22 
23 
26 {
27  INFO("SuperModule::Init()");
28 
29  // initialize the sub-modules
30  RunController::GetInstance().GetModule("SubModuleA").Init();
31  RunController::GetInstance().GetModule("SubModuleB").Init();
32 
33  return eSuccess;
34 }
35 
36 
38 SuperModule::Run(evt::Event& event)
39 {
40  INFO("SuperModule::Run()");
41 
42  // run the sub-modules
43  RunController::GetInstance().GetModule("SubModuleA").Run(event);
44  RunController::GetInstance().GetModule("SubModuleB").Run(event);
45 
46  return eSuccess;
47 }
48 
49 
51 SuperModule::Finish()
52 {
53  INFO("SuperModule::Finish()");
54 
55  // finish sub-modules
56  RunController::GetInstance().GetModule("SubModuleA").Finish();
57  RunController::GetInstance().GetModule("SubModuleB").Finish();
58 
59  return eSuccess;
60 }
#define INFO(message)
Macro for logging informational messages.
Definition: ErrorLogger.h:161
void Init()
Initialise the registry.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.