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