1 #ifndef PYTHONPROCESS_HPP
2 #define PYTHONPROCESS_HPP
6 #if defined(WIN64) && defined(__GNUC__)
7 # define Py_InitModule4 Py_InitModule4_64
12 namespace mgx {
namespace process
40 extern mgxPython_EXPORT PyTypeObject factory_type;
41 extern mgxPython_EXPORT PyTypeObject process_type;
58 return (*
this)(parms[0]);
61 bool operator()(
QString filename);
74 bool initPython(
const QString& filename);
75 bool finalizePython();
76 bool addFactory(
char*
name);
77 bool removeFactory(
char*
name);
78 QString getTraceBack(PyObject* tb,
int limit);
80 PyObject* module, *main, *main_dict;
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: PythonProcess.hpp:56
AttribBase(const QString &name) const QString & name()
Default constructor of named attribute.
Definition: Attributes.hpp:54
Definition: PythonProcess.hpp:16
QString folder() const
Folder in which to place the process.
Definition: PythonProcess.hpp:64
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: PythonProcess.hpp:69
Definition: PythonProcess.hpp:27
Definition: PythonProcess.hpp:34
QStringList parmDescs() const
List of parameters descriptions.
Definition: PythonProcess.hpp:67
This process evaluate a Python script from which other processes can be called.
Definition: PythonProcess.hpp:50
QStringList parmDefaults() const
List of default parms.
Definition: PythonProcess.hpp:68
Definition: PythonProcess.hpp:21
QStringList parmNames() const
List of named parameters.
Definition: PythonProcess.hpp:66
File containing the definition of a Process.
QString name() const
Returns the name of the process.
Definition: PythonProcess.hpp:63
This is the main process class, the one all process inherit from.
Definition: Process.hpp:248
Global processes have full mutable access to all properties of the process.
Definition: Process.hpp:894
QString description() const
Returns a description of the process for the GUI.
Definition: PythonProcess.hpp:65