| 4 | namespace obe::Transform |
| 5 | { |
| 6 | Units stringToUnits(const std::string& unit) |
| 7 | { |
| 8 | if (unit == "ViewPercentage") |
| 9 | return Units::ViewPercentage; |
| 10 | if (unit == "ViewPixels") |
| 11 | return Units::ViewPixels; |
| 12 | if (unit == "ViewUnits") |
| 13 | return Units::ViewUnits; |
| 14 | if (unit == "ScenePixels") |
| 15 | return Units::ScenePixels; |
| 16 | if (unit == "SceneUnits") |
| 17 | return Units::SceneUnits; |
| 18 | throw Exceptions::UnknownUnit(unit, EXC_INFO); |
| 19 | } |
| 20 | |
| 21 | std::string unitsToString(Units unit) |
| 22 | { |
no test coverage detected