34 set(_shape, _color, _size);
38 auto [_shape, _color, _size] = split<3>(s,
'-');
39 set(_shape,_color,_size);
42 void set(
const std::string _shape,
const std::string _color,
const std::string _size) {
47 else {
CERR _shape
ENDL; assert(0); }
52 else {
CERR _color
ENDL; assert(0); }
Size
Definition: ShapeColorSizeObject.h:12
Definition: ShapeColorSizeObject.h:21
ShapeColorSizeObject(const std::string s)
Definition: ShapeColorSizeObject.h:37
ShapeColorSizeObject()
Definition: ShapeColorSizeObject.h:25
ShapeColorSizeObject(const std::string _shape, const std::string _color, const std::string _size)
Mainly we just define a constructor which takes strings.
Definition: ShapeColorSizeObject.h:33
#define CERR
Definition: IO.h:23
#define ENDL
Definition: IO.h:21
Color
Definition: ShapeColorSizeObject.h:11
std::bitset< 16 > set
Definition: Main.cpp:10
Shape
Definition: ShapeColorSizeObject.h:10