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

Method SetBitLabel

cpp/src/value_classes/ValueBitSet.cpp:374–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373}
374bool ValueBitSet::SetBitLabel
375(
376 uint8 _idx,
377 string label
378)
379{
380 if (isValidBit(_idx)) {
381 Localization::Get()->SetValueItemLabel(m_id.GetCommandClassId(), m_id.GetIndex(), -1, _idx, label, Localization::Get()->GetSelectedLang());
382 return true;
383 }
384 Log::Write(LogLevel_Warning, m_id.GetNodeId(), "SetBitLabel: Bit %d is not valid with BitMask %d", _idx, m_BitMask);
385 return false;
386
387}
388
389uint8 ValueBitSet::GetSize
390(

Callers 1

SetValueLabelMethod · 0.80

Calls 6

WriteFunction · 0.85
SetValueItemLabelMethod · 0.80
GetSelectedLangMethod · 0.80
GetNodeIdMethod · 0.80
GetFunction · 0.50
GetCommandClassIdMethod · 0.45

Tested by

no test coverage detected