/***********************************************************************/
ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
-
- //openInputFile(philFile, fileHandle);
+ m = MothurOut::getInstance();
+ //m->openInputFile(philFile, fileHandle);
}
/***********************************************************************/
//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;
//memory leak prevention
//if (globaldata->gSharedList != NULL) { delete globaldata->gSharedList; }
globaldata->gSharedList = SharedList;
+ delete inputSabund;
+ delete inputRabund;
+ delete inputList;
}
}
catch(exception& e) {
- errorOut(e, "ReadOTUFile", "read");
+ m->errorOut(e, "ReadOTUFile", "read");
exit(1);
}
}