itom  4.1.0
ito::PythonCommon Class Reference

Public Types

enum  CodeCheckerMode { NoCodeChecker = 0, CodeCheckerPyFlakes = 1, CodeCheckerFlake8 = 2, CodeCheckerAuto = 3 }
 < mode that can be chosen for the code checker More...
 
enum  CodeCheckerMessageType { TypeInfo = 0, TypeWarning = 1, TypeError = 2 }
 
enum  tErrMsg {
  noMsg = 0, loadPlugin = 1, execFunc = 2, invokeFunc = 3,
  getProperty = 4, runFunc = 5
}
 

Static Public Member Functions

static bool transformRetValToPyException (ito::RetVal &retVal, PyObject *exceptionIfError=PyExc_RuntimeError, PyObject *exceptionIfWarning=PyExc_RuntimeWarning)
 
static bool setReturnValueMessage (ito::RetVal &retVal, const QString &objName, const tErrMsg &errorMSG, PyObject *exceptionIfError=PyExc_RuntimeError, PyObject *exceptionIfWarning=PyExc_RuntimeWarning)
 
static bool setReturnValueMessage (ito::RetVal &retVal, const char *objName, const tErrMsg &errorMSG, PyObject *exceptionIfError=PyExc_RuntimeError, PyObject *exceptionIfWarning=PyExc_RuntimeWarning)
 
static ito::RetVal checkForPyExceptions (bool clearError=true)
 

Member Enumeration Documentation

Enumerator
TypeInfo 

the assigned message is displayed as information (blue dot)

TypeWarning 

the assigned message is displayed as warning (orange dot)

TypeError 

the assigned message is displayed as error (bug symbol)

< mode that can be chosen for the code checker

Enumerator
NoCodeChecker 

no code checker active

CodeCheckerPyFlakes 

syntax error and further static code analysis based on PyFlakes

CodeCheckerFlake8 

extended code checks (syntax, style, doc style, complexity...) based on Flake8

CodeCheckerAuto 

chose Flake8 if flake8 is available, else chose PyFlakes if pyflakes is available, else No Checker


The documentation for this class was generated from the following files: