]> git.donarmstrong.com Git - mothur.git/blobdiff - readotu.cpp
added getCommandInfoCommand for gui
[mothur.git] / readotu.cpp
index 84132ae5bdecda6f1e967dffdbeb284cfd281f23..5cb52bb8d8333e171d7e6de16b1e83057ff4d558 100644 (file)
@@ -9,14 +9,14 @@
 
 #include "readotu.h"
 
-/***********************************************************************/
+/***********************************************************************
 
 ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
-       
-       //openInputFile(philFile, fileHandle);
+       m = MothurOut::getInstance();
+       //m->openInputFile(philFile, fileHandle);
 }
 
-/***********************************************************************/
+/***********************************************************************
 //This function reads the list, rabund or sabund files to be used by collect and rarefact command.
 void ReadOTUFile::read(GlobalData* globaldata){
        try {
@@ -35,7 +35,7 @@ void ReadOTUFile::read(GlobalData* globaldata){
                //memory leak prevention
                //if (globaldata->ginput != NULL) { delete globaldata->ginput;  }
                globaldata->ginput = input;     //saving to be used by collector and rarefact commands.
-       
+
                if ((globaldata->getFormat() == "list") || (globaldata->getFormat() == "rabund") || (globaldata->getFormat() == "sabund")) {//you are reading a list, rabund or sabund file for collect, rarefaction or summary.
 
 //cout << input << '\t' << globaldata << endl;
@@ -70,12 +70,12 @@ void ReadOTUFile::read(GlobalData* globaldata){
                }
        }
        catch(exception& e) {
-               errorOut(e, "ReadOTUFile", "read");
+               m->errorOut(e, "ReadOTUFile", "read");
                exit(1);
        }
 }
 
-/***********************************************************************/
+/***********************************************************************
 
 ReadOTUFile::~ReadOTUFile(){
 //     delete input;