X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=commandfactory.hpp;h=36e8f462b146fc7846ee6cf9ead1eb42e9757a36;hp=a6dc5b72e0b403df37dd77b7ee593ca5ff19de73;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281 diff --git a/commandfactory.hpp b/commandfactory.hpp index a6dc5b7..36e8f46 100644 --- a/commandfactory.hpp +++ b/commandfactory.hpp @@ -12,6 +12,7 @@ #include "mothur.h" #include "mothurout.h" +#include "currentfile.h" class Command; @@ -25,6 +26,7 @@ public: bool isValidCommand(string); bool isValidCommand(string, string); void printCommands(ostream&); + void printCommandsCategories(ostream&); void setOutputDirectory(string o) { outputDir = o; m->setOutputDir(o); } void setInputDirectory(string i) { inputDir = i; } void setLogfileName(string n, bool a) { logFileName = n; append = a; } @@ -32,17 +34,23 @@ public: bool getAppend() { return append; } string getOutputDir() { return outputDir; } bool MPIEnabled(string); - + map getListCommands() { return commands; } + private: Command* command; Command* shellcommand; Command* pipecommand; + MothurOut* m; + CurrentFile* currentFile; + map commands; map::iterator it; string outputDir, inputDir, logFileName; bool append; + int checkForRedirects(string); + static CommandFactory* _uniqueInstance; CommandFactory( const CommandFactory& ); // Disable copy constructor void operator=( const CommandFactory& ); // Disable assignment operator