@classmethod
def get(cls, debug, raw):
    """
        @type  debug: L{Debug}
        @param debug: Debug object that received the event.

        @type  raw: L{DEBUG_EVENT}
        @param raw: Raw DEBUG_EVENT structure as used by the Win32 API.

        @rtype: L{Event}
        @returns: An Event object or one of it's subclasses,
            depending on the event type.
        """
    eventClass = cls.eventClasses.get(raw.dwDebugEventCode, cls.baseEvent)
    return eventClass(debug, raw)
