13 class SharedListVector;
24 static GlobalData* getInstance();
25 ListVector* getListVector();
26 SparseMatrix* getSparseMatrix();
31 SharedListVector* gSharedList;
35 string inputFileName, helpRequest, commandName;
37 vector<string> singleEstimators, summaryEstimators, sharedEstimators, rareEstimators, sharedRareEstimators, sharedSummaryEstimators; //holds estimators to be used
38 set<int> lines; //hold lines to be used
39 set<string> labels; //holds labels to be used
41 string getPhylipFile();
42 string getColumnFile();
44 string getRabundFile();
45 string getSabundFile();
47 string getGroupFile();
48 string getOrderFile();
49 string getFastaFile();
53 string getPrecision();
59 void setListFile(string);
60 void setPhylipFile(string);
61 void setColumnFile(string);
62 void setNameFile(string);
63 void setRabundFile(string);
64 void setSabundFile(string);
65 void setFormat(string);
68 void setListVector(ListVector*);
69 void setSparseMatrix(SparseMatrix*);
72 void parseGlobalData(string, string);
73 void splitAtEquals(string&, string&);
74 void splitAtComma(string&, string&);
75 void splitAtDash(string&, vector<string>&);
76 void splitAtDash(string&, set<int>&);
77 void splitAtDash(string&, set<string>&);
80 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, line, label;
81 string cutoff, format, precision, method, fileroot, iters, jumble, freq, single, rarefaction, shared, summary, sharedsummary, sharedrarefaction;
82 static GlobalData* _uniqueInstance;
83 GlobalData( const GlobalData& ); // Disable copy constructor
84 void operator=( const GlobalData& ); // Disable assignment operator
87 ListVector* gListVector;
88 SparseMatrix* gSparseMatrix;
93 //**********************************************************************************************************************