Rev 191 | Rev 194 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 191 | Rev 192 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | 20 | ||
21 | 21 | ||
22 | void StandLoader::processInit() |
22 | void StandLoader::processInit() |
23 | {
|
23 | {
|
24 | GlobalSettings *g = GlobalSettings::instance(); |
24 | GlobalSettings *g = GlobalSettings::instance(); |
25 | const XmlHelper &xml = g->settings(); |
- | |
- | 25 | XmlHelper xml(g->settings().node("model.initialization")); |
|
26 | 26 | ||
27 | bool for_each_ru = xml.valueBool("model.initialization.foreach"); |
- | |
- | 27 | bool for_each_ru = xml.valueBool("foreach"); |
|
28 | 28 | ||
29 | QString mode = xml.value("model.initialization.type", ""); // now only "picus" |
- | |
30 | QString fileName = xml.value("model.initialization.file", ""); |
- | |
- | 29 | QString mode = xml.value("type", ""); // now only "picus" |
|
- | 30 | QString fileName = xml.value("file", ""); |
|
31 | if (!QFile::exists(fileName)) |
31 | if (!QFile::exists(fileName)) |
32 | throw IException(QString("File %1 does not exist!").arg(fileName)); |
32 | throw IException(QString("File %1 does not exist!").arg(fileName)); |
33 | 33 | ||
34 | Tree::resetStatistics(); |
34 | Tree::resetStatistics(); |
35 | if (for_each_ru) { |
35 | if (for_each_ru) { |