5 * Created by Sarah Westcott on 6/8/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "optionparser.h"
12 /***********************************************************************/
13 void OptionParser::parse(string option, map<string, string>& container) {
19 //reads in parameters and values
20 while((option.find_first_of(',') != -1)) { //while there are parameters
21 splitAtComma(value, option);
22 splitAtEquals(key, value);
23 container[key] = value;
26 //in case there is no comma and to get last parameter after comma
27 splitAtEquals(key, option);
28 container[key] = option;
32 cout << "Standard Error: " << e.what() << " has occurred in the OptionParser class Function parse. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
36 cout << "An unknown error has occurred in the OptionParser class function parse. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
40 /***********************************************************************/