MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / IsNumber

Method IsNumber

lib/mdflib/include/mdf/ichannel.h:297–304  ·  view source on GitHub ↗

\brief Returns true if the channel is a number. */

Source from the content-addressed store, hash-verified

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();

Callers 2

TESTFunction · 0.80

Calls 1

TypeMethod · 0.45

Tested by 1

TESTFunction · 0.64