ZotBins Core
Loading...
Searching...
No Matches
Weight::MockWeight Class Referencefinal

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>

Inheritance diagram for Weight::MockWeight:
Inheritance graph

Public Member Functions

 MockWeight (int32_t weight)
 Constructs an instance of the MockWeight class.
 
int32_t getWeight () override
 Returns the mock weight.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MockWeight()

MockWeight::MockWeight ( int32_t weight)

Constructs an instance of the MockWeight class.

Parameters
weightRepresents the current weight of the mock sensor.

Member Function Documentation

◆ 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: