]> git.donarmstrong.com Git - mothur.git/blobdiff - sequence.cpp
created mothurOut class to handle logfiles
[mothur.git] / sequence.cpp
index 752e081e367fc6d572b5622e0b4eb6003a28f9bb..94caf65eafc40564fbbb04e9721cf385222c8e45 100644 (file)
@@ -12,6 +12,7 @@
 /***********************************************************************/
 
 Sequence::Sequence(){
+       m = MothurOut::getInstance();
        initialize();
 }
 
@@ -81,7 +82,7 @@ string Sequence::getSequenceString(ifstream& fastaFile) {
                return sequence;
        }
        catch(exception& e) {
-               errorOut(e, "Sequence", "getSequenceString");
+               m->errorOut(e, "Sequence", "getSequenceString");
                exit(1);
        }
 }
@@ -103,7 +104,7 @@ string Sequence::getCommentString(ifstream& fastaFile) {
                return sequence;
        }
        catch(exception& e) {
-               errorOut(e, "Sequence", "getCommentString");
+               m->errorOut(e, "Sequence", "getCommentString");
                exit(1);
        }
 }