]> git.stg.codes - stg.git/blobdiff - include/stg/tariff_conf.h
Ticket 37. Cycle for added in the TARIFF_DATA_RES & operator() in struct
[stg.git] / include / stg / tariff_conf.h
index d8684bd9de352e351ea18fb0b6028e74616ee6ce..cee3b4a5237d9f446caec2580cd6ef7c6fde54c2 100644 (file)
@@ -255,6 +255,14 @@ struct TARIFF_DATA_RES
           dirPrice(DIR_NUM)
         {}
 
+    TARIFF_DATA_RES & operator=(const TARIFF_DATA & td)
+        {
+        tariffConf = td.tariffConf;
+        for (size_t i = 0; i < DIR_NUM; ++i)
+            dirPrice[i] = td.dirPrice[i];
+        return *this;
+        }
+
     TARIFF_DATA GetData() const
         {
         TARIFF_DATA td;