X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9701b7ab4dc4cd709ad4dcaa750fc0021f15e231..daeeee5daf8488c1abd98d5a361356be873e4ac0:/include/stg/tariffs.h?ds=inline diff --git a/include/stg/tariffs.h b/include/stg/tariffs.h index 1f91948f..b492833b 100644 --- a/include/stg/tariffs.h +++ b/include/stg/tariffs.h @@ -26,20 +26,21 @@ class ADMIN; class TARIFF; -class TARIFF_DATA; +struct TARIFF_DATA; class TARIFFS { public: virtual int ReadTariffs () = 0; virtual const TARIFF * FindByName(const std::string & name) const = 0; virtual const TARIFF * GetNoTariff() const = 0; - virtual int GetTariffsNum() const = 0; virtual int Del(const std::string & name, const ADMIN * admin) = 0; virtual int Add(const std::string & name, const ADMIN * admin) = 0; virtual int Chg(const TARIFF_DATA & td, const ADMIN * admin) = 0; virtual void GetTariffsData(std::list * tdl) = 0; + virtual size_t Count() const = 0; + virtual const std::string & GetStrError() const = 0; };