]> git.stg.codes - stg.git/commitdiff
Ticket 37. The ChangePolicy existence checking and assign value to
authorElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 11:15:38 +0000 (14:15 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 11:15:38 +0000 (14:15 +0300)
td.tariffConf.changePolicy added in the CHG_TARIFF::Start() function.

projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp

index 7444a03f959d23d2f7f0a9264ed8bf937e410d28..b33b1305ca4e02789427882c2334f87cfb692c64 100644 (file)
@@ -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;
 }