2018-02-12 14:15:04 +00:00
|
|
|
#ifndef UNITOFMEASURE_H
|
|
|
|
#define UNITOFMEASURE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The UnitOfMeasure class represents a way to measure an ingredient. It contains a name, an abbreviation, plural name, and some information on conversion.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class UnitOfMeasure
|
|
|
|
{
|
|
|
|
public:
|
2018-02-12 19:27:27 +00:00
|
|
|
//Full constructor.
|
2018-02-12 18:20:38 +00:00
|
|
|
UnitOfMeasure(string name, string plural, string abbreviation);
|
2018-02-12 19:27:27 +00:00
|
|
|
//Constructor with default values.
|
|
|
|
UnitOfMeasure();
|
2018-02-12 18:20:38 +00:00
|
|
|
|
|
|
|
//Getters
|
|
|
|
string getName();
|
|
|
|
string getNamePlural();
|
|
|
|
string getAbbreviation();
|
2018-02-12 14:15:04 +00:00
|
|
|
private:
|
2018-02-12 15:27:24 +00:00
|
|
|
string name; //The name of the unit of measure.
|
|
|
|
string plural; //The plural name.
|
|
|
|
string abbreviation; //A short version of the unit.
|
2018-02-12 14:15:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // UNITOFMEASURE_H
|