17 explicit TableSensor(const std::string & p) : prefix(p) {}
18 virtual ~TableSensor() {}
20 const std::string & GetPrefix() const { return prefix; }
21 virtual void UpdateSensors(Sensors & sensors) const = 0;
27 class TariffUsersTable : public TableSensor {
29 TariffUsersTable(const std::string & p,
37 void UpdateSensors(Sensors & sensors) const override;
40 STG::Tariffs & tariffs;
44 typedef std::map<std::string, TableSensor *> Tables;