]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
put back no command and worked on libshuff
[mothur.git] / commandfactory.cpp
index b6f63aa8f873296ef0bc146e2bb0cdcf9edb835c..729895d853957e820a5bc6224ed3898873c3a336 100644 (file)
 #include "unifracweightedcommand.h"
 #include "libshuffcommand.h"
 #include "mothur.h"
+#include "nocommand.h"
 
 
 /***********************************************************/
 
 /***********************************************************/
-CommandFactory::CommandFactory(){}
-
+CommandFactory::CommandFactory(){
+       command = new NoCommand();
+}
 /***********************************************************/
 
 /***********************************************************/
@@ -73,6 +75,7 @@ Command* CommandFactory::getCommand(string commandName){
                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;
        }