]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.cpp
adding more error checking for list and group files. outputs missing.names or missin...
[mothur.git] / groupmap.cpp
index dd6f924ccdf661f4c376020e7f5459bc840cf895..6521128016900efe90b8f85b82a808f9f8791709 100644 (file)
@@ -85,3 +85,23 @@ bool GroupMap::isValidGroup(string groupname) {
                exit(1);
        }
 }
+
+/************************************************************/
+vector<string> GroupMap::getNamesSeqs(){
+       try {
+       
+               vector<string> names;
+               
+               for (it = groupmap.begin(); it != groupmap.end(); it++) {
+                       names.push_back(it->first);
+               }
+               
+               return names;
+       }
+       catch(exception& e) {
+               errorOut(e, "GroupMap", "getNamesSeqs");
+               exit(1);
+       }
+}
+/************************************************************/
+