Files
2026-05-04 14:52:32 +02:00

51 lines
944 B
C++

/**
* @file Ingredient.h
* @brief Hlavičkový soubor pro třídu Ingredient.
*/
#ifndef PROOP_INGREDIENT_H
#define PROOP_INGREDIENT_H
#include <string>
using namespace std;
/**
* @class Ingredient
* @brief Třída reprezentující přísadu (např. na pizzu).
*/
class Ingredient {
private:
string name; ///< Název přísady
double cost; ///< Cena přísady
public:
/**
* @brief Výchozí konstruktor.
*/
Ingredient();
/**
* @brief Konstruktor s parametry.
* @param name Název přísady.
* @param cost Cena přísady.
*/
Ingredient(string name, double cost);
/**
* @brief Destruktor.
*/
~Ingredient();
/**
* @brief Získá název přísady.
* @return Název přísady.
*/
string getName();
/**
* @brief Získá cenu přísady.
* @return Cena přísady.
*/
double getCost();
};
#endif //PROOP_INGREDIENT_H