2018-02-12 14:15:04 +00:00
|
|
|
#include "unitofmeasure.h"
|
|
|
|
|
2018-02-12 18:20:38 +00:00
|
|
|
UnitOfMeasure::UnitOfMeasure(string name, string plural, string abbreviation){
|
|
|
|
this->name = name;
|
|
|
|
this->plural = plural;
|
|
|
|
this->abbreviation = abbreviation;
|
|
|
|
}
|
|
|
|
|
2018-02-12 19:27:27 +00:00
|
|
|
UnitOfMeasure::UnitOfMeasure() : UnitOfMeasure::UnitOfMeasure("", "", ""){
|
|
|
|
//Default constructor initializes all fields to empty strings.
|
|
|
|
}
|
|
|
|
|
2018-02-12 18:20:38 +00:00
|
|
|
string UnitOfMeasure::getName(){
|
|
|
|
return this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
string UnitOfMeasure::getNamePlural(){
|
|
|
|
return this->plural;
|
|
|
|
}
|
2018-02-12 14:15:04 +00:00
|
|
|
|
2018-02-12 18:20:38 +00:00
|
|
|
string UnitOfMeasure::getAbbreviation(){
|
|
|
|
return this->abbreviation;
|
2018-02-12 14:15:04 +00:00
|
|
|
}
|