! @brief Convert e57::NumericalNodeType into human-readable string. @param inNodeType node type to convert @return human-readable representation of node type or "Unknown: ". */
| 43 | @return human-readable representation of node type or "Unknown: <node type int>". |
| 44 | */ |
| 45 | std::string _numericalNodeTypeStr( e57::NumericalNodeType inNodeType ) |
| 46 | { |
| 47 | switch ( inNodeType ) |
| 48 | { |
| 49 | case e57::NumericalNodeType::Integer: |
| 50 | { |
| 51 | return "Integer"; |
| 52 | } |
| 53 | |
| 54 | case e57::NumericalNodeType::ScaledInteger: |
| 55 | { |
| 56 | return "ScaledInteger"; |
| 57 | } |
| 58 | |
| 59 | case e57::NumericalNodeType::Float: |
| 60 | { |
| 61 | return "Float"; |
| 62 | } |
| 63 | |
| 64 | case e57::NumericalNodeType::Double: |
| 65 | { |
| 66 | return "Double"; |
| 67 | } |
| 68 | |
| 69 | default: |
| 70 | return std::string( "Unknown: " ) |
| 71 | .append( std::to_string( static_cast<int>( inNodeType ) ) ); |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | namespace e57 |