Ticket 37. RESETABLE<time_t>changePolicyTimeout field declared in the struct
authorElena Mamontova <helenh463@gmail.com>
Thu, 15 Sep 2016 13:38:57 +0000 (16:38 +0300)
committerElena Mamontova <helenh463@gmail.com>
Thu, 15 Sep 2016 13:38:57 +0000 (16:38 +0300)
TARIFF_CONF_RES and added in constructor, operator and GetData()
function.

include/stg/tariff_conf.h

index a33247d..79ade2e 100644 (file)
@@ -183,7 +183,8 @@ struct TARIFF_CONF_RES
           passiveCost(),
           name(),
           period(),
-          changePolicy()
+          changePolicy(),
+          changePolicyTimeout()
         {}
 
     TARIFF_CONF_RES & operator=(const TARIFF_CONF & tc)
@@ -195,6 +196,7 @@ struct TARIFF_CONF_RES
         name        = tc.name;
         period      = tc.period;
         changePolicy = tc.changePolicy;
+        changePolicyTimeout = tc.changePolicyTimeout;
         return *this;
         }
 
@@ -208,6 +210,7 @@ struct TARIFF_CONF_RES
         traffType.maybeSet(tc.traffType);
         period.maybeSet(tc.period);
         changePolicy.maybeSet(tc.changePolicy);
+        changePolicyTimeout.maybeSet(tc.changePolicyTimeout);
         return tc;
         }
 
@@ -218,6 +221,7 @@ struct TARIFF_CONF_RES
     RESETABLE<std::string>        name;
     RESETABLE<TARIFF::PERIOD>     period;
     RESETABLE<TARIFF::CHANGE_POLICY> changePolicy;
+    RESETABLE<time_t>             changePolicyTimeout;
 };
 //-----------------------------------------------------------------------------
 struct TARIFF_DATA