89 bool run(
bool bk_gnd);
156 std::string _filepath;
Script interpreter for running a loaded script.
Definition ScriptInterpreter.h:14
EState
State of the running script.
Definition ScriptInterpreter.h:61
Links a script to a script interpreter derived instance.
Definition ScriptLink.h:12
std::string getFile() const
Gets the filepath of the loaded script.
void setName(const std::string &name)
Sets the descriptive name of the script.
bool reloadFile()
Reloads the script from the current set file.
ScriptInterpreter & getInterpreter()
Gets the reference to the interpreter of this instance.
ScriptLink(ScriptInterpreter *compiler, bool owner)
Constructor passing a script interpreter.
virtual ~ScriptLink()
Destructor stopping any running script. Deletes the interpreter when it is set to be the owner.
void start()
Starts a script in the background depending on the background flag.
void flush()
Flushes the interpreter script allowing recompiling the script.
bool run(bool bk_gnd)
Compiles, initializes and runs or starts the script in the background.
void setBackground(bool background=true)
Sets the script to be executed in the background.
bool compile()
Compiles the set script using the set interpreter.
bool isDirty() const
Gets dirty flag on the script which means it has changed.
bool saveFile()
Saves the file when the script was set using a file.
bool setScript(const std::string &script)
Stops and flushes a running script and sets a new script.
void setOutputStream(std::ostream *os)
Sets and enables debugging output stream.
bool setFile(const std::string &path)
Sets the script filepath and loads the script. When the path is set the file is stored at destruction...
const ScriptInterpreter & getInterpreter() const
Gets the const reference to the interpreter of this instance.
bool process()
Executes a background processing script.
std::string getName() const
Gets the descriptive name of the script.
bool isBackground() const
Gets the background execution flag.
bool initialize()
Initializes the script with a execution of the interpreter sf::ScriptInterpreter::emInit .
void execute()
Executes the script according to the settings.
std::string getScript() const
Gets the script text.
void abort()
Stops the script when it is running.
#define _IPJ_CLASS
Definition ipj/iface/global.h:35
Definition Application.h:10