rhubarb-lip-sync/src/Shape.cpp

11 lines
244 B
C++
Raw Normal View History

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