X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.hpp;h=e95db8016a4149c9c2defdbb9e7933ff6ee3905a;hb=5b72d1cf3fa48730e5bb70d59cced1e43e1fe424;hp=a6dc5b72e0b403df37dd77b7ee593ca5ff19de73;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/commandfactory.hpp b/commandfactory.hpp index a6dc5b7..e95db80 100644 --- a/commandfactory.hpp +++ b/commandfactory.hpp @@ -12,6 +12,7 @@ #include "mothur.h" #include "mothurout.h" +#include "currentfile.h" class Command; @@ -32,17 +33,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