]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.h
added get.oturep command
[mothur.git] / groupmap.h
index a3b923cd4da60ce601c58d1553e2a95f6b9f4ab9..20048a59a5f5aaa3658dd5697f26e3f255a978e1 100644 (file)
@@ -9,10 +9,7 @@
  *
  */
 
-#include <map>
-#include <string>
-#include <iostream>
-#include <fstream>
+#include "mothur.h"
 #include "utilities.hpp"
 
 /* This class is a representation of the groupfile.  It is used by all the shared commands to determine what group a 
 
 class GroupMap {
 public:
+       GroupMap() {};
        GroupMap(string);
        ~GroupMap();
        void readMap();
        int getNumGroups();
+       bool isValidGroup(string);  //return true if string is a valid group
        string getGroup(string);
+       void setGroup(string, string);
        vector<string> namesOfGroups;
+       map<string, int> groupIndex;  //groupname, vectorIndex in namesOfGroups. - used by collectdisplays.
                
 private:
        ifstream fileHandle;
        string groupFileName;
-       int numGroups;
+       int index;
        map<string, string>::iterator it;
        void setNamesOfGroups(string); 
        map<string, string> groupmap; //sequence name and groupname