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

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

#include <gmModelLoader.h>

Collaboration diagram for GmModelLoader:
Collaboration graph
[legend]

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.
 

Detailed Description

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

Member Function Documentation

◆ load()

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.


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