#ifndef GLOBALDATA_HPP
#define GLOBALDATA_HPP
-#include <string>
-#include <vector>
-#include <set>
-#include <iostream>
-#include <iomanip>
-#include <map>
-#include <sstream>
-#include <stdexcept>
-#include <exception>
-
+#include "mothur.h"
#include "groupmap.h"
#include "treemap.h"
TreeMap* gTreemap;
string inputFileName, helpRequest, commandName;
bool allLines;
- vector<string> Estimators; //holds estimators to be used
+ vector<string> Estimators, Groups; //holds estimators to be used
set<int> lines; //hold lines to be used
set<string> labels; //holds labels to be used
- vector<string> Groups;
string getPhylipFile();
string getColumnFile();
string getIters();
string getJumble();
string getFreq();
+ string getAbund();
string getRandomTree();
+ string getGroups();
+
void setListFile(string);
void setPhylipFile(string);
void setColumnFile(string);
void setSabundFile(string);
void setFormat(string);
void setRandomTree(string);
+ void setGroups(string);
void setCalc(string);
void setListVector(ListVector*);
void setSparseMatrix(SparseMatrix*);
+ void clear();
+ void clearLabels();
+ void clearAbund();
+
void parseGlobalData(string, string);
private:
string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, sharedfile, line, label, randomtree, groups;
- string cutoff, format, precision, method, fileroot, iters, jumble, freq, calc;
+ string cutoff, format, precision, method, fileroot, iters, jumble, freq, calc, abund;
+
static GlobalData* _uniqueInstance;
GlobalData( const GlobalData& ); // Disable copy constructor
void operator=( const GlobalData& ); // Disable assignment operator
~GlobalData();
ListVector* gListVector;
SparseMatrix* gSparseMatrix;
- void clear(); //clears all parameters
void reset(); //clears all non filename parameters