Lines Matching defs:val
344 printf("SimPref: evaluating as bool name='%s' val='%s'\n",
356 int val;
357 if (pElem != NULL && pElem->Attribute(kValue, &val) != NULL) {
358 *pInt = val;
366 double val;
367 if (pElem != NULL && pElem->Attribute(kValue, &val) != NULL) {
368 *pDouble = val;
376 const char* val;
378 val = pElem->Attribute(kValue);
379 if (val != NULL) {
380 str = wxString::FromAscii(val);
426 void Preferences::SetBool(const char* name, bool val)
429 if (GetBool(name, &oldVal) && val == oldVal)
432 SetString(name, val ? "true" : "false");
436 void Preferences::SetInt(const char* name, int val)
439 if (GetInt(name, &oldVal) && val == oldVal)
445 pElem->SetAttribute(kValue, val);
449 void Preferences::SetDouble(const char* name, double val)
452 if (GetDouble(name, &oldVal) && val == oldVal)
458 pElem->SetDoubleAttribute(kValue, val);
462 void Preferences::SetString(const char* name, const char* val)
465 if (GetString(name, /*ref*/oldVal) && strcmp(oldVal.ToAscii(), val) == 0)
471 pElem->SetAttribute(kValue, val);