From: Elena Mamontova Date: Mon, 11 Jul 2016 11:15:38 +0000 (+0300) Subject: Ticket 37. The ChangePolicy existence checking and assign value to X-Git-Tag: 2.409~143 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/2085e9c166c0521254a62aaebbbb7e432834f74d?hp=88e2100a83b2c6c6858e4ac9ee5399a0f6209e94 Ticket 37. The ChangePolicy existence checking and assign value to td.tariffConf.changePolicy added in the CHG_TARIFF::Start() function. --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp index 7444a03f..b33b1305 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp @@ -289,6 +289,12 @@ int CHG_TARIFF::Start(void *, const char * el, const char ** attr) td.tariffConf.period = TARIFF::StringToPeriod(attr[1]); return 0; } + + if (strcasecmp(el, "ChangePolicy") == 0) + { + td.tariffConf.changePolicy = TARIFF::StringToChangePolicy(attr[1]); + return 0; + } } return -1; }