ZotBins Core
Loading...
Searching...
No Matches
Weight::IWeight Class Referenceabstract

Interface (abstract) class for mock and real hardware weight sensor. Used to inherit the getWeight method in derived classes. More...

#include <IWeight.hpp>

Inheritance diagram for Weight::IWeight:
Inheritance graph

Public Member Functions

virtual int32_t getWeight ()=0
 Returns the weight of the sensor.
 

Detailed Description

Interface (abstract) class for mock and real hardware weight sensor. Used to inherit the getWeight method in derived classes.

Member Function Documentation

◆ getWeight()

virtual int32_t Weight::IWeight::getWeight ( )
pure virtual

Returns the weight of the sensor.

Returns
int32_t Weight in kilograms

Implemented in Weight::MockWeight, and Weight::RealWeight.


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