Lines Matching defs:pValue
335 static ValueType NativeValueToCValueType(const PreferencesValue &pValue, int32_t &code)
338 if (pValue.IsInt()) {
339 v.integer = (int64_t)std::get<int>(pValue.value_);
341 } else if (pValue.IsLong()) {
342 v.integer = std::get<int64_t>(pValue.value_);
344 } else if (pValue.IsFloat()) {
345 v.float64 = (double)std::get<float>(pValue.value_);
347 } else if (pValue.IsDouble()) {
348 v.float64 = std::get<double>(pValue.value_);
350 } else if (pValue.IsString()) {
351 auto pValueStr = std::get<std::string>(pValue.value_);
355 } else if (pValue.IsBool()) {
356 v.boolean = std::get<bool>(pValue.value_);
358 } else if (pValue.IsBoolArray()) {
359 auto boolVector = std::get<std::vector<bool>>(pValue.value_);
362 } else if (pValue.IsDoubleArray()) {
363 auto doubleVector = std::get<std::vector<double>>(pValue.value_);
366 } else if (pValue.IsStringArray()) {
367 auto stringVector = std::get<std::vector<std::string>>(pValue.value_);