diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-05-01 17:31:28 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-05-26 18:41:21 +0200 |
commit | 8b65d0eb2815576780c57df428c1faf23fe75068 (patch) | |
tree | 2f82d0a218fed524e13451b01411f620ef152890 /src/recipe.h | |
parent | fc10974343701fd446bb174e991589de3a75d5e4 (diff) |
Add ingredient group support for both krecipes and gourmet databases and show them in the viewer.
Diffstat (limited to 'src/recipe.h')
-rw-r--r-- | src/recipe.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/recipe.h b/src/recipe.h index 631030f..0082d58 100644 --- a/src/recipe.h +++ b/src/recipe.h @@ -52,6 +52,12 @@ struct Ingredient std::string item; }; +struct IngredientGroup +{ + std::string title; + std::vector<Ingredient> ingredients; +}; + struct Recipe { DatabaseSource db; @@ -60,7 +66,7 @@ struct Recipe std::string description; std::string image; std::string instructions; - std::vector<Ingredient> ingredients; + std::vector<IngredientGroup> ingredient_groups; std::string source; std::string cuisine; |