| 35 | } |
| 36 | |
| 37 | bool TuningProgram::parse(QString description) |
| 38 | { |
| 39 | QStringList split = description.split(','); |
| 40 | if (split.count() != 13) |
| 41 | return false; |
| 42 | |
| 43 | this->_name = split[0]; |
| 44 | bool ok; |
| 45 | for (int i = 1; i <= 12; i++) |
| 46 | { |
| 47 | _deviations[i - 1] = split[i].toFloat(&ok); |
| 48 | if (!ok) |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | QString TuningProgram::getDescription() |
| 56 | { |
no test coverage detected