From 2085e9c166c0521254a62aaebbbb7e432834f74d Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 11 Jul 2016 14:15:38 +0300 Subject: [PATCH 1/1] Ticket 37. The ChangePolicy existence checking and assign value to td.tariffConf.changePolicy added in the CHG_TARIFF::Start() function. --- .../plugins/configuration/sgconfig/parser_tariffs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.44.2