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

Method SetValueItemHelp

cpp/src/Localization.cpp:725–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725bool Localization::SetValueItemHelp
726(
727 uint8 ccID,
728 uint16 indexId,
729 int32 pos,
730 int32 itemIndex,
731 string label,
732 string lang
733)
734{
735 uint64 key = GetValueKey(ccID, indexId, pos);
736 if (m_valueLocalizationMap.find(key) == m_valueLocalizationMap.end()) {
737 m_valueLocalizationMap[key] = new ValueLocalizationEntry(ccID, indexId, pos);
738 } else if (m_valueLocalizationMap[key]->HasItemHelp(itemIndex, lang)) {
739 Log::Write( LogLevel_Warning, "Localization::SetValueItemHelp: Duplicate Item Entry for CommandClass %d, ValueID: %d (%d) ItemIndex %d: %s (Lang: %s)", ccID, indexId, pos, itemIndex, label.c_str(), lang.c_str() );
740 }
741 m_valueLocalizationMap[key]->AddItemHelp(label, itemIndex, lang);
742 return true;
743}
744
745string const Localization::GetGlobalLabel
746(

Callers 2

ReadXMLMethod · 0.80
SetBitHelpMethod · 0.80

Calls 6

WriteFunction · 0.85
findMethod · 0.80
HasItemHelpMethod · 0.80
AddItemHelpMethod · 0.80
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected