\brief Returns true if the channel is a number. */
| 295 | |
| 296 | /** \brief Returns true if the channel is a number. */ |
| 297 | [[nodiscard]] bool IsNumber() const { |
| 298 | // Need to check the cc at well if it is a value to text conversion |
| 299 | if (const auto *cc = ChannelConversion(); |
| 300 | cc != nullptr && cc->Type() <= ConversionType::ValueRangeToValue) { |
| 301 | return true; |
| 302 | } |
| 303 | return DataType() <= ChannelDataType::FloatBe; |
| 304 | } |
| 305 | |
| 306 | /** \brief Creates a metadata (MD) block. */ |
| 307 | [[nodiscard]] virtual IMetaData* CreateMetaData(); |