| 341 | } |
| 342 | |
| 343 | const 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 | |
| 358 | bool NotificationCCTypes::Create |
| 359 | ( |