Lines Matching refs:def
67 std::string GetParameter(const std::string& key, const std::string& def) in GetParameter() argument
78 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) { in GetParameter()
79 return std::string(def); in GetParameter()
84 bool GetBoolParameter(const std::string& key, bool def) in GetBoolParameter() argument
99 return def; in GetBoolParameter()
102 int GetStringParameter(const std::string &key, std::string &value, const std::string def) in GetStringParameter() argument
114 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) { in GetStringParameter()
115 value = std::string(def); in GetStringParameter()
122 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() argument
125 return def; in GetIntParameter()
132 return def; in GetIntParameter()
141 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() argument
144 return def; in GetUintParameter()
151 return def; in GetUintParameter()
176 int GetIntParameter(const std::string &key, int def) in GetIntParameter() argument
178 return GetIntParameter(key, def, INT_MIN, INT_MAX); in GetIntParameter()