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