MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetBitLabel

Method GetBitLabel

cpp/src/value_classes/ValueBitSet.cpp:362–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362string ValueBitSet::GetBitLabel
363(
364 uint8 _idx
365)
366{
367 if (isValidBit(_idx)) {
368 return Localization::Get()->GetValueItemLabel(m_id.GetCommandClassId(), m_id.GetIndex(), -1, _idx);
369 }
370 Log::Write(LogLevel_Warning, m_id.GetNodeId(), "GetBitLabel: Bit %d is not valid with BitMask %d", _idx, m_BitMask);
371 return "Reserved";
372
373}
374bool ValueBitSet::SetBitLabel
375(
376 uint8 _idx,

Callers 1

GetValueLabelMethod · 0.80

Calls 5

WriteFunction · 0.85
GetValueItemLabelMethod · 0.80
GetNodeIdMethod · 0.80
GetFunction · 0.50
GetCommandClassIdMethod · 0.45

Tested by

no test coverage detected