X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=c03751518e3e9a2ab54da2e38be693e08a3d6c34;hb=ec453945974b5c72af0bea042e3517312566d592;hp=dbcfb54be8c09fbf6177ad2d4ed10be8773d0358;hpb=d037597badc8d18e235c59f0c1114180edb7f98f;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index dbcfb54..c037515 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -15,11 +15,13 @@ #include "parselistcommand.h" #include "collectcommand.h" #include "collectsharedcommand.h" +#include "getgroupcommand.h" +#include "getlabelcommand.h" +#include "getlinecommand.h" #include "rarefactcommand.h" #include "summarycommand.h" #include "summarysharedcommand.h" #include "rarefactsharedcommand.h" -#include "nocommand.h" #include "quitcommand.h" #include "helpcommand.h" #include "commandfactory.hpp" @@ -27,7 +29,18 @@ #include "parsimonycommand.h" #include "unifracunweightedcommand.h" #include "unifracweightedcommand.h" -#include +#include "libshuffcommand.h" +#include "heatmapcommand.h" +#include "filterseqscommand.h" +#include "mothur.h" +#include "venncommand.h" +#include "nocommands.h" +#include "binsequencecommand.h" +#include "getoturepcommand.h" +#include "treegroupscommand.h" +#include "bootstrapsharedcommand.h" +#include "concensuscommand.h" +#include "distancecommand.h" /***********************************************************/ @@ -36,7 +49,6 @@ CommandFactory::CommandFactory(){ command = new NoCommand(); } - /***********************************************************/ /***********************************************************/ @@ -68,8 +80,21 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "summary.shared") { command = new SummarySharedCommand(); } else if(commandName == "unifrac.weighted") { command = new UnifracWeightedCommand(); } else if(commandName == "unifrac.unweighted") { command = new UnifracUnweightedCommand(); } + else if(commandName == "get.group") { command = new GetgroupCommand(); } + else if(commandName == "get.label") { command = new GetlabelCommand(); } + else if(commandName == "get.line") { command = new GetlineCommand(); } + else if(commandName == "libshuff") { command = new LibShuffCommand(); } + else if(commandName == "heatmap") { command = new HeatMapCommand(); } + else if(commandName == "filter.seqs") { command = new FilterSeqsCommand(); } + else if(commandName == "venn") { command = new VennCommand(); } + else if(commandName == "bin.seqs") { command = new BinSeqCommand(); } + else if(commandName == "get.oturep") { command = new GetOTURepCommand(); } + else if(commandName == "tree.shared") { command = new TreeGroupCommand(); } + else if(commandName == "bootstrap.shared") { command = new BootSharedCommand(); } + else if(commandName == "concensus") { command = new ConcensusCommand(); } + else if(commandName == "dist.seq") { command = new DistanceCommand(); } else { command = new NoCommand(); } - + return command; } catch(exception& e) {