ZotBins Core
Loading...
Searching...
No Matches
Weight::WeightMetric Class Reference

Acts as main class, taking in weight interface to allow for mock data and real data. More...

#include <WeightMetric.hpp>

Public Member Functions

 WeightMetric (IWeight &weightSensor)
 Construct a new Weight object.
 
int32_t getWeight ()
 Returns the weight.
 

Detailed Description

Acts as main class, taking in weight interface to allow for mock data and real data.

Constructor & Destructor Documentation

◆ WeightMetric()

WeightMetric::WeightMetric ( IWeight & weightSensor)

Construct a new Weight object.

Parameters
weightSensorAn object that is a weight interface object.

Member Function Documentation

◆ getWeight()

int32_t WeightMetric::getWeight ( )

Returns the weight.

Returns
int32_t weight in kilograms

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