Wyatt  1.0.1
Public Member Functions | Public Attributes | List of all members
MockSensorManager Class Reference

#include <MockSensorManager.h>

Inheritance diagram for MockSensorManager:
Inheritance graph
[legend]
Collaboration diagram for MockSensorManager:
Collaboration graph
[legend]

Public Member Functions

void addSensor (Hardware hardware, ISensor *sensor) override
 
void updateSensors (std::list< IMessage * > *messages) override
 
std::list< IMessage * > * getUpdateMessages ()
 
- Public Member Functions inherited from ISensorManager
virtual ~ISensorManager ()
 

Public Attributes

std::list< IMessage * > * updateMessages
 

Detailed Description

Mock SensorManager class that logs what messages are sent to it through updateMessages()

Definition at line 14 of file MockSensorManager.h.

Member Function Documentation

void MockSensorManager::addSensor ( Hardware  hardware,
ISensor sensor 
)
overridevirtual

Adds a sensor to be managed

Parameters
hardwareThe Hardware type of the sensor
sensorA pointer to the ISensor object

Implements ISensorManager.

Definition at line 15 of file MockSensorManager.cpp.

void MockSensorManager::updateSensors ( std::list< IMessage * > *  messages)
overridevirtual

Receives data and distributes it to the respective sensors. Deletes the messages upon completion.

Parameters
messagesA list of Messages

Implements ISensorManager.

Definition at line 19 of file MockSensorManager.cpp.


The documentation for this class was generated from the following files: