@classmethod
def register_parser(cls, cobject, scope):
    """Register the class as an Event. This function
        can be used to register a class which is associated
        with an FTrace unique word.

        .. seealso::

            :mod:`trappy.dynamic.register_dynamic_ftrace` :mod:`trappy.dynamic.register_ftrace_parser`

        """
    if not hasattr(cobject, 'name'):
        cobject.name = cobject.unique_word.split(':')[0]
    if scope == 'all':
        cls.dynamic_classes[cobject.name] = cobject
    else:
        getattr(cls, scope + '_classes')[cobject.name] = cobject
