Merge pull request #18 from john30/master; first version supporting get, set, and cyc again.
This commit is contained in:
@@ -160,6 +160,9 @@ void Appl::setOptVal(const char* option, const string value, DataType datatype)
|
||||
case dt_bool:
|
||||
m_optvals[option] = true;
|
||||
break;
|
||||
case dt_hex:
|
||||
m_optvals[option] = strtol(value.c_str(), NULL, 16);
|
||||
break;
|
||||
case dt_int:
|
||||
m_optvals[option] = strtol(value.c_str(), NULL, 10);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user