GemaLib
The GeMA library
Loading...
Searching...
No Matches
gmResultsLoader.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_RESULTS_LOADER_H_
25#define _GEMA_RESULTS_LOADER_H_
26
27class GmResultsData;
28class GmLogCategory;
30
31class GmPluginLoader;
32class LuaTable;
33
36{
37public:
38 GmResultsLoader(const GmLogCategory& logger, GmPluginLoader* pluginLoader, GmSimulationData* simData);
40
41 bool load(LuaTable& resultsData);
42
43private:
44 bool loadResultDataSets(LuaTable& resultsData, GmResultsData* data);
45 bool loadTimeSets (LuaTable& resultsData, GmResultsData* data);
46 bool loadResultRules (LuaTable& resultsData, GmResultsData* data);
47
51};
52
53#endif
54
Auxiliary class responsible for loading results information from a Lua table.
Definition gmResultsLoader.h:36
bool loadResultRules(LuaTable &resultsData, GmResultsData *data)
Loads SaveRule, PrintRule and MonitorRule definitions stored in the 'resultsData' table into the resu...
Definition gmResultsLoader.cpp:176
bool loadResultDataSets(LuaTable &resultsData, GmResultsData *data)
Loads ResultsDataSet definitions stored in the 'resultsData' table into the results object 'data'.
Definition gmResultsLoader.cpp:100
GmSimulationData * _simData
Simulation data object sent as a parameter to plugin objects.
Definition gmResultsLoader.h:50
GmPluginLoader * _pluginLoader
Plugin loader.
Definition gmResultsLoader.h:49
~GmResultsLoader()
Destructor.
Definition gmResultsLoader.cpp:61
GmResultsLoader(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 gmResultsLoader.cpp:49
bool loadTimeSets(LuaTable &resultsData, GmResultsData *data)
Loads TimeSet definitions stored in the 'resultsData' table into the results object 'data'.
Definition gmResultsLoader.cpp:137
bool load(LuaTable &resultsData)
Loads results configuration data from the Lua table received as a parameter.
Definition gmResultsLoader.cpp:75
const GmLogCategory & _logger
Reference to the logger object used to emmit messages.
Definition gmResultsLoader.h:48