X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/22cb2560274e05e6490cf964cbbeb74a1991c642..80aca6d78d4ff5d514216fe96c44e2ee75c4e933:/projects/stargazer/plugins/other/smux/tables.h?ds=sidebyside diff --git a/projects/stargazer/plugins/other/smux/tables.h b/projects/stargazer/plugins/other/smux/tables.h index a1f97f67..1e27b326 100644 --- a/projects/stargazer/plugins/other/smux/tables.h +++ b/projects/stargazer/plugins/other/smux/tables.h @@ -6,8 +6,11 @@ #include "sensors.h" -class TARIFFS; -class USERS; +namespace STG +{ +struct Tariffs; +struct Users; +} class TableSensor { public: @@ -24,19 +27,18 @@ class TableSensor { class TariffUsersTable : public TableSensor { public: TariffUsersTable(const std::string & p, - TARIFFS & t, - 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: - TARIFFS & tariffs; - USERS & users; + STG::Tariffs & tariffs; + STG::Users & users; }; typedef std::map Tables;