X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a8f9a1d87d5c6847b368984454c09c597757aba2..545144ff27b72a73d5c302c950901afedb249a01:/include/stg/tariff_conf.h?ds=sidebyside diff --git a/include/stg/tariff_conf.h b/include/stg/tariff_conf.h index d8684bd9..cee3b4a5 100644 --- a/include/stg/tariff_conf.h +++ b/include/stg/tariff_conf.h @@ -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;