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

Method SetupCommandClass

cpp/src/Localization.cpp:575–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void Localization::SetupCommandClass
576(
577 CommandClass *cc
578)
579{
580 uint8 ccID = cc->GetCommandClassId();
581 if (m_commandClassLocalizationMap.find(ccID) != m_commandClassLocalizationMap.end()) {
582 cc->SetCommandClassLabel(m_commandClassLocalizationMap[ccID]->GetLabel(m_selectedLang));
583 } else {
584 Log::Write( LogLevel_Warning, "Localization::SetupCommandClass: Localization Warning: No Entry for CommandClass - CC: %d (%s)", ccID, cc->GetCommandClassName().c_str());
585 cc->SetCommandClassLabel(cc->GetCommandClassName());
586 }
587}
588
589bool Localization::SetValueHelp
590(

Callers 1

CreateCommandClassMethod · 0.80

Calls 8

WriteFunction · 0.85
findMethod · 0.80
SetCommandClassLabelMethod · 0.80
GetCommandClassIdMethod · 0.45
endMethod · 0.45
GetLabelMethod · 0.45
c_strMethod · 0.45
GetCommandClassNameMethod · 0.45

Tested by

no test coverage detected