Code improvements

Case
if ((entry->flags & OverrideFlags::triggerMask) == OverrideFlags::triggerDefault) { trigger = "default"; } else if ((entry->flags & OverrideFlags::triggerMask) == OverrideFlags::triggerEdge) { trigger = "edge"; } else if ((entry->flags & OverrideFlags::triggerMask) == OverrideFlags::triggerLevel) { trigger = "level"; } else { .... }

Solution
switch(entry->flags & OverrideFlags::triggerMask) { case OverrideFlags::triggerDefault: trigger = "default"; break; case OverrideFlags::triggerEdge: trigger = "edge"; break; case OverrideFlags::triggerLevel: trigger = "level"; break; default: .... }