Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PRODUCT_H
- #define PRODUCT_H
- #include <string>
- class Queue;
- enum Actions{
- CUT,
- CHOP,
- FRY,
- BOIL,
- POUR,
- };
- enum Units{
- G,
- KG,
- PIECE,
- L,
- TBSP,
- TSP,
- };
- class Product{
- friend class Q;
- public:
- //constuctors
- Product();
- Product(const std::string& name, Units unit, float num, Actions act);
- Product(const Product& p);
- //getters
- const std::string getName() const;
- Units getUnit() const;
- float getNum() const;
- Actions getAct() const;
- //setters
- void setName(const std::string& name);
- void setUnit(Units unit);
- void setNum(float number
- );
- void setAct(Actions action);
- //other
- void print();
- private:
- std::string name;
- Units unit;
- float num;
- Actions act;
- };
- #endif // PRODUCT_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement