Wyatt  1.0.1
SensorManager.h
1 #pragma once
2 #include "sensors/ISensorManager.h"
3 #include "sensors/ISensor.h"
4 #include <list>
5 #include <map>
6 #include "Hardware.h"
7 #include "messages/IMessage.h"
8 #include <iostream>
9 #include "exceptions/NonexistentHardwareException.h"
10 #include "exceptions/DuplicateHardwareException.h"
11 
15 class SensorManager : public ISensorManager {
16 public:
20  SensorManager();
21 
25  ~SensorManager() override;
26 
32  void addSensor(Hardware hardware, ISensor* sensor) override;
33 
38  void updateSensors(std::list<IMessage*>* messages) override;
39 
40 private:
41  std::map<Hardware, ISensor*>* sensorMap;
42 };
void addSensor(Hardware hardware, ISensor *sensor) override
void updateSensors(std::list< IMessage * > *messages) override
Definition: ISensor.h:7
~SensorManager() override