git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update CMakeLists.txt
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
tables.cpp
diff --git
a/projects/stargazer/plugins/other/smux/tables.cpp
b/projects/stargazer/plugins/other/smux/tables.cpp
index 21173b7023de011624d480863dc2a1fe999c741f..ead98f38755bb27f82a68bbbaa4704e69d40e0cf 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/tables.cpp
+++ b/
projects/stargazer/plugins/other/smux/tables.cpp
@@
-1,16
+1,26
@@
-#include <cassert>
-#include <utility>
-#include <iterator>
-#include <algorithm>
+#include "tables.h"
#include "stg/user_property.h"
#include "stg/tariffs.h"
#include "stg/tariff_conf.h"
#include "stg/users.h"
#include "stg/user_property.h"
#include "stg/tariffs.h"
#include "stg/tariff_conf.h"
#include "stg/users.h"
-#include "tables.h"
+#include <utility>
+#include <iterator>
+#include <algorithm>
+#include <cassert>
+
+using STG::TariffUsersTable;
-std::pair<std::string, size_t> TD2Info(const STG::TariffData & td);
+namespace
+{
+
+std::pair<std::string, size_t> TD2Info(const STG::TariffData & td)
+{
+ return std::make_pair(td.tariffConf.name, 0);
+}
+
+}
void TariffUsersTable::UpdateSensors(Sensors & sensors) const
{
void TariffUsersTable::UpdateSensors(Sensors & sensors) const
{
@@
-58,8
+68,3
@@
while (it != data.end())
++it;
}
}
++it;
}
}
-
-std::pair<std::string, size_t> TD2Info(const STG::TariffData & td)
-{
-return std::make_pair(td.tariffConf.name, 0);
-}