git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use C++03 in cppcheck.
[stg.git]
/
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 ad3b55a3c979ca5ba5a15fc6e76d2728c69d4530..a1f97f673fccb8ef8f57568da8adf75b62e1af48 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/tables.h
+++ b/
projects/stargazer/plugins/other/smux/tables.h
@@
-6,9
+6,12
@@
#include "sensors.h"
#include "sensors.h"
+class TARIFFS;
+class USERS;
+
class TableSensor {
public:
class TableSensor {
public:
- TableSensor(const std::string & p) : prefix(p) {}
+
explicit
TableSensor(const std::string & p) : prefix(p) {}
virtual ~TableSensor() {}
const std::string & GetPrefix() const { return prefix; }
virtual ~TableSensor() {}
const std::string & GetPrefix() const { return prefix; }
@@
-21,8
+24,10
@@
class TableSensor {
class TariffUsersTable : public TableSensor {
public:
TariffUsersTable(const std::string & p,
class TariffUsersTable : public TableSensor {
public:
TariffUsersTable(const std::string & p,
+ TARIFFS & t,
USERS & u)
: TableSensor(p),
USERS & u)
: TableSensor(p),
+ tariffs(t),
users(u)
{}
virtual ~TariffUsersTable() {}
users(u)
{}
virtual ~TariffUsersTable() {}
@@
-30,6
+35,7
@@
class TariffUsersTable : public TableSensor {
void UpdateSensors(Sensors & sensors) const;
private:
void UpdateSensors(Sensors & sensors) const;
private:
+ TARIFFS & tariffs;
USERS & users;
};
USERS & users;
};