private:
bool UserPredicate(USER_PTR userPtr) const
- { return userPtr->GetProperty().nextTariff.ConstData().empty(); }
+ { return !userPtr->GetProperty().nextTariff.ConstData().empty(); }
+};
+
+class ActiveUsersSensor : public UsersSensor {
+ public:
+ ActiveUsersSensor(USERS & u) : UsersSensor(u) {}
+ virtual ~ActiveUsersSensor() {}
+
+ private:
+ bool UserPredicate(USER_PTR userPtr) const;
};
class TotalTariffsSensor : public Sensor {