Home | History | Annotate | Download | only in parameter

Lines Matching refs:strValue

116 bool CFixedPointParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
118 bool bValueProvidedAsHexa = isHexadecimal(strValue);
132 return convertFromHexadecimal(strValue, uiValue, parameterAccessContext);
135 return convertFromDecimal(strValue, uiValue, parameterAccessContext);
137 return convertFromQnm(strValue, uiValue, parameterAccessContext);
140 void CFixedPointParameterType::setOutOfRangeError(const string& strValue, CParameterAccessContext& parameterAccessContext) const
144 strStream << "Value " << strValue << " standing out of admitted ";
163 if (isHexadecimal(strValue)) {
184 bool CFixedPointParameterType::fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
219 strValue = strStream.str();
277 bool CFixedPointParameterType::isHexadecimal(const string& strValue) const
279 return !strValue.compare(0, 2, "0x");
282 bool CFixedPointParameterType::convertFromHexadecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
286 if (!convertTo(strValue, uiData) || !isEncodable(uiData, false)) {
288 setOutOfRangeError(strValue, parameterAccessContext);
300 bool CFixedPointParameterType::convertFromDecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const
304 if (!convertTo(strValue, iData) || !isEncodable((uint32_t)iData, true)) {
306 setOutOfRangeError(strValue, parameterAccessContext);
314 bool CFixedPointParameterType::convertFromQnm(const string& strValue, uint32_t& uiValue,
319 if (!convertTo(strValue, dData) || !checkValueAgainstRange(dData)) {
321 setOutOfRangeError(strValue, parameterAccessContext);