![]() |
GemaLib
The GeMA library
|
Auxiliary class responsible for loading solution information from a Lua table. More...
#include <gmSolutionLoader.h>
Public Member Functions | |
GmSolutionLoader (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. | |
~GmSolutionLoader () | |
Destructor. | |
bool | load (LuaTable &solutionData) |
Loads solution data from the Lua table received as a parameter. More... | |
Private Member Functions | |
bool | loadNumericalSolvers (LuaTable &solutionData, GmSolutionData *data) |
Loads NumericalSolver definitions stored in the 'solutionData' table into the solution object 'data'. | |
bool | loadPhysicalMethods (LuaTable &solutionData, GmSolutionData *data) |
Loads PhysicalMethod definitions stored in the 'solutionData' table into the solution object 'data'. | |
void | setupProcesses (GmSolutionData *data) |
Traverses all process plugins discovering the function sets exported by each one and using this information to setup the solution data processSetMap. | |
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 solution information from a Lua table.
bool GmSolutionLoader::load | ( | LuaTable & | solutionData | ) |
Loads solution data from the Lua table received as a parameter.
The solution data table contains all subtables that where created by the Lua functions in solutionDataLoader.lua, such as NumericalSolver, PhysicalMethod, etc. Those functions have already validated the solution data.
Returns false if any errors, uncought by the Lua functions, where found.