RecipeDB/model/recipe/ingredients/ingredient.cpp

28 lines
515 B
C++
Raw Normal View History

#include "model/recipe/ingredients/ingredient.h"
Ingredient::Ingredient(){
setName("NULL");
setFoodGroup("NULL");
}
2018-02-12 18:53:03 +00:00
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;
}