X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clearmemorycommand.cpp;fp=clearmemorycommand.cpp;h=e1f39723c6b6b9d56c961fa16345c6194f9c8a7c;hb=49d2b7459c5027557564b21e9487dadafbbbdc96;hp=abdc5558ae1aa26ab7c2d21454f8ff0696802ad1;hpb=ee8403d4eb5760187d62b42a9cf4272de8fc0ec4;p=mothur.git diff --git a/clearmemorycommand.cpp b/clearmemorycommand.cpp index abdc555..e1f3972 100644 --- a/clearmemorycommand.cpp +++ b/clearmemorycommand.cpp @@ -22,6 +22,25 @@ vector ClearMemoryCommand::setParameters(){ } } //********************************************************************************************************************** +string ClearMemoryCommand::getOutputFileNameTag(string type, string inputName=""){ + try { + string outputFileName = ""; + map >::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 = "";