RecipeDB/model/recipe/recipe.cpp

26 lines
581 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<Ingredient>();
this->instructions = vector<Instruction>();
}
Recipe::Recipe(string name, vector<Ingredient> ingredients, vector<Instruction> instructions){
this->name = name;
this->ingredients = ingredients;
this->instructions = instructions;
}
string Recipe::getName(){
return this->name;
}
vector<Ingredient> Recipe::getIngredients(){
return this->ingredients;
}
2018-02-12 13:24:11 +00:00
vector<Instruction> Recipe::getInstructions(){
return this->instructions;
}