]> git.donarmstrong.com Git - mothur.git/blobdiff - normalizesharedcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / normalizesharedcommand.cpp
index d9405a5129dd238ee2992a2986289ffffd6ed167..37cfb5daa98b4eeb850b44d60e5e9d80fa268de5 100644 (file)
@@ -381,6 +381,13 @@ int NormalizeSharedCommand::execute(){
                m->mothurOut(outputFileName); m->mothurOutEndLine(); outputNames.push_back(outputFileName); outputTypes["shared"].push_back(outputFileName);
                m->mothurOutEndLine();
                
+               //set shared file as new current sharedfile
+               string current = "";
+               itTypes = outputTypes.find("shared");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setSharedFile(current); }
+               }
+               
                return 0;
        }
        catch(exception& e) {