GemaLib
The GeMA library
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GmResultsLoader Class Reference

Auxiliary class responsible for loading results information from a Lua table. More...

#include <gmResultsLoader.h>

Collaboration diagram for GmResultsLoader:
Collaboration graph
[legend]

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.
 

Detailed Description

Auxiliary class responsible for loading results information from a Lua table.

Member Function Documentation

◆ load()

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.


The documentation for this class was generated from the following files: