![]() |
GemaLib
The GeMA library
|
Auxiliary class responsible for loading model information from a Lua table. More...
#include <gmModelLoader.h>
Public Member Functions | |
GmModelLoader (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. | |
~GmModelLoader () | |
Destructor. | |
bool | load (LuaTable &modelData) |
Loads model data from the Lua table received as a parameter. More... | |
Private Member Functions | |
bool | loadStateVars (LuaTable &modelData, GmModelData *data) |
Loads StateVar definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadUserFunctions (LuaTable &modelData, GmModelData *data) |
Loads UserFunction definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadPluginData (LuaTable &modelData, GmModelData *data) |
Loads PluginData (and aliases) definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadPropertySets (LuaTable &modelData, GmModelData *data) |
Loads PropertySet definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadMeshes (LuaTable &modelData, GmModelData *data) |
Loads Mesh definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadBoundaryConditions (LuaTable &modelData, GmModelData *data) |
Loads BoundaryCondition definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadContactBoundaryConditions (LuaTable &modelData, GmModelData *data) |
Loads ContactBoundaryCondition definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadSpatialIndices (LuaTable &modelData, GmModelData *data) |
Loads SpatialIndex definitions stored in the 'modelData' table into the model object 'data'. | |
bool | loadDiscontinuitySets (LuaTable &modelData, GmModelData *data) |
Loads DiscontinuitySet definitions stored in the 'modelData' table into the model 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 model information from a Lua table.
bool GmModelLoader::load | ( | LuaTable & | modelData | ) |
Loads model data from the Lua table received as a parameter.
The model data table contains all subtables that where created by the lua functions in modelDataLoader.lua, such as Model, PropertySet, etc. Those functions have already validated the model data.
Returns false if any errors, uncought by the Lua functions, where found.