www.pudn.com > TurboPadSource.tar.gz > exec.h
/** * \class Execute * Execute Class * * Handles the execution of files. * \todo Use asynchronous execution and add the ability to redirect the output. */ #ifndef Exec_H #define Exec_H #include#include #include class Execute { public: Execute() {}; Execute(const wxString &fName, const wxString &cmd = ""); void SetCommand(wxString cmd) { command = cmd; } void SetFilename(wxString fName) { fileName = fName; } wxString GetCommand() { return command; } wxString GetFilename() { return fileName; } bool ReadCommand(const wxString &fName, const wxString &fileExt, int execNum); void Clear(); bool Exec(); private: wxString command; // Command to be executed wxString fileName; // Filename used for replacing variables wxString ExpandVariables(wxString string); }; #endif