Wyatt  1.0.1
MockSensorManager.cpp
1 //
2 // Created by Tucker Haydon on 4/9/17.
3 //
4 
5 #include "include/MockSensorManager.h"
6 
7 MockSensorManager::MockSensorManager() : ISensorManager() {
8  this->updateMessages = new std::list<IMessage*>;
9 };
10 
11 MockSensorManager::~MockSensorManager() {
12 
13 };
14 
16 
17 };
18 
19 void MockSensorManager::updateSensors(std::list<IMessage*>* messages) {
20 
21  while(!messages->empty()) {
22  IMessage* msg = messages->front();
23  this->updateMessages->push_back(msg);
24  messages->pop_front();
25  }
26 };
27 
Hardware hardware
Definition: IMessage.h:45
void addSensor(Hardware hardware, ISensor *sensor) override
Definition: ISensor.h:7
void updateSensors(std::list< IMessage * > *messages) override