X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..b27841d687ec9e84983340b5581376dfb24010ea:/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 index edfe4377..17875cec 100644 --- a/projects/stargazer/plugins/other/smux/tables.h +++ b/projects/stargazer/plugins/other/smux/tables.h @@ -1,16 +1,14 @@ -#ifndef __TABLES_H__ -#define __TABLES_H__ +#pragma once + +#include "sensors.h" #include #include -#include "sensors.h" - namespace STG { -struct Tariffs; -struct Users; -} +class Tariffs; +class Users; class TableSensor { public: @@ -33,9 +31,8 @@ class TariffUsersTable : public TableSensor { tariffs(t), users(u) {} - virtual ~TariffUsersTable() {} - void UpdateSensors(Sensors & sensors) const; + void UpdateSensors(Sensors & sensors) const override; private: STG::Tariffs & tariffs; @@ -43,5 +40,4 @@ class TariffUsersTable : public TableSensor { }; typedef std::map Tables; - -#endif +}