X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8c6fa3fbaccc22127280bf77a48fab5a3ee0716e..46b0747592074017ff0ea4b33d4a7194235886e5:/projects/stargazer/plugins/other/smux/tables.h diff --git a/projects/stargazer/plugins/other/smux/tables.h b/projects/stargazer/plugins/other/smux/tables.h deleted file mode 100644 index a1f97f67..00000000 --- a/projects/stargazer/plugins/other/smux/tables.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef __TABLES_H__ -#define __TABLES_H__ - -#include -#include - -#include "sensors.h" - -class TARIFFS; -class USERS; - -class TableSensor { - public: - explicit TableSensor(const std::string & p) : prefix(p) {} - virtual ~TableSensor() {} - - const std::string & GetPrefix() const { return prefix; } - virtual void UpdateSensors(Sensors & sensors) const = 0; - - protected: - std::string prefix; -}; - -class TariffUsersTable : public TableSensor { - public: - TariffUsersTable(const std::string & p, - TARIFFS & t, - USERS & u) - : TableSensor(p), - tariffs(t), - users(u) - {} - virtual ~TariffUsersTable() {} - - void UpdateSensors(Sensors & sensors) const; - - private: - TARIFFS & tariffs; - USERS & users; -}; - -typedef std::map Tables; - -#endif