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?ds=sidebyside;hp=-c Ticket 37. The ChangePolicy existence checking and assign value to td.tariffConf.changePolicy added in the CHG_TARIFF::Start() function. --- 2085e9c166c0521254a62aaebbbb7e432834f74d 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; }