]> git.stg.codes - stg.git/blobdiff - include/stg/tariff_conf.h
Ticket 37. The testobject::test<10>() function added.
[stg.git] / include / stg / tariff_conf.h
index d8684bd9de352e351ea18fb0b6028e74616ee6ce..cee3b4a5237d9f446caec2580cd6ef7c6fde54c2 100644 (file)
@@ -255,6 +255,14 @@ struct TARIFF_DATA_RES
           dirPrice(DIR_NUM)
         {}
 
           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;
     TARIFF_DATA GetData() const
         {
         TARIFF_DATA td;