4 #ifndef BPSSCRIPTENGINE_H
5 #define BPSSCRIPTENGINE_H
8 #include <QScriptEngine>
52 QScriptValue
eval(
const QString& aFilename, quint32 aLinenumber = 1);
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
The BPS scripting engine.
Definition: bpsscriptengine.h:17
void writelnDebug(const QString &aLine)
This signal is emitted whenever a line shall be written to the debugger output.
BpsScriptEngine & debug(const QString &aLine)
Prints a line to debug output.
BpsScriptEngine(QObject *aParent=nullptr)
Standard constructor for the BpsScriptEngine objects.
BpsScriptEngine & print(const QString &aLine)
Prints a line to stdout.
QScriptValue eval(const QString &aCode, const QString &aFilename, quint32 aLinenumber=1)
Evaluates script code, using aFilename as file name and aLinenumber as starting line number.
void writelnStderr(const QString &aLine)
This signal is emitted whenever a line shall be written to the standard error output (stderr).
QString adjustFileName(const QString &aFilename) const
Adjusts filename and checks for existance.
QScriptValue eval(const QString &aFilename, quint32 aLinenumber=1)
Evaluates a script stored in a file.
void writelnStdout(const QString &aLine)
This signal is emitted whenever a line shall be written to the standard output (stdout).
BpsScriptEngine & perror(const QString &aLine)
Prints a line to stderr.