MCPcopy Create free account
hub / github.com/davy7125/polyphone / parse

Method parse

sources/context/tuningprogrammanager.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool 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
55QString TuningProgram::getDescription()
56{

Callers 1

TuningProgramManagerMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected