Lines Matching defs:def
68 std::string GetParameter(const std::string& key, const std::string& def)
79 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) {
80 return std::string(def);
85 bool GetBoolParameter(const std::string& key, bool def)
100 return def;
103 int GetStringParameter(const std::string &key, std::string &value, const std::string def)
115 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) {
116 value = std::string(def);
123 T GetIntParameter(const std::string& key, T def, T min, T max)
126 return def;
133 return def;
142 T GetUintParameter(const std::string& key, T def, T max)
145 return def;
152 return def;
180 int GetIntParameter(const std::string &key, int def)
182 return GetIntParameter(key, def, INT_MIN, INT_MAX);