]> git.stg.codes - stg.git/commitdiff
Ticket. AddParser() call for the 'changePolicy' added.
authorElena Mamontova <helenh463@gmail.com>
Fri, 15 Jul 2016 07:13:22 +0000 (10:13 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 15 Jul 2016 07:13:22 +0000 (10:13 +0300)
stglibs/srvconf.lib/parsers/get_tariff.cpp

index a24f287d7eb4767a3eb464b120917769c4710dd0..d929b26631f277fa823e532c23ed49ff1126c0a8 100644 (file)
@@ -156,6 +156,7 @@ GET_TARIFF::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
     AddParser(propertyParsers, "free", info.tariffConf.free);
     AddParser(propertyParsers, "traffType", info.tariffConf.traffType, GetTraffType);
     AddParser(propertyParsers, "period", info.tariffConf.period, GetPeriod);
+    AddParser(propertyParsers, "changePolicy", info.tariffConf.changePolicy, GetChangePolicy);
     for (size_t i = 0; i < DIR_NUM; ++i)
         AddParser(propertyParsers, "time" + unsigned2str(i), info.dirPrice[i], GetTimeSpan);
     AddAOSParser(propertyParsers, "priceDayA", info.dirPrice, &DIRPRICE_DATA::priceDayA, GetSlashedValue);