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

Method GetAlarmNotificationEventParams

cpp/src/NotificationCCTypes.cpp:343–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343const std::map<uint32, NotificationCCTypes::NotificationEventParams* > NotificationCCTypes::GetAlarmNotificationEventParams
344(
345 uint32 type,
346 uint32 event
347)
348{
349 if (const NotificationCCTypes::NotificationTypes *nt = GetAlarmNotificationTypes(type)) {
350 if (nt->Events.find(event) != nt->Events.end()) {
351 return nt->Events.at(event)->EventParams;
352 }
353 Log::Write( LogLevel_Warning, "NotificationCCTypes::GetAlarmNotificationEventParams - Unknown Alarm Event %d for Alarm Type %s (%d)", event, GetAlarmType(type).c_str(), type);
354 }
355 return std::map<uint32, NotificationCCTypes::NotificationEventParams* >();
356}
357
358bool NotificationCCTypes::Create
359(

Callers 1

HandleMsgMethod · 0.80

Calls 4

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

Tested by

no test coverage detected