X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=b4e68e4cd67de88de0198251f2d595c9e000a498;hb=3329385a816a97bdde934d98a615865c29eaacad;hp=0c1b3e075ee8ade15e0ea619463df962e9eac846;hpb=09a01fb51eea9e81409d367410c831394193fd86;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 0c1b3e0..b4e68e4 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -10,17 +10,18 @@ #include "command.hpp" #include "readdistcommand.h" #include "readtreecommand.h" -#include "readsharedcommand.h" #include "readotucommand.h" #include "clustercommand.h" #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" @@ -28,7 +29,13 @@ #include "parsimonycommand.h" #include "unifracunweightedcommand.h" #include "unifracweightedcommand.h" -#include +#include "libshuffcommand.h" +#include "heatmapcommand.h" +#include "venncommand.h" +#include "nocommands.h" +#include "binsequencecommand.h" +#include "getoturepcommand.h" +#include "treegroupscommand.h" /***********************************************************/ @@ -37,7 +44,6 @@ CommandFactory::CommandFactory(){ command = new NoCommand(); } - /***********************************************************/ /***********************************************************/ @@ -56,7 +62,6 @@ Command* CommandFactory::getCommand(string commandName){ if(commandName == "read.dist") { command = new ReadDistCommand(); } else if(commandName == "read.otu") { command = new ReadOtuCommand(); } else if(commandName == "read.tree") { command = new ReadTreeCommand(); } - else if(commandName == "read.shared") { command = new ReadSharedCommand(); } else if(commandName == "cluster") { command = new ClusterCommand(); } else if(commandName == "deconvolute") { command = new DeconvoluteCommand(); } else if(commandName == "parsimony") { command = new ParsimonyCommand(); } @@ -70,8 +75,17 @@ 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 == "venn") { command = new VennCommand(); } + else if(commandName == "bin.seqs") { command = new BinSeqCommand(); } + else if(commandName == "get.oturep") { command = new GetOTURepCommand(); } + else if(commandName == "tree.groups") { command = new TreeGroupCommand(); } else { command = new NoCommand(); } - + return command; } catch(exception& e) {