* @brief Returns true when the channel stores text samples (string-typed MDF4 channel). */
| 54 | * @brief Returns true when the channel stores text samples (string-typed MDF4 channel). |
| 55 | */ |
| 56 | static bool isStringChannel(const mdf::IChannel* channel) |
| 57 | { |
| 58 | if (!channel) |
| 59 | return false; |
| 60 | |
| 61 | const auto type = channel->DataType(); |
| 62 | return type == mdf::ChannelDataType::StringAscii || type == mdf::ChannelDataType::StringUTF8 |
| 63 | || type == mdf::ChannelDataType::StringUTF16Le || type == mdf::ChannelDataType::StringUTF16Be; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * @brief Observer class that caches channel values during MDF4 data reading |
no test coverage detected