2015-11-20 21:20:19 +00:00
|
|
|
#include "Shape.h"
|
|
|
|
|
|
|
|
std::string shapeToString(Shape shape) {
|
2015-12-21 12:26:56 +00:00
|
|
|
char c = 'A' + static_cast<char>(shape);
|
2015-11-20 21:20:19 +00:00
|
|
|
return std::string(&c, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::ostream &operator<<(std::ostream &stream, const Shape shape) {
|
|
|
|
return stream << shapeToString(shape);
|
|
|
|
}
|