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.
 
 

60 lines
1007 B

#include "../pch.h"
class Ware {
public:
struct Size {
double width;
double height;
};
enum WareType {
DefaultWare,
CoolingWare,
LargeWare
};
private:
static int count;
Id id;
bool hasCooling;
std::string name;
Size size;
WareType type;
public:
Ware();
~Ware();
Ware(std::string name, bool hasCooling, double width, double height);
Id getId() const;
void setId(const Id id);
bool getHasCooling() const;
void setHasCooling(const bool isCoolable);
std::string getName() const;
void setName(const std::string name);
Size getSize() const;
void setSize(const double width, const double height);
WareType getType() const;
void setType(const WareType type);
Id generateId();
bool isLargeWare(Size s);
};