| 32 | } |
| 33 | |
| 34 | static FlowDirection parse(std::string_view _value) |
| 35 | { |
| 36 | FlowDirection type; |
| 37 | int value = 0; |
| 38 | while (true) |
| 39 | { |
| 40 | std::string_view name = type.getValueName(value); |
| 41 | if (name.empty() || name == _value) |
| 42 | break; |
| 43 | value++; |
| 44 | } |
| 45 | type.mValue = static_cast<Enum>(value); |
| 46 | return type; |
| 47 | } |
| 48 | |
| 49 | bool isHorizontal() const |
| 50 | { |
no test coverage detected