|
|
|
|
@ -230,6 +230,17 @@ int JSONParse::GetValueInt64(std::string varname, int64_t *dest) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int JSONParse::GetValueDouble(std::string varname, double *dest) {
|
|
|
|
|
std::string s;
|
|
|
|
|
int res = GetValue(varname, &s);
|
|
|
|
|
if (res) {
|
|
|
|
|
*dest = atof (s.c_str());
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int JSONParse::GetValueString(std::string varname, std::string *dest) {
|
|
|
|
|
std::string s;
|
|
|
|
|
int res = GetValue(varname, &s);
|
|
|
|
|
|