'A class decorator to register sub types of GIBaseInfo'

@classmethod
def _register(cls, info_type):

    def wrap(reg_cls):
        cls.__types[info_type] = reg_cls
        return reg_cls
    return wrap
