| 142 | } |
| 143 | |
| 144 | int LinearUnitConverter::getUnitAsInteger(const string& unitName) const |
| 145 | { |
| 146 | const auto it = _unitEnumeration.find(unitName); |
| 147 | if (it != _unitEnumeration.end()) |
| 148 | { |
| 149 | return it->second; |
| 150 | } |
| 151 | return -1; |
| 152 | } |
| 153 | |
| 154 | string LinearUnitConverter::getUnitFromInteger(int index) const |
| 155 | { |
no test coverage detected