Lines Matching defs:value
48 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, bool &value);
51 float &value);
53 std::string &value);
55 std::vector<int> &value);
57 std::vector<std::string> &value);
69 bool GetOptionValue(argsVector &args, std::string optionName, T &value)
72 // so we use a local value first.
74 if constexpr (std::is_same<T, std::vector<std::vector<std::string>>>::value) {
84 // we dont allow empty value
89 value = localValues;
104 HLOGV("not found option, return default value");
109 if constexpr (std::is_same<T, bool>::value) {
110 // for bool we dont need get value.
112 GetValueFromString(optionName, optionName, value);
115 // no value means failed
116 printf("option %s value missed\n", optionName.c_str());
119 // got some value
120 value = localValues;
124 // have value but conver failed.
125 printf("incorrect option value '%s'. View the usage with the --help option.\n",