Lines Matching defs:value
47 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, bool &value);
48 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, int &value);
49 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, float &value);
50 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, std::string &value);
65 bool GetOptionValue(argsVector &args, std::string optionName, T &value)
68 // so we use a local value first.
70 if constexpr (std::is_same<T, std::vector<std::vector<std::string>>>::value) {
80 // we don't allow empty value
85 value = localValues;
100 HLOGV("not found option, return default value");
105 if constexpr (std::is_same<T, bool>::value) {
106 // for bool we don't need get value.
108 GetValueFromString(optionName, optionName, value);
111 // no value means failed
112 printf("option %s value missed\n", optionName.c_str());
115 // got some value
116 value = localValues;
120 // have value but convert failed.
121 printf("incorrect option value '%s' for option '%s'. View the usage with the --help option.\n",