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

Method GetValueLabel

cpp/src/Localization.cpp:657–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657string const Localization::GetValueLabel
658(
659 uint8 ccID,
660 uint16 indexId,
661 int32 pos
662) const
663{
664 uint64 key = GetValueKey(ccID, indexId, pos);
665 if (m_valueLocalizationMap.find(key) == m_valueLocalizationMap.end()) {
666 Log::Write( LogLevel_Warning, "Localization::GetValueLabel: No Label for CommandClass %xd, ValueID: %d (%d)", ccID, indexId, pos);
667 return "";
668 }
669 return m_valueLocalizationMap[key]->GetLabel(m_selectedLang);
670}
671
672
673string const Localization::GetValueItemLabel

Callers

nothing calls this directly

Calls 4

WriteFunction · 0.85
findMethod · 0.80
endMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected