RecipeDB/model/recipe/recipe.cpp

27 lines
570 B
C++
Raw Normal View History

2018-02-12 13:24:11 +00:00
#include "model/recipe/recipe.h"
2018-02-12 13:24:11 +00:00
Recipe::Recipe(){
this->name = "NULL";
this->ingredients = vector<RecipeIngredient>();
this->instruction = Instruction();
2018-02-12 13:24:11 +00:00
}
Recipe::Recipe(string name, vector<RecipeIngredient> ingredients, Instruction instruction)
{
2018-02-12 13:24:11 +00:00
this->name = name;
this->ingredients = ingredients;
this->instruction = instruction;
2018-02-12 13:24:11 +00:00
}
string Recipe::getName(){
return this->name;
}
vector<RecipeIngredient> Recipe::getIngredients(){
2018-02-12 13:24:11 +00:00
return this->ingredients;
}
Instruction Recipe::getInstruction(){
return this->instruction;
}