15 #ifndef QGSPYTHONRUNNER_H 
   16 #define QGSPYTHONRUNNER_H 
   21 #include "qgis_core.h" 
   40     static bool isValid();
 
   43     static bool run( 
const QString &command, 
const QString &messageOnError = QString() );
 
   46     static bool eval( 
const QString &command, QString &result 
SIP_OUT );
 
   60     virtual bool runCommand( QString command, QString messageOnError = QString() ) = 0;
 
   62     virtual bool evalCommand( QString command, QString &result ) = 0;
 
Utility class for running Python commands from various parts of QGIS.
virtual bool evalCommand(QString command, QString &result)=0
virtual bool runCommand(QString command, QString messageOnError=QString())=0
virtual ~QgsPythonRunner()=default
static QgsPythonRunner * sInstance
QgsPythonRunner()=default
Protected constructor: can be instantiated only from children.