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

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

#include <gmSolutionLoader.h>

Collaboration diagram for GmSolutionLoader:
Collaboration graph
[legend]

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.
 

Detailed Description

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

Member Function Documentation

◆ load()

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.


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