status_t Preferences::SetFloat (const char *name, float f) { if (HasFloat (name) == true) return ReplaceFloat (name, 0, f); return AddFloat(name, f); }
status_t AttributeMessage::SetAttribute(const char* name, float value) { if (ReplaceFloat(name, value) == B_OK) return B_OK; return AddFloat(name, value); }
void PSettings::SetFloat(const char *name,float value) { float old; status_t s=FindFloat(name,&old); if(s==B_OK)ReplaceFloat(name,value); else AddFloat(name,value); }
void Preferences::SaveFloat(float val, const char* name) { Lock(); if (HasFloat(name)) ReplaceFloat(name, val); else AddFloat(name, val); Unlock(); }
status_t TPreferences::SetFloat(const char *name, float f) { if (HasFloat(name)) { return ReplaceFloat(name, 0, f); } return AddFloat(name, f); }