X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=6d87a68c49c6d9154572adcbc51ebc3b4555a35f;hb=deba0af0ccdcb6005ed5b2b82649b137c63fbdf7;hp=02af6767b00b724459c054839b789798f4b295f7;hpb=d70a1c2d70c5a516e74880709e3b48cfc1ce0321;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 02af676..6d87a68 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -134,6 +134,8 @@ #include "removeotulabelscommand.h" #include "makecontigscommand.h" #include "loadlogfilecommand.h" +#include "sffmultiplecommand.h" +#include "classifysharedcommand.h" /*******************************************************/ @@ -290,7 +292,10 @@ CommandFactory::CommandFactory(){ commands["make.contigs"] = "make.contigs"; commands["load.logfile"] = "load.logfile"; commands["make.table"] = "make.table"; + commands["sff.multiple"] = "sff.multiple"; commands["quit"] = "MPIEnabled"; + commands["classify.shared"] = "classify.shared"; + } /***********************************************************/ @@ -503,6 +508,8 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "remove.otulabels") { command = new RemoveOtuLabelsCommand(optionString); } else if(commandName == "make.contigs") { command = new MakeContigsCommand(optionString); } else if(commandName == "load.logfile") { command = new LoadLogfileCommand(optionString); } + else if(commandName == "sff.multiple") { command = new SffMultipleCommand(optionString); } + else if(commandName == "classify.shared") { command = new ClassifySharedCommand(optionString); } else { command = new NoCommand(optionString); } return command; @@ -657,6 +664,8 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str else if(commandName == "remove.otulabels") { pipecommand = new RemoveOtuLabelsCommand(optionString); } else if(commandName == "make.contigs") { pipecommand = new MakeContigsCommand(optionString); } else if(commandName == "load.logfile") { pipecommand = new LoadLogfileCommand(optionString); } + else if(commandName == "sff.multiple") { pipecommand = new SffMultipleCommand(optionString); } + else if(commandName == "classify.shared") { pipecommand = new ClassifySharedCommand(optionString); } else { pipecommand = new NoCommand(optionString); } return pipecommand; @@ -797,6 +806,8 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "remove.otulabels") { shellcommand = new RemoveOtuLabelsCommand(); } else if(commandName == "make.contigs") { shellcommand = new MakeContigsCommand(); } else if(commandName == "load.logfile") { shellcommand = new LoadLogfileCommand(); } + else if(commandName == "sff.multiple") { shellcommand = new SffMultipleCommand(); } + else if(commandName == "classify.shared") { shellcommand = new ClassifySharedCommand(); } else { shellcommand = new NoCommand(); } return shellcommand;