GemaLib
The GeMA library
gmModelLoader.h
Go to the documentation of this file.
1 /************************************************************************
2 **
3 ** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4 ** All rights reserved.
5 **
6 ** This file is part of the "GeMA" software. It's use should respect
7 ** the terms in the license agreement that can be found together
8 ** with this source code.
9 ** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10 ** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11 ** A PARTICULAR PURPOSE.
12 **
13 ************************************************************************/
14 
24 #ifndef _GEMA_MODEL_LOADER_H_
25 #define _GEMA_MODEL_LOADER_H_
26 
27 class GmModelData;
28 class GmLogCategory;
29 class GmSimulationData;
30 
31 class GmPluginLoader;
32 class LuaTable;
33 
36 {
37 public:
38  GmModelLoader(const GmLogCategory& logger, GmPluginLoader* pluginLoader, GmSimulationData* simData);
40 
41  bool load(LuaTable& modelData);
42 
43 private:
44  bool loadStateVars (LuaTable& modelData, GmModelData* data);
45  bool loadUserFunctions (LuaTable& modelData, GmModelData* data);
46  bool loadPluginData (LuaTable& modelData, GmModelData* data);
47  bool loadPropertySets (LuaTable& modelData, GmModelData* data);
48  bool loadMeshes (LuaTable& modelData, GmModelData* data);
49  bool loadBoundaryConditions(LuaTable& modelData, GmModelData* data);
50  bool loadContactBoundaryConditions(LuaTable& modelData, GmModelData* data);
51  bool loadSpatialIndices (LuaTable& modelData, GmModelData* data);
52  bool loadDiscontinuitySets (LuaTable& modelData, GmModelData* data);
53 
57 };
58 
59 #endif
60 
bool loadSpatialIndices(LuaTable &modelData, GmModelData *data)
Loads SpatialIndex definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:498
bool loadDiscontinuitySets(LuaTable &modelData, GmModelData *data)
Loads DiscontinuitySet definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:510
bool loadPropertySets(LuaTable &modelData, GmModelData *data)
Loads PropertySet definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:337
bool loadMeshes(LuaTable &modelData, GmModelData *data)
Loads Mesh definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:349
bool loadStateVars(LuaTable &modelData, GmModelData *data)
Loads StateVar definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:146
bool load(LuaTable &modelData)
Loads model data from the Lua table received as a parameter.
Definition: gmModelLoader.cpp:88
bool loadUserFunctions(LuaTable &modelData, GmModelData *data)
Loads UserFunction definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:194
const GmLogCategory & _logger
Reference to the logger object used to emmit messages.
Definition: gmModelLoader.h:54
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 p...
Definition: gmModelLoader.cpp:63
Auxiliary class responsible for loading model information from a Lua table.
Definition: gmModelLoader.h:35
bool loadContactBoundaryConditions(LuaTable &modelData, GmModelData *data)
Loads ContactBoundaryCondition definitions stored in the 'modelData' table into the model object 'dat...
Definition: gmModelLoader.cpp:461
bool loadPluginData(LuaTable &modelData, GmModelData *data)
Loads PluginData (and aliases) definitions stored in the 'modelData' table into the model object 'dat...
Definition: gmModelLoader.cpp:289
GmPluginLoader * _pluginLoader
Plugin loader.
Definition: gmModelLoader.h:55
~GmModelLoader()
Destructor.
Definition: gmModelLoader.cpp:75
bool loadBoundaryConditions(LuaTable &modelData, GmModelData *data)
Loads BoundaryCondition definitions stored in the 'modelData' table into the model object 'data'.
Definition: gmModelLoader.cpp:424
GmSimulationData * _simData
Simulation data object sent as a parameter to plugin objects.
Definition: gmModelLoader.h:56