From: Maxim Mamontov Date: Thu, 29 May 2014 14:37:19 +0000 (+0300) Subject: Serialize period info. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0eb93798fdb7b37b7d43b92b5166e0ca4dac98b9?hp=e2febecbf870fcad830d00d2908f0febb5a2ea93 Serialize period info. --- diff --git a/stglibs/srvconf.lib/parsers/chg_tariff.cpp b/stglibs/srvconf.lib/parsers/chg_tariff.cpp index cb7d9475..b2bc52d6 100644 --- a/stglibs/srvconf.lib/parsers/chg_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/chg_tariff.cpp @@ -68,6 +68,13 @@ if (!data.tariffConf.traffType.empty()) case TRAFF_MAX: stream << ""; break; } +if (!data.tariffConf.period.empty()) + switch (data.tariffConf.period.data()) + { + case TARIFF::DAY: stream << ""; break; + case TARIFF::MONTH: stream << ""; break; + } + for (size_t i = 0; i < DIR_NUM; ++i) if (!data.dirPrice[i].hDay.empty() && !data.dirPrice[i].mDay.empty() &&