Get a string reresentation of a datatype. \param[in] dimtype Dimension type. \return String representation of dimension type.
| 110 | /// \param[in] dimtype Dimension type. |
| 111 | /// \return String representation of dimension type. |
| 112 | inline std::string interpretationName(Type dimtype) |
| 113 | { |
| 114 | switch (dimtype) |
| 115 | { |
| 116 | case Type::None: |
| 117 | return "unknown"; |
| 118 | case Type::Signed8: |
| 119 | return "int8_t"; |
| 120 | case Type::Signed16: |
| 121 | return "int16_t"; |
| 122 | case Type::Signed32: |
| 123 | return "int32_t"; |
| 124 | case Type::Signed64: |
| 125 | return "int64_t"; |
| 126 | case Type::Unsigned8: |
| 127 | return "uint8_t"; |
| 128 | case Type::Unsigned16: |
| 129 | return "uint16_t"; |
| 130 | case Type::Unsigned32: |
| 131 | return "uint32_t"; |
| 132 | case Type::Unsigned64: |
| 133 | return "uint64_t"; |
| 134 | case Type::Float: |
| 135 | return "float"; |
| 136 | case Type::Double: |
| 137 | return "double"; |
| 138 | } |
| 139 | return "unknown"; |
| 140 | } |
| 141 | |
| 142 | /// Get the type corresponding to a type name. |
| 143 | /// \param s Name of type. |
no outgoing calls
no test coverage detected