]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/tables.h
Fight Optional
[stg.git] / projects / stargazer / plugins / other / smux / tables.h
index a1f97f673fccb8ef8f57568da8adf75b62e1af48..1e27b326c30d17fa78c54bf1f2b43b20e05806d7 100644 (file)
@@ -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<std::string, TableSensor *> Tables;