]> git.donarmstrong.com Git - mothur.git/blobdiff - globaldata.cpp
working on testing
[mothur.git] / globaldata.cpp
index 8f8d1ad5da1addc5dac09f68c6dec5a5b99c1568..b18324b8766f9d498295a6e630caaec1b5cc9595 100644 (file)
@@ -26,8 +26,10 @@ string GlobalData::getSabundFile()           {       return sabundfile;              }
 string GlobalData::getNameFile()               {       return namefile;                }
 string GlobalData::getGroupFile()              {       return groupfile;               }
 string GlobalData::getOrderFile()              {       return orderfile;               }
+string GlobalData::getOrderGroupFile() {       return ordergroup;              }
 string GlobalData::getTreeFile()               {       return treefile;                }
 string GlobalData::getSharedFile()             {       return sharedfile;              }       
+string GlobalData::getRelAbundFile()   {       return relAbundfile;    }       
 string GlobalData::getFormat()                 {       return format;                  }
 
 void GlobalData::setListFile(string file)              {       listfile = file;        inputFileName = file;                                   }
@@ -38,8 +40,10 @@ void GlobalData::setPhylipFile(string file)          {       phylipfile = file;    inputFileNa
 void GlobalData::setColumnFile(string file)            {       columnfile = file;    inputFileName = file;                                     }
 void GlobalData::setGroupFile(string file)             {       groupfile = file;                                                                                       }
 void GlobalData::setSharedFile(string file)            {       sharedfile = file;      inputFileName = file;                                   }
+void GlobalData::setRelAbundFile(string file)  {       relAbundfile = file;    inputFileName = file;                           }
 void GlobalData::setNameFile(string file)              {       namefile = file;                }
 void GlobalData::setOrderFile(string file)             {       orderfile = file;               }
+void GlobalData::setOrderGroupFile(string file)        {       ordergroup = file;              }
 void GlobalData::setFormat(string Format)              {       format = Format;                }
 
 
@@ -47,6 +51,7 @@ void GlobalData::setFormat(string Format)             {       format = Format;                }
 
 /******************************************************/
 GlobalData::GlobalData() {
+       m = MothurOut::getInstance();
        //option definitions should go here...
        clear();
        gListVector = NULL;             
@@ -62,6 +67,7 @@ GlobalData::GlobalData() {
        gTreemap = NULL;
        gSequenceDB = NULL;
        nameMap = NULL;
+       saveNextLabel = "";
 }
 /*******************************************************/
 
@@ -76,9 +82,13 @@ void GlobalData::clear() {
        namefile                =       ""; //do we need this?
        groupfile               =       ""; //do we need this?
        orderfile               =       "";
+       ordergroup              =       "";
 //     fastafile               =   ""; //do we need this?
        treefile                =       "";
        sharedfile              =       "";
+       relAbundfile    =       "";
+       format = "";
+       saveNextLabel = "";
 }
 
 
@@ -126,7 +136,7 @@ void GlobalData::newRead() {
                        names.clear();
        }
        catch(exception& e) {
-               errorOut(e, "GlobalData", "newRead");
+               m->errorOut(e, "GlobalData", "newRead");
                exit(1);
        }
 }
@@ -152,7 +162,7 @@ GlobalData::~GlobalData() {
                if (nameMap != NULL) { delete nameMap; nameMap = NULL; }
        }
        catch(exception& e) {
-               errorOut(e, "GlobalData", "~GlobalData");
+               m->errorOut(e, "GlobalData", "~GlobalData");
                exit(1);
        }
 }