GemaLib
The GeMA library
Loading...
Searching...
No Matches
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
27class GmModelData;
28class GmLogCategory;
30
31class GmPluginLoader;
32class LuaTable;
33
36{
37public:
38 GmModelLoader(const GmLogCategory& logger, GmPluginLoader* pluginLoader, GmSimulationData* simData);
40
41 bool load(LuaTable& modelData);
42
43private:
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 loadPcrObjects (LuaTable& modelData, GmModelData* data);
50 bool loadBoundaryConditions(LuaTable& modelData, GmModelData* data);
52 bool loadSpatialIndices (LuaTable& modelData, GmModelData* data);
53 bool loadDiscontinuitySets (LuaTable& modelData, GmModelData* data);
54
55 bool updateUserFunctionDiscRef(GmModelData* data);
56
60};
61
62#endif
63
Auxiliary class responsible for loading model information from a Lua table.
Definition gmModelLoader.h:36
bool loadMeshes(LuaTable &modelData, GmModelData *data)
Loads Mesh definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:383
bool loadPluginData(LuaTable &modelData, GmModelData *data)
Loads PluginData (and aliases) definitions stored in the 'modelData' table into the model object 'dat...
Definition gmModelLoader.cpp:323
GmSimulationData * _simData
Simulation data object sent as a parameter to plugin objects.
Definition gmModelLoader.h:59
bool loadSpatialIndices(LuaTable &modelData, GmModelData *data)
Loads SpatialIndex definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:617
bool loadDiscontinuitySets(LuaTable &modelData, GmModelData *data)
Loads DiscontinuitySet definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:633
GmPluginLoader * _pluginLoader
Plugin loader.
Definition gmModelLoader.h:58
~GmModelLoader()
Destructor.
Definition gmModelLoader.cpp:81
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:69
bool loadStateVars(LuaTable &modelData, GmModelData *data)
Loads StateVar definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:162
bool loadUserFunctions(LuaTable &modelData, GmModelData *data)
Loads UserFunction definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:215
bool loadPcrObjects(LuaTable &modelData, GmModelData *data)
Loads PCR object definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:479
bool loadPropertySets(LuaTable &modelData, GmModelData *data)
Loads PropertySet definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:371
const GmLogCategory & _logger
Reference to the logger object used to emmit messages.
Definition gmModelLoader.h:57
bool loadContactBoundaryConditions(LuaTable &modelData, GmModelData *data)
Loads ContactBoundaryCondition definitions stored in the 'modelData' table into the model object 'dat...
Definition gmModelLoader.cpp:568
bool loadBoundaryConditions(LuaTable &modelData, GmModelData *data)
Loads BoundaryCondition definitions stored in the 'modelData' table into the model object 'data'.
Definition gmModelLoader.cpp:492
bool load(LuaTable &modelData)
Loads model data from the Lua table received as a parameter.
Definition gmModelLoader.cpp:94