9 #include <spdlog/spdlog.h> 33 virtual std::string
json(
const std::string
name = {})
const;
35 virtual void update(
unsigned int timeout)
final;
std::shared_ptr< spdlog::logger > _logger
Pointer to spd logger.
std::vector< ObSensor * > & sensors()
Return list of sensors.
SensorType _type
Sensor type.
virtual std::string json(const std::string name={}) const
ObSensor(std::string name={"sensor"})
virtual void update(unsigned int timeout) final
std::vector< ObSensor * > _sensors
List of subsensors.
ObSensor * _first
Pointer to first sensor.
SensorType
Enums for sensor type.
ObSensor * _change
Pointer to change sensor.
bool enabled() const
Returns flag if sensor is enabled.
ObSensor * _second
Pointer to second sensor.
std::string name() const
Returns name of sensor.
virtual void speed(ObSensor *, ObSensor *, unsigned int)
Calculate time change (speed)
SensorType type() const
Returns sensor type.
void enabled(bool e)
Sets flag if sensor is enabled.
virtual void process()
Process function.
std::string _name
Sensor name.
void type(SensorType t)
Sets sensor type.