]> git.donarmstrong.com Git - mothur.git/blobdiff - optionparser.cpp
get.oturep ifstream
[mothur.git] / optionparser.cpp
index 8f0e29d2deee52f5996da965f12e58dc66572d95..08032b32b83556f7ace0b83e235e51121e80f399 100644 (file)
 
 OptionParser::OptionParser(string option) {
        try {
-               
+               m = MothurOut::getInstance();
                if (option != "") {
                        
                        string key, value;              
                        //reads in parameters and values
                        while((option.find_first_of(',') != -1)) {  //while there are parameters
-                               splitAtComma(value, option);
-                               splitAtEquals(key, value);
+                               m->splitAtComma(value, option);
+                               m->splitAtEquals(key, value);
                                parameters[key] = value;
                        }
                        
                        //in case there is no comma and to get last parameter after comma
-                       splitAtEquals(key, option);
+                       m->splitAtEquals(key, option);
                        parameters[key] = option;
                }
        }
        catch(exception& e) {
-               errorOut(e, "OptionParser", "parse");
+               m->errorOut(e, "OptionParser", "parse");
                exit(1);
        }
 }