| 142 | } |
| 143 | |
| 144 | float |
| 145 | Parameter::valueFromString(const std::string &str) |
| 146 | { |
| 147 | // atof() and friends are affected by currently configured locale, |
| 148 | // which can change the decimal point character. |
| 149 | std::istringstream istr(str); |
| 150 | istr.imbue(std::locale::classic()); |
| 151 | float value = m::nan; |
| 152 | istr >> value; |
| 153 | return value; |
| 154 | } |
| 155 | |
| 156 | const std::string |
| 157 | Parameter::getStringValue() const |
nothing calls this directly
no outgoing calls
no test coverage detected