26#ifndef NPY_1_7_API_VERSION
27 #define NPY_1_7_API_VERSION 0x00000007
29#ifndef NPY_1_8_API_VERSION
30 #define NPY_1_8_API_VERSION 0x00000008
34 #include "python/pythonWrapper.h"
37#include "../../common/sharedStructures.h"
48 PyObject* printOutParams(
const QVector<ito::Param> *params,
bool asErr,
bool addInfos,
const int num,
bool printToStdStream =
true);
50 void errOutInitParams(
const QVector<ito::Param> *params,
const int num,
const char *reason);
51 ito::RetVal parseInitParams(
const QVector<ito::Param> *defaultParamListMand,
const QVector<ito::Param> *defaultParamListOpt, PyObject *args, PyObject *kwds, QVector<ito::ParamBase> ¶mListMandOut, QVector<ito::ParamBase> ¶mListOptOut);
60 PyObject* buildFilterOutputValues(QVector<QVariant> *outVals,
ito::RetVal &retValue);
100 static bool transformRetValToPyException(
ito::RetVal &retVal, PyObject *exceptionIfError = PyExc_RuntimeError, PyObject *exceptionIfWarning = PyExc_RuntimeWarning);
101 static bool setReturnValueMessage(
ito::RetVal &retVal,
const QString &objName,
const tErrMsg &errorMSG, PyObject *exceptionIfError = PyExc_RuntimeError, PyObject *exceptionIfWarning = PyExc_RuntimeWarning);
102 static bool setReturnValueMessage(
ito::RetVal &retVal,
const char *objName,
const tErrMsg &errorMSG, PyObject *exceptionIfError = PyExc_RuntimeError, PyObject *exceptionIfWarning = PyExc_RuntimeWarning);
class for parameter handling e.g. to pass parameters to plugins
Definition param.h:477
Definition pythonCommon.h:63
static ito::RetVal checkForPyExceptions(bool clearError=true)
Definition pythonCommon.cpp:2201
CodeCheckerMode
< mode that can be chosen for the code checker
Definition pythonCommon.h:75
@ NoCodeChecker
no code checker active
Definition pythonCommon.h:76
@ CodeCheckerPyFlakes
syntax error and further static code analysis based on PyFlakes
Definition pythonCommon.h:77
@ CodeCheckerAuto
chose Flake8 if flake8 is available, else chose PyFlakes if pyflakes is available,...
Definition pythonCommon.h:79
@ CodeCheckerFlake8
extended code checks (syntax, style, doc style, complexity...) based on Flake8
Definition pythonCommon.h:78
CodeCheckerMessageType
Definition pythonCommon.h:84
@ TypeInfo
the assigned message is displayed as information (blue dot)
Definition pythonCommon.h:85
@ TypeWarning
the assigned message is displayed as warning (orange dot)
Definition pythonCommon.h:86
@ TypeError
the assigned message is displayed as error (bug symbol)
Definition pythonCommon.h:87
Class for managing status values (like errors or warning)
Definition retVal.h:54
Definition apiFunctionsGraph.cpp:40
ito::RetVal findAndDeleteReservedInitKeyWords(PyObject *kwds, bool *enableAutoLoadParams)
Definition pythonCommon.cpp:1472
void errOutInitParams(const QVector< ito::Param > *params, const int num, const char *reason)
Definition pythonCommon.cpp:1158
ito::RetVal checkAndSetParamVal(PyObject *tempObj, ito::Param *param, int *set)
Definition pythonCommon.cpp:54
ito::RetVal createEmptyParamBaseFromParamVector(const QVector< ito::Param > *paramVecIn, QVector< ito::ParamBase > ¶mVecOut)
This function searches for reserves Keywords (e.g. autoLoadParams) sets the corresponding bool parame...
ito::RetVal copyParamVector(const QVector< ito::ParamBase > *paramVecIn, QVector< ito::ParamBase > ¶mVecOut)
Definition pythonCommon.cpp:1409