]> git.donarmstrong.com Git - mothur.git/blobdiff - clearmemorycommand.cpp
added load.logfile command. changed summary.single output for subsample=t.
[mothur.git] / clearmemorycommand.cpp
index abdc5558ae1aa26ab7c2d21454f8ff0696802ad1..e1f39723c6b6b9d56c961fa16345c6194f9c8a7c 100644 (file)
@@ -22,6 +22,25 @@ vector<string> ClearMemoryCommand::setParameters(){
        }
 }
 //**********************************************************************************************************************
+string ClearMemoryCommand::getOutputFileNameTag(string type, string inputName=""){     
+       try {
+        string outputFileName = "";
+               map<string, vector<string> >::iterator it;
+        
+        //is this a type this command creates
+        it = outputTypes.find(type);
+        if (it == outputTypes.end()) {  m->mothurOut("[ERROR]: this command doesn't create a " + type + " output file.\n"); }
+        else {
+            m->mothurOut("[ERROR]: No definition for type " + type + " output file tag.\n"); m->control_pressed = true; 
+        }
+        return outputFileName;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "ClearMemoryCommand", "getOutputFileNameTag");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
 string ClearMemoryCommand::getHelpString(){    
        try {
                string helpString = "";