]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
made sorting optional but sort by default, in case the user wants to see the heatmap...
[mothur.git] / commandfactory.cpp
index dbcfb54be8c09fbf6177ad2d4ed10be8773d0358..56fd56b348bdb497cdb04b01d01f4c3a87901a61 100644 (file)
 #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"
 #include "parsimonycommand.h"
 #include "unifracunweightedcommand.h"
 #include "unifracweightedcommand.h"
-#include <exception>
+#include "libshuffcommand.h"
+#include "heatmapcommand.h"
+#include "mothur.h"
+#include "nocommands.h"
 
 
 /***********************************************************/
@@ -36,7 +41,6 @@
 CommandFactory::CommandFactory(){
        command = new NoCommand();
 }
-
 /***********************************************************/
 
 /***********************************************************/
@@ -68,8 +72,13 @@ 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                                                                                    {       command = new NoCommand();                                      }
-                       
+
                return command;
        }
        catch(exception& e) {