Mock weight class that inherits from the IWeight interface class. Used for unit tests so that actual hardware isn't require to test the ZotBins system.
More...
#include <MockWeight.hpp>
Mock weight class that inherits from the IWeight interface class. Used for unit tests so that actual hardware isn't require to test the ZotBins system.
◆ MockWeight()
MockWeight::MockWeight |
( |
int32_t | weight | ) |
|
Constructs an instance of the MockWeight class.
- Parameters
-
weight | Represents the current weight of the mock sensor. |
◆ getWeight()
int32_t MockWeight::getWeight |
( |
| ) |
|
|
overridevirtual |
Returns the mock weight.
- Returns
- int32_t Weight in kilograms.
Implements Weight::IWeight.
The documentation for this class was generated from the following files: