#include "StorageEditor.h" StorageEditor::StorageEditor() { } StorageEditor::StorageEditor(const WarenStorage storage) { this->storage = storage; } WarenStorage StorageEditor::getWarenStorage() const { return storage; } void StorageEditor::setWarenStorage(const WarenStorage storage) { this->storage = storage; } void StorageEditor::addWaren(const Ware ware, int amount) { for(auto i = 0; i < amount; i++) { storage.addWareAndGenerateId(ware); } } void StorageEditor::removeWaren(std::string name, const int amount) { for(auto i = 0; i < amount; i++) { storage.removeWare(name); } }