RecipeDB/model/recipe/ingredients/ingredient.h

31 lines
627 B
C
Raw Permalink Normal View History

#ifndef INGREDIENT_H
#define INGREDIENT_H
#include <string>
using namespace std;
/**
* @brief The Ingredient class represents an ingredient, which is a string representing one component of a recipe.
* The user is free to compose a recipe string however they like. However, the program will restrict obviously
* invalid input, and try to be smart about determining if an ingredient is valid.
*/
class Ingredient
{
public:
Ingredient();
Ingredient(string content);
2018-02-12 18:53:03 +00:00
//Getters
string getContent() const;
2018-02-12 18:53:03 +00:00
//Setters
void setContent(string newContent);
protected:
string content;
};
#endif // INGREDIENT_H