RecipeDB/model/database/recipedatabase.h

29 lines
510 B
C
Raw Normal View History

#ifndef RECIPEDATABASE_H
#define RECIPEDATABASE_H
#include "database.h"
#include "model/recipe/recipe.h"
using namespace std;
/**
* @brief The RecipeDatabase class represents the precise database used for the recipe storage, and is specialized.
*/
class RecipeDatabase : public Database
{
public:
RecipeDatabase(string filename);
//Stores a full recipe in the database.
void storeRecipe(Recipe recipe);
private:
//Utility methods.
void ensureTablesExist();
};
#endif // RECIPEDATABASE_H