X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c016156ebb870d9d81219b8c4165aa75703f1e85..8b54174e148840e1cd7412f3018cbb5b55cbb7c1:/projects/stargazer/plugins/other/smux/tables.h?ds=inline diff --git a/projects/stargazer/plugins/other/smux/tables.h b/projects/stargazer/plugins/other/smux/tables.h index ad3b55a3..1e27b326 100644 --- a/projects/stargazer/plugins/other/smux/tables.h +++ b/projects/stargazer/plugins/other/smux/tables.h @@ -6,9 +6,15 @@ #include "sensors.h" +namespace STG +{ +struct Tariffs; +struct Users; +} + class TableSensor { public: - TableSensor(const std::string & p) : prefix(p) {} + explicit TableSensor(const std::string & p) : prefix(p) {} virtual ~TableSensor() {} const std::string & GetPrefix() const { return prefix; } @@ -21,16 +27,18 @@ class TableSensor { class TariffUsersTable : public TableSensor { public: TariffUsersTable(const std::string & p, - USERS & u) + STG::Tariffs & t, + STG::Users & u) : TableSensor(p), + tariffs(t), users(u) {} - virtual ~TariffUsersTable() {} - void UpdateSensors(Sensors & sensors) const; + void UpdateSensors(Sensors & sensors) const override; private: - USERS & users; + STG::Tariffs & tariffs; + STG::Users & users; }; typedef std::map Tables;