]> git.donarmstrong.com Git - mothur.git/blob - globaldata.hpp
e125e6f3d7032d78d2b1330dece6cf909a6bf320
[mothur.git] / globaldata.hpp
1 #ifndef GLOBALDATA_HPP
2 #define GLOBALDATA_HPP
3
4 #include "mothur.h"
5 #include "groupmap.h"
6 #include "treemap.h"
7 #include "rabundvector.hpp"
8 #include "sabundvector.hpp"
9 #include "listvector.hpp"
10 #include "tree.h"
11 #include "sparsematrix.hpp"
12 #include "sequencedb.h"
13
14
15 class ListVector;
16 class SharedListVector;
17 class SparseMatrix;
18 class FullMatrix;
19 class Tree;
20 class OrderVector;
21 class InputData;
22 class GroupMap;
23 class TreeMap;
24 class SAbundVector;
25 class RAbundVector;
26 class SequenceDB;
27
28 class GlobalData {
29 public:
30         static GlobalData* getInstance();
31         ListVector* gListVector;
32         SparseMatrix* gSparseMatrix;
33         InputData* ginput;
34         OrderVector* gorder;
35         ListVector* glist;
36         vector<Tree*> gTree;
37         SharedListVector* gSharedList;
38         SAbundVector* sabund;
39         RAbundVector* rabund;
40         GroupMap* gGroupmap;
41         FullMatrix* gMatrix;
42         TreeMap* gTreemap;
43         SequenceDB* gSequenceDB;
44         string inputFileName, argv;
45         bool allLines, runParse, jumble;
46         vector<string>  Estimators, Groups; //holds estimators to be used
47         set<string> labels; //holds labels to be used
48         vector<string> Treenames;
49         
50         
51         string getPhylipFile();
52         string getColumnFile();
53         string getListFile();
54         string getRabundFile();
55         string getSabundFile();
56         string getNameFile();   //do we need this?
57         string getGroupFile();  //do we need this?
58         string getOrderFile();
59         string getTreeFile();
60         string getSharedFile();
61         string getFormat();     //do we need this?
62
63
64         void setListFile(string);
65         void setTreeFile(string);
66         void setGroupFile(string);              //do we need this?
67         void setPhylipFile(string);
68         void setColumnFile(string);
69         void setNameFile(string);       //do we need this?
70         void setRabundFile(string);
71         void setSabundFile(string);
72         void setSharedFile(string);
73         void setOrderFile(string file);
74         void setFormat(string); //do we need this?
75         
76         void clear(); 
77         void clearLabels();
78         void clearAbund();
79         
80         void newRead();
81         
82 private:
83
84         string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, treefile, sharedfile, format;
85
86         static GlobalData* _uniqueInstance;
87         GlobalData( const GlobalData& ); // Disable copy constructor
88         void operator=( const GlobalData& ); // Disable assignment operator
89         GlobalData();
90         ~GlobalData();
91         
92         
93 };
94
95 #endif