Lines Matching refs:strValue
151 bool CIntegerParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
154 bool bValueProvidedAsHexa = !strValue.compare(0, 2, "0x");
159 if (!convertValueFromString(strValue, iData, parameterAccessContext)) {
173 if (!checkValueAgainstRange<int64_t>(strValue, iData, (int32_t)_uiMin, (int32_t)_uiMax, parameterAccessContext, bValueProvidedAsHexa)) {
179 if (!checkValueAgainstRange<uint64_t>(strValue, iData, _uiMin, _uiMax, parameterAccessContext, bValueProvidedAsHexa)) {
190 bool CIntegerParameterType::fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
219 strValue = strStream.str();
369 bool CIntegerParameterType::convertValueFromString(const string& strValue, int64_t& iData, CParameterAccessContext& parameterAccessContext) const {
378 iData = strtoll(strValue.c_str(), &pcStrEnd, 0);
381 iData = strtoull(strValue.c_str(), &pcStrEnd, 0);
388 strError = "Impossible to convert value " + strValue + " for " + getKind();
399 template <typename type> bool CIntegerParameterType::checkValueAgainstRange(const string& strValue, type value, type minValue, type maxValue, CParameterAccessContext& parameterAccessContext, bool bHexaValue) const
405 strStream << "Value " << strValue << " standing out of admitted range [";