RecipeDB/model/recipe/ingredients/ingredient.cpp

28 lines
515 B
C++

#include "model/recipe/ingredients/ingredient.h"
Ingredient::Ingredient(){
setName("NULL");
setFoodGroup("NULL");
}
Ingredient::Ingredient(string name, string foodGroup){
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;
}