#include <stscript.h>
Inheritance diagram for StScript:
Public Member Functions | |
StScript () | |
StScript (const StString &fileName) | |
~StScript () | |
bool | load (StFile file) |
bool | setShell (const StFile &shell) |
void | setArguments (const StStringList &args) |
void | setArguments (const StString &str) |
bool | execute (bool wait=true, bool outputToFile=true) |
void | clear () |
Private Member Functions | |
bool | setExecutable (const StFile &file) |
Disallow of use this function couse of possible missunderstand. | |
Private Attributes | |
StStringList | args |
StScript::StScript | ( | ) | [inline] |
StScript::StScript | ( | const StString & | fileName | ) | [inline] |
StScript::~StScript | ( | ) | [inline] |
void StScript::clear | ( | ) | [inline] |
Reimplemented from StApplication.
bool StScript::execute | ( | bool | wait = true , |
|
bool | outputToFile = true | |||
) |
Executes application
wait | wait for application to close |
Reimplemented from StApplication.
bool StScript::load | ( | StFile | file | ) | [inline] |
Load script from file. This erases prefious loaded script.
Reimplemented from StStringList.
void StScript::setArguments | ( | const StString & | str | ) | [inline] |
Overloaded version of function above.
Reimplemented from StApplication.
void StScript::setArguments | ( | const StStringList & | args | ) | [inline] |
With what arguments execute binary.
Reimplemented from StApplication.
bool StScript::setExecutable | ( | const StFile & | file | ) | [inline, private] |
bool StScript::setShell | ( | const StFile & | shell | ) | [inline] |
Set shell to execute script. It can be bash for bash scripts or php for php scripts
StStringList StScript::args [private] |
Reimplemented from StApplication.