Remoto - VFS: pythonUtils.h Source File
Remoto - VFS
pythonUtils.h
Go to the documentation of this file.
1 #ifndef PYTHONUTILS_H
2 #define PYTHONUTILS_H
3 
4 #include <Python.h>
5 
6 #include <QString>
7 #include <QJsonObject>
8 
9 #if __cplusplus > 199711L
10 #define register // Deprecated in C++11.
11 #endif // #if __cplusplus > 199711L
12 
13 namespace py
14 {
15  PyObject *loadModule(QString path);
16  QString callObjectMethod(PyObject *object, QString method, PyObject *args=nullptr);
17  //PyObject *callObjectCreator(PyObject *object, QString method, PyObject *args=nullptr);
18 
19  void printError();
20 }
21 
22 #endif // PYTHONUTILS_H
Definition: pythonUtils.h:14
QString callObjectMethod(PyObject *object, QString method, PyObject *args=nullptr)
Definition: pythonUtils.cpp:29
PyObject * loadModule(QString path)
Definition: pythonUtils.cpp:6
void printError()
Definition: pythonUtils.cpp:88