Added fromString for integer types.

This commit is contained in:
Branimir Karadžić
2017-09-09 00:06:58 -07:00
parent 9eb9468454
commit 11a8624dd8
6 changed files with 88 additions and 8 deletions

View File

@@ -197,7 +197,7 @@ namespace bx
const char* arg = findOption(_short, _long, 1);
if (NULL != arg)
{
_value = atoi(arg);
fromString(&_value, arg);
return true;
}
@@ -209,7 +209,7 @@ namespace bx
const char* arg = findOption(_short, _long, 1);
if (NULL != arg)
{
_value = atoi(arg);
fromString(&_value, arg);
return true;
}
@@ -221,7 +221,7 @@ namespace bx
const char* arg = findOption(_short, _long, 1);
if (NULL != arg)
{
_value = float(atof(arg));
fromString(&_value, arg);
return true;
}
@@ -233,7 +233,7 @@ namespace bx
const char* arg = findOption(_short, _long, 1);
if (NULL != arg)
{
_value = atof(arg);
fromString(&_value, arg);
return true;
}