Lines Matching defs:value
34 bool SetParameter(const std::string& key, const std::string& value)
36 int ret = SystemSetParameter(key.c_str(), value.c_str());
73 std::vector<char> value(MAX_VALUE_LEN);
74 ret = SystemReadParam(key.c_str(), value.data(), &size);
76 return std::string(value.data());
89 std::string value = GetParameter(key, "");
91 if (trueMap[i] == value) {
96 if (falseMap[i] == value) {
103 int GetStringParameter(const std::string &key, std::string &value, const std::string def)
111 value = std::string(data.data());
116 value = std::string(def);
125 if (!std::is_signed<T>::value) {
129 std::string value = GetParameter(key, "");
130 if (!value.empty() && StringToInt(value, min, max, result)) {
144 if (!std::is_unsigned<T>::value) {
148 std::string value = GetParameter(key, "");
149 if (!value.empty() && StringToUint(value, max, result)) {