You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
497 B

2 years ago
  1. #include "../pch.h"
  2. #include "../WarenStorage/WarenStorage.h"
  3. class StorageEditor {
  4. private:
  5. WarenStorage storage;
  6. public:
  7. StorageEditor();
  8. StorageEditor(WarenStorage storage);
  9. WarenStorage getWarenStorage() const;
  10. void setWarenStorage(const WarenStorage storage);
  11. void addWareAndGenerateId(Ware ware);
  12. void addWaren(const Ware ware, int amount);
  13. void removeWare(std::string name);
  14. void removeWaren(std::string name, int amount);
  15. };