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,
36 virtual ~TariffUsersTable() {}
38 void UpdateSensors(Sensors & sensors) const;
41 STG::Tariffs & tariffs;
45 typedef std::map<std::string, TableSensor *> Tables;