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

Method GetEventForAlarmType

cpp/src/NotificationCCTypes.cpp:298–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298string NotificationCCTypes::GetEventForAlarmType
299(
300 uint32 type,
301 uint32 event
302)
303{
304 if ( const NotificationCCTypes::NotificationEvents *ne = NotificationCCTypes::GetAlarmNotificationEvents(type, event)) {
305 return ne->name;
306 }
307 Log::Write( LogLevel_Warning, "NotificationCCTypes::GetEventForAlarmType - Unknown AlarmType/Event %d/d", type, event);
308 return "Unknown";
309}
310
311
312

Callers 1

HandleMsgMethod · 0.80

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected