X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/22cb2560274e05e6490cf964cbbeb74a1991c642..296c906e2689b9b5dc26d2f2d3e1e2d9e1662d3b:/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 a1f97f67..17875cec 100644 --- a/projects/stargazer/plugins/other/smux/tables.h +++ b/projects/stargazer/plugins/other/smux/tables.h @@ -1,13 +1,14 @@ -#ifndef __TABLES_H__ -#define __TABLES_H__ +#pragma once + +#include "sensors.h" #include #include -#include "sensors.h" - -class TARIFFS; -class USERS; +namespace STG +{ +class Tariffs; +class Users; class TableSensor { public: @@ -24,21 +25,19 @@ 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; - -#endif +}