]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.cpp
removed line option
[mothur.git] / groupmap.cpp
index 38addc92f41487c3b715c7c7cbb7f03443dda24a..6521128016900efe90b8f85b82a808f9f8791709 100644 (file)
@@ -81,11 +81,27 @@ bool GroupMap::isValidGroup(string groupname) {
                return false;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the GroupMap class Function isValidGroup. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               errorOut(e, "GroupMap", "isValidGroup");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the GroupMap class function isValidGroup. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+}
+
+/************************************************************/
+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);
        }
 }
+/************************************************************/
+