2018-02-02 12:27:57 +00:00
|
|
|
#ifndef INGREDIENT_H
|
|
|
|
#define INGREDIENT_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2018-02-12 14:15:04 +00:00
|
|
|
/**
|
2018-05-22 19:02:08 +00:00
|
|
|
* @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.
|
2018-02-12 14:15:04 +00:00
|
|
|
*/
|
|
|
|
|
2018-02-02 12:27:57 +00:00
|
|
|
class Ingredient
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Ingredient();
|
2018-05-22 19:02:08 +00:00
|
|
|
Ingredient(string content);
|
2018-02-02 12:27:57 +00:00
|
|
|
|
2018-02-12 18:53:03 +00:00
|
|
|
//Getters
|
2018-05-22 19:02:08 +00:00
|
|
|
string getContent() const;
|
2018-02-02 12:27:57 +00:00
|
|
|
|
2018-02-12 18:53:03 +00:00
|
|
|
//Setters
|
2018-05-22 19:02:08 +00:00
|
|
|
void setContent(string newContent);
|
2018-03-30 12:33:48 +00:00
|
|
|
|
2018-02-02 12:27:57 +00:00
|
|
|
protected:
|
2018-05-22 19:02:08 +00:00
|
|
|
string content;
|
2018-02-02 12:27:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INGREDIENT_H
|