bool isValidCommand(string);\r
bool isValidCommand(string, string);\r
void printCommands(ostream&);\r
- void setOutputDirectory(string o) { outputDir = o; m->setOutputDir(o); }\r
- void setInputDirectory(string i) { inputDir = i; }\r
+ void printCommandsCategories(ostream&);\r
+ void setOutputDirectory(string o) { if(m->dirCheck(o) || (o == "")) { outputDir = o; m->setOutputDir(o); } }\r
+ void setInputDirectory(string i) { if(m->dirCheck(i) || (i == "")) { inputDir = i; } }\r
void setLogfileName(string n, bool a) { logFileName = n; append = a; }\r
string getLogfileName() { return logFileName; }\r
bool getAppend() { return append; }\r
string getOutputDir() { return outputDir; }\r
bool MPIEnabled(string);\r
-\r
+ map<string, string> getListCommands() { return commands; }\r
+ \r
private:\r
Command* command;\r
Command* shellcommand;\r
string outputDir, inputDir, logFileName;\r
bool append;\r
\r
+ int checkForRedirects(string);\r
+ \r
static CommandFactory* _uniqueInstance;\r
CommandFactory( const CommandFactory& ); // Disable copy constructor\r
void operator=( const CommandFactory& ); // Disable assignment operator\r