]> git.donarmstrong.com Git - mothur.git/blobdiff - inputdata.cpp
fixes while testing 1.33.0
[mothur.git] / inputdata.cpp
index ac215ca99438fce1b19416c93942d8c5ef51c6a3..c9142b7a356de09f0fddd89ae5f415993f4795c3 100644 (file)
@@ -19,15 +19,12 @@ InputData::InputData(string fName, string f) : format(f){
        m->openInputFile(fName, fileHandle);
        filename = fName;
        m->saveNextLabel = "";
-       
-       
 }
 /***********************************************************************/
 
 InputData::~InputData(){
        fileHandle.close();
        m->saveNextLabel = "";
-       
 }
 
 /***********************************************************************/
@@ -51,6 +48,7 @@ InputData::InputData(string fName, string orderFileName, string f) : format(f){
        
                m->openInputFile(fName, fileHandle);
                m->saveNextLabel = "";
+               
        }
        catch(exception& e) {
                m->errorOut(e, "InputData", "InputData");
@@ -85,6 +83,7 @@ ListVector* InputData::getListVector(string label){
                ifstream in;
                string  thisLabel;
                m->openInputFile(filename, in);
+        m->saveNextLabel = "";
                
                if(in){
 
@@ -121,6 +120,7 @@ ListVector* InputData::getListVector(string label, bool resetFP){
                string  thisLabel;
                fileHandle.clear();
                fileHandle.seekg(0);
+        m->saveNextLabel = "";
                
                if(fileHandle){
 
@@ -241,6 +241,7 @@ SharedOrderVector* InputData::getSharedOrderVector(string label){
                ifstream in;
                string  thisLabel;
                m->openInputFile(filename, in);
+        m->saveNextLabel = "";
                
                if(in){
 
@@ -323,7 +324,7 @@ OrderVector* InputData::getOrderVector(string label){
                
                if(in){
                        if((format == "list") || (format == "listorder")) {
-                       
+                m->saveNextLabel = "";
                                while (in.eof() != true) {
                                        
                                        input = new ListVector(in);
@@ -337,7 +338,7 @@ OrderVector* InputData::getOrderVector(string label){
                                }
                        }
                        else if (format == "shared")  {
-                               
+                               m->saveNextLabel = "";
                                while (in.eof() != true) {
                                        
                                        input = new SharedListVector(in);
@@ -652,7 +653,7 @@ SAbundVector* InputData::getSAbundVector(string label){
                
                if(in){
                        if (format == "list") {
-                       
+                m->saveNextLabel = "";
                                while (in.eof() != true) {
                                        
                                        input = new ListVector(in);
@@ -666,7 +667,7 @@ SAbundVector* InputData::getSAbundVector(string label){
                                }
                        }
                        else if (format == "shared")  {
-                               
+                               m->saveNextLabel = "";
                                while (in.eof() != true) {
                                        
                                        input = new SharedListVector(in);
@@ -791,6 +792,7 @@ RAbundVector* InputData::getRAbundVector(string label){
                
                if(in){
                        if (format == "list") {
+                m->saveNextLabel = "";
                        
                                while (in.eof() != true) {
                                        
@@ -805,6 +807,7 @@ RAbundVector* InputData::getRAbundVector(string label){
                                }
                        }
                        else if (format == "shared")  {
+                m->saveNextLabel = "";
                                
                                while (in.eof() != true) {