AnalyticalProcess
The GeMA Analytical Process Plugin
Loading...
Searching...
No Matches
gmpAnalyticalProcess.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_PLUGIN_ANALYTICAL_PROCESS_H_
25#define _GEMA_PLUGIN_ANALYTICAL_PROCESS_H_
26
27#include <gmProcess.h>
28
32{
33public:
35 virtual ~GmpAnalyticalProcess();
36
37 // Comments on the base class
38 virtual const char* pluginName() const { return "AnalyticalProcess"; }
39
40 // Comments on the base class
41 virtual const char* pluginType() const { return "analytical"; }
42
43 // Comments on the base class
44 virtual void loadFunctions(LuaTable& table) { registerFunctions<GmpAnalyticalProcess>(table, processMethodTable()); }
45
46 // Comments on the base class
47 virtual QStringList functionList() const { return buildFunctionList<GmpAnalyticalProcess>(processMethodTable()); }
48
49private:
50
52
53 int init (lua_State* L);
54 int solve(lua_State* L);
55};
56
57#endif
58
virtual const GmLogCategory & logger() const
QString description() const
void registerFunctions(LuaTable &table, typename GmProcessMethodRedirector< T >::MethodRegistry *methods, bool noProgressStats=false)
QStringList buildFunctionList(typename GmProcessMethodRedirector< T >::MethodRegistry *methods) const
Basic class for the analytical process plugin object.
Definition gmpAnalyticalProcess.h:32
virtual ~GmpAnalyticalProcess()
Destructor.
Definition gmpAnalyticalProcess.cpp:47
int init(lua_State *L)
The analytical.init() process implementation. Expects to receive as parameters:
Definition gmpAnalyticalProcess.cpp:74
int solve(lua_State *L)
The analytical.solve() process implementation.
Definition gmpAnalyticalProcess.cpp:121
GmpAnalyticalProcess(GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger)
Constructor. Will be called by the plugin loading code.
Definition gmpAnalyticalProcess.cpp:41
GmProcessMethodRedirector< GmpAnalyticalProcess >::MethodRegistry * processMethodTable() const
Returns the table storing the process exported function names / methods.
Definition gmpAnalyticalProcess.cpp:52