Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
ScriptQuery (const QString &scriptPath, Model::Node *target, const QStringList &args, QueryExecutor *executor) | |
virtual Optional< TupleSet > | executeLinear (TupleSet input) override |
Public Member Functions inherited from InformationScripting::LinearQuery | |
LinearQuery (Model::Node *target=nullptr) | |
virtual QList< Optional< TupleSet > > | execute (QList< TupleSet > input) override |
Public Member Functions inherited from InformationScripting::Query | |
Query (Model::Node *target=nullptr) | |
virtual | ~Query ()=default |
bool | hasInput () const |
virtual void | setHasInput () |
Model::Node * | target () const |
Static Public Member Functions | |
static void | unloadPythonEnvironment () |
Private Member Functions | |
QList< TupleSet > | buildAndExecuteQueryFromPython (QString queryString, boost::python::list input) |
QList< TupleSet > | convertInput (boost::python::list input) |
Requires input to be a list of TupleSet. More... | |
QList< TupleSet > | executeQueryFromPython (QString name, boost::python::list args, boost::python::list input) |
QList< TupleSet > | extractResult (QList< Optional< TupleSet >> result, const QString &name) |
Extracts the values in result. More... | |
void | importStar (boost::python::dict &main_namespace, boost::python::object apiObject) |
Private Attributes | |
QList< QString > | arguments_ |
QueryExecutor * | executor_ {} |
QString | scriptPath_ |
InformationScripting::ScriptQuery::ScriptQuery | ( | const QString & | scriptPath, |
Model::Node * | target, | ||
const QStringList & | args, | ||
QueryExecutor * | executor | ||
) |
|
private |
|
private |
Requires input to be a list of TupleSet.
|
overridevirtual |
Implements InformationScripting::LinearQuery.
|
private |
|
private |
Extracts the values in result.
In case a value in result has an error the function throws a QueryRuntimeException.
|
private |
|
static |
|
private |
|
private |
|
private |