]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
added the Calculators Thomas made in the fall. Added parameter and command error...
[mothur.git] / commandfactory.cpp
index a5ec5f12c48059089496af3a39d26b0fedb12f52..7670d412df334d2d656000cf07349aa404ffd21b 100644 (file)
@@ -22,7 +22,6 @@
 #include "summarycommand.h"
 #include "summarysharedcommand.h"
 #include "rarefactsharedcommand.h"
-#include "nocommand.h"
 #include "quitcommand.h"
 #include "helpcommand.h"
 #include "commandfactory.hpp"
@@ -30,7 +29,9 @@
 #include "parsimonycommand.h"
 #include "unifracunweightedcommand.h"
 #include "unifracweightedcommand.h"
+#include "libshuffcommand.h"
 #include "mothur.h"
+#include "nocommands.h"
 
 
 /***********************************************************/
@@ -39,7 +40,6 @@
 CommandFactory::CommandFactory(){
        command = new NoCommand();
 }
-
 /***********************************************************/
 
 /***********************************************************/
@@ -71,9 +71,10 @@ 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 == "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                                                                                    {       command = new NoCommand();                                      }
 
                return command;