X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmapsimcommand.cpp;h=3de10e6a8cd9411d6829ac699ffd11991af81007;hb=5a4ac4f954c4b4445bcee272f1f8220ddcc9c1e4;hp=de35075e98ee938e67f1880cada0ebfb1e0ba26a;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;p=mothur.git diff --git a/heatmapsimcommand.cpp b/heatmapsimcommand.cpp index de35075..3de10e6 100644 --- a/heatmapsimcommand.cpp +++ b/heatmapsimcommand.cpp @@ -72,6 +72,28 @@ string HeatMapSimCommand::getHelpString(){ exit(1); } } +//********************************************************************************************************************** + +string HeatMapSimCommand::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 { + if (type == "svg") { outputFileName = "svg"; } + 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, "HeatMapSimCommand", "getOutputFileNameTag"); + exit(1); + } +} + //********************************************************************************************************************** HeatMapSimCommand::HeatMapSimCommand(){ try {