StScript Class Reference

#include <stscript.h>

Inheritance diagram for StScript:

StApplication StStringList StThread StValueList< StString > List of all members.

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

Constructor & Destructor Documentation

StScript::StScript (  )  [inline]

StScript::StScript ( const StString fileName  )  [inline]

StScript::~StScript (  )  [inline]


Member Function Documentation

void StScript::clear (  )  [inline]

Reimplemented from StApplication.

bool StScript::execute ( bool  wait = true,
bool  outputToFile = true 
)

Executes application

Parameters:
wait wait for application to close
Returns:
true if execute is done

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]

Disallow of use this function couse of possible missunderstand.

Reimplemented from StApplication.

bool StScript::setShell ( const StFile shell  )  [inline]

Set shell to execute script. It can be bash for bash scripts or php for php scripts


Member Data Documentation

StStringList StScript::args [private]

Reimplemented from StApplication.


The documentation for this class was generated from the following files:
Generated on Tue Nov 14 21:15:09 2006 for Smart Tools Library by  doxygen 1.4.7