]> git.stg.codes - stg.git/commitdiff
Ticket 37. 'changePolicyTimeout' field declared in the struct
authorElena Mamontova <helenh463@gmail.com>
Thu, 15 Sep 2016 13:02:22 +0000 (16:02 +0300)
committerElena Mamontova <helenh463@gmail.com>
Thu, 15 Sep 2016 13:02:22 +0000 (16:02 +0300)
TARIFF_CONF and added in constructors.

include/stg/tariff_conf.h

index cee3b4a5237d9f446caec2580cd6ef7c6fde54c2..a33247d66b897096cbb0d255a7d45cc135a47429 100644 (file)
@@ -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)
         {}
 };
 //-----------------------------------------------------------------------------