15 explicit TableSensor(const std::string & p) : prefix(p) {}
16 virtual ~TableSensor() {}
18 const std::string & GetPrefix() const { return prefix; }
19 virtual void UpdateSensors(Sensors & sensors) const = 0;
25 class TariffUsersTable : public TableSensor {
27 TariffUsersTable(const std::string & p,
35 void UpdateSensors(Sensors & sensors) const override;
38 STG::Tariffs & tariffs;
42 typedef std::map<std::string, TableSensor *> Tables;