No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Set.py 551B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. from lodel.leapi.datahandlers.reference import Reference
  3. class Set(Reference):
  4. ## @brief instanciates a set reference
  5. # @param emclasses list : List of EmClass objects
  6. # @param allowed bool
  7. # @param internal bool : if False, the field is not internal
  8. # @param kwargs : Other named arguments
  9. def __init__(self, emclasses, allowed=True, internal=False, **kwargs):
  10. self._refs = set(emclasses)
  11. self._refs_class = set
  12. super().__init__(allowed=allowed, internal=internal, **kwargs)