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

Method GetAlarmNotificationEvents

cpp/src/NotificationCCTypes.cpp:328–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328const NotificationCCTypes::NotificationEvents* NotificationCCTypes::GetAlarmNotificationEvents
329(
330 uint32 type,
331 uint32 event
332)
333{
334 if (const NotificationCCTypes::NotificationTypes *nt = GetAlarmNotificationTypes(type)) {
335 if (nt->Events.find(event) != nt->Events.end()) {
336 return nt->Events.at(event);
337 }
338 Log::Write( LogLevel_Warning, "NotificationCCTypes::GetAlarmNotificationEvents - Unknown Alarm Event %d for Alarm Type %s (%d)", event, GetAlarmType(type).c_str(), type);
339 }
340 return NULL;
341}
342
343const std::map<uint32, NotificationCCTypes::NotificationEventParams* > NotificationCCTypes::GetAlarmNotificationEventParams
344(

Callers 1

SetupEventsMethod · 0.80

Calls 4

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

Tested by

no test coverage detected