![]() |
GemaLib
The GeMA library
|
Auxiliary class responsible for loading results information from a Lua table. More...
#include <gmResultsLoader.h>
Public Member Functions | |
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 plugin loader. | |
~GmResultsLoader () | |
Destructor. | |
bool | load (LuaTable &resultsData) |
Loads results configuration data from the Lua table received as a parameter. More... | |
Private Member Functions | |
bool | loadMonitorRules (LuaTable &resultsData, GmResultsData *data) |
Loads MonitorRule definitions stored in the 'resultsData' table into the results object 'data'. | |
bool | loadSaveRules (LuaTable &resultsData, GmResultsData *data) |
Loads SaveRule definitions stored in the 'resultsData' table into the results object 'data'. | |
Private Attributes | |
const GmLogCategory & | _logger |
Reference to the logger object used to emmit messages. | |
GmPluginLoader * | _pluginLoader |
Plugin loader. | |
GmSimulationData * | _simData |
Simulation data object sent as a parameter to plugin objects. | |
Auxiliary class responsible for loading results information from a Lua table.
bool GmResultsLoader::load | ( | LuaTable & | resultsData | ) |
Loads results configuration data from the Lua table received as a parameter.
The results table contains all subtables that where created by the lua functions in resultsDataLoader.lua. Those functions have already validated the configuration data.
Returns false if any errors, uncought by the Lua functions, where found.