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
26 lines
497 B
#include "../pch.h"
|
|
#include "../WarenStorage/WarenStorage.h"
|
|
|
|
class StorageEditor {
|
|
private:
|
|
|
|
WarenStorage storage;
|
|
|
|
public:
|
|
|
|
StorageEditor();
|
|
|
|
StorageEditor(WarenStorage storage);
|
|
|
|
WarenStorage getWarenStorage() const;
|
|
|
|
void setWarenStorage(const WarenStorage storage);
|
|
|
|
void addWareAndGenerateId(Ware ware);
|
|
|
|
void addWaren(const Ware ware, int amount);
|
|
|
|
void removeWare(std::string name);
|
|
|
|
void removeWaren(std::string name, int amount);
|
|
};
|