GemaLib
The GeMA library
Loading...
Searching...
No Matches
GmResultsLoader Class Reference

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

#include <gmResultsLoader.h>

Collaboration diagram for GmResultsLoader:

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.
 

Private Member Functions

bool loadResultDataSets (LuaTable &resultsData, GmResultsData *data)
 Loads ResultsDataSet definitions stored in the 'resultsData' table into the results object 'data'.
 
bool loadTimeSets (LuaTable &resultsData, GmResultsData *data)
 Loads TimeSet definitions stored in the 'resultsData' table into the results object 'data'.
 
bool loadResultRules (LuaTable &resultsData, GmResultsData *data)
 Loads SaveRule, PrintRule and MonitorRule 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: