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

Method GetValueItemLabel

cpp/src/Localization.cpp:673–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671
672
673string const Localization::GetValueItemLabel
674(
675 uint8 ccID,
676 uint16 indexId,
677 int32 pos,
678 int32 itemIndex
679) const
680{
681 uint64 key = GetValueKey(ccID, indexId, pos);
682 if (m_valueLocalizationMap.find(key) == m_valueLocalizationMap.end()) {
683 Log::Write( LogLevel_Warning, "Localization::GetValueItemLabel: No ValueLocalizationMap for CommandClass %xd, ValueID: %d (%d) ItemIndex %d", ccID, indexId, pos, itemIndex);
684 return "";
685 }
686 return m_valueLocalizationMap[key]->GetItemLabel(m_selectedLang, itemIndex);
687}
688
689bool Localization::SetValueItemLabel
690(

Callers 4

WriteXMLMethod · 0.80
GetBitLabelMethod · 0.80
ValueListMethod · 0.80
ReadXMLMethod · 0.80

Calls 4

WriteFunction · 0.85
findMethod · 0.80
GetItemLabelMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected