From cd109e618baab42a4490851aef6f779612512eea Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Thu, 15 Sep 2016 16:02:22 +0300 Subject: [PATCH 1/1] Ticket 37. 'changePolicyTimeout' field declared in the struct TARIFF_CONF and added in constructors. --- include/stg/tariff_conf.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/stg/tariff_conf.h b/include/stg/tariff_conf.h index cee3b4a5..a33247d6 100644 --- a/include/stg/tariff_conf.h +++ b/include/stg/tariff_conf.h @@ -149,6 +149,7 @@ struct TARIFF_CONF std::string name; TARIFF::PERIOD period; TARIFF::CHANGE_POLICY changePolicy; + time_t changePolicyTimeout; TARIFF_CONF() : fee(0), @@ -157,7 +158,8 @@ struct TARIFF_CONF passiveCost(0), name(), period(TARIFF::MONTH), - changePolicy(TARIFF::ALLOW) + changePolicy(TARIFF::ALLOW), + changePolicyTimeout(0) {} TARIFF_CONF(const std::string & n) @@ -167,7 +169,8 @@ struct TARIFF_CONF passiveCost(0), name(n), period(TARIFF::MONTH), - changePolicy(TARIFF::ALLOW) + changePolicy(TARIFF::ALLOW), + changePolicyTimeout(0) {} }; //----------------------------------------------------------------------------- -- 2.44.2