Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. #ifndef PRODUCT_H
  2. #define PRODUCT_H
  3. #include <string>
  4.  
  5. class Queue;
  6.  
  7. enum Actions{
  8.     CUT,
  9.     CHOP,
  10.     FRY,
  11.     BOIL,
  12.     POUR,
  13. };
  14.  
  15. enum Units{
  16.     G,
  17.     KG,
  18.     PIECE,
  19.     L,
  20.     TBSP,
  21.     TSP,
  22. };
  23.  
  24. class Product{
  25. friend class Q;
  26. public:
  27.     //constuctors
  28.     Product();
  29.     Product(const std::string& name, Units unit, float num, Actions act);
  30.     Product(const Product& p);
  31.     //getters
  32.     const std::string getName() const;
  33.     Units getUnit() const;
  34.     float getNum() const;
  35.     Actions getAct() const;
  36.     //setters
  37.     void setName(const std::string& name);
  38.     void setUnit(Units unit);
  39.     void setNum(float number
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.         );
  139.     void setAct(Actions action);
  140.     //other
  141.     void print();
  142.  
  143. private:
  144.     std::string name;
  145.     Units unit;
  146.     float num;
  147.     Actions act;
  148.  
  149. };
  150.  
  151. #endif // PRODUCT_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement