GemaLib
The GeMA library
gmResultsLoader.h
Go to the documentation of this file.
1 /************************************************************************
2 **
3 ** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4 ** All rights reserved.
5 **
6 ** This file is part of the "GeMA" software. It's use should respect
7 ** the terms in the license agreement that can be found together
8 ** with this source code.
9 ** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10 ** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11 ** A PARTICULAR PURPOSE.
12 **
13 ************************************************************************/
14 
24 #ifndef _GEMA_RESULTS_LOADER_H_
25 #define _GEMA_RESULTS_LOADER_H_
26 
27 class GmResultsData;
28 class GmLogCategory;
29 class GmSimulationData;
30 
31 class GmPluginLoader;
32 class LuaTable;
33 
36 {
37 public:
38  GmResultsLoader(const GmLogCategory& logger, GmPluginLoader* pluginLoader, GmSimulationData* simData);
40 
41  bool load(LuaTable& resultsData);
42 
43 private:
44  bool loadMonitorRules(LuaTable& resultsData, GmResultsData* data);
45  bool loadSaveRules (LuaTable& resultsData, GmResultsData* data);
46 
50 };
51 
52 #endif
53 
bool load(LuaTable &resultsData)
Loads results configuration data from the Lua table received as a parameter.
Definition: gmResultsLoader.cpp:71
bool loadMonitorRules(LuaTable &resultsData, GmResultsData *data)
Loads MonitorRule definitions stored in the 'resultsData' table into the results object 'data'.
Definition: gmResultsLoader.cpp:91
Auxiliary class responsible for loading results information from a Lua table.
Definition: gmResultsLoader.h:35
GmResultsLoader(const GmLogCategory &logger, GmPluginLoader *pluginLoader, GmSimulationData *simData)
Constructor. Receives as a parameters the logger object that will be used to emmit messages and the p...
Definition: gmResultsLoader.cpp:45
GmPluginLoader * _pluginLoader
Plugin loader.
Definition: gmResultsLoader.h:48
~GmResultsLoader()
Destructor.
Definition: gmResultsLoader.cpp:57
bool loadSaveRules(LuaTable &resultsData, GmResultsData *data)
Loads SaveRule definitions stored in the 'resultsData' table into the results object 'data'.
Definition: gmResultsLoader.cpp:128
GmSimulationData * _simData
Simulation data object sent as a parameter to plugin objects.
Definition: gmResultsLoader.h:49
const GmLogCategory & _logger
Reference to the logger object used to emmit messages.
Definition: gmResultsLoader.h:47