21 #ifndef COMMAND_LINE_PROCESSING 22 #define COMMAND_LINE_PROCESSING 31 for (
unsigned int i= 0; i < s.length(); i++) {
39 for (
unsigned int i= 0; i < s.length(); i++) {
48 size_t pos= sop.find(
"=");
49 if (pos == string::npos) {
52 option= sop.substr(0,pos);
60 size_t pos= sop.find(
"=");
61 if (pos == string::npos) {
64 string sval= sop.substr(pos+1);
65 int tmpval= atoi(sval.c_str());
66 if ((tmpval != 0) && (tmpval != 1)) {
77 size_t pos= sop.find(
"=");
78 if (pos == string::npos) {
81 val= sop.substr(pos+1);
int extract_string_value(char *op, string &val)
Definition: command_line_processing.h:74
int extract_option(char *op, string &option)
Definition: command_line_processing.h:45
string toUpper(string s)
Definition: command_line_processing.h:29
int extract_bool_value(char *op, unsigned int &val)
Definition: command_line_processing.h:57
string toLower(string s)
Definition: command_line_processing.h:37
string option
Definition: parse_options.h:6