]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/tables.h
Use async-radius.
[stg.git] / projects / stargazer / plugins / other / smux / tables.h
index a1f97f673fccb8ef8f57568da8adf75b62e1af48..17875cecfa49029e9d4f770f32c45c5bf6edf288 100644 (file)
@@ -1,13 +1,14 @@
-#ifndef __TABLES_H__
-#define __TABLES_H__
+#pragma once
+
+#include "sensors.h"
 
 #include <string>
 #include <map>
 
-#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<std::string, TableSensor *> Tables;
-
-#endif
+}