X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4844bbe6135addc1ffdc33ed0576aebea0153e6d..f907011b4827e85763372cdea76944b3b1cc3fd2:/projects/stargazer/tariff_impl.h diff --git a/projects/stargazer/tariff_impl.h b/projects/stargazer/tariff_impl.h index cdfd7112..b471f0d0 100644 --- a/projects/stargazer/tariff_impl.h +++ b/projects/stargazer/tariff_impl.h @@ -71,6 +71,7 @@ public: double GetPassiveCost() const { return tariffData.tariffConf.passiveCost; } double GetFee() const { return tariffData.tariffConf.fee; } double GetFree() const { return tariffData.tariffConf.free; } + PERIOD GetPeriod() const { return tariffData.tariffConf.period; } void Print() const; @@ -82,10 +83,10 @@ public: int GetThreshold(int dir) const; const TARIFF_DATA & GetTariffData() const { return tariffData; } - TARIFF & operator=(const TARIFF_DATA & td); - TARIFF & operator=(const TARIFF & t); - bool operator==(const TARIFF & rhs) const { return GetName() == rhs.GetName(); } - bool operator!=(const TARIFF & rhs) const { return GetName() != rhs.GetName(); } + TARIFF_IMPL & operator=(const TARIFF_DATA & td); + TARIFF_IMPL & operator=(const TARIFF_IMPL & t); + bool operator==(const TARIFF_IMPL & rhs) const { return GetName() == rhs.GetName(); } + bool operator!=(const TARIFF_IMPL & rhs) const { return GetName() != rhs.GetName(); } private: TARIFF_DATA tariffData;