]> git.donarmstrong.com Git - mothur.git/blob - groupmap.h
Initial revision
[mothur.git] / groupmap.h
1 #ifndef GROUPMAP_H
2 #define GROUPMAP_H
3 /*
4  *  groupmap.h
5  *  Dotur
6  *
7  *  Created by Sarah Westcott on 12/1/08.
8  *  Copyright 2008 __MyCompanyName__. All rights reserved.
9  *
10  */
11
12 #include <Carbon/Carbon.h>
13 #include <map>
14 #include <string>
15 #include <iostream>
16 #include <fstream>
17 #include "utilities.hpp"
18
19
20 class GroupMap {
21 public:
22         GroupMap(string);
23         ~GroupMap();
24         void readMap();
25         int getNumGroups();
26         string getGroup(string);
27         vector<string> namesOfGroups;
28         
29         
30 private:
31         ifstream fileHandle;
32         string groupFileName;
33         int numGroups;
34         map<string, string>::iterator it;
35         void setNamesOfGroups(string); 
36         map<string, string> groupmap; //sequence name and groupname
37 };
38
39 #endif