2018-02-12 14:15:04 +00:00
|
|
|
#include "model/recipe/ingredients/ingredient.h"
|
2018-02-02 12:27:57 +00:00
|
|
|
|
|
|
|
Ingredient::Ingredient(){
|
|
|
|
setName("NULL");
|
|
|
|
setFoodGroup("NULL");
|
|
|
|
}
|
|
|
|
|
2018-02-12 18:53:03 +00:00
|
|
|
Ingredient::Ingredient(string name, string foodGroup){
|
2018-02-02 12:27:57 +00:00
|
|
|
setName(name);
|
|
|
|
setFoodGroup(foodGroup);
|
|
|
|
}
|
|
|
|
|
|
|
|
string Ingredient::getName(){
|
|
|
|
return this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
string Ingredient::getFoodGroup(){
|
|
|
|
return this->foodGroup;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Ingredient::setName(string newName){
|
|
|
|
this->name = newName;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Ingredient::setFoodGroup(string newFoodGroup){
|
|
|
|
this->foodGroup = newFoodGroup;
|
|
|
|
}
|