X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..2196a3a0cdc5384c082febb7f4aa5994cc7d80db:/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 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 +}