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.

leclass.py 813B

123456789101112131415161718192021222324252627
  1. #-*- coding: utf-8 -*-
  2. import leapi
  3. ## @brief Represent an EmClass data instance
  4. # @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObject
  5. class LeClass(object):
  6. ## @brief Stores fieldtypes by field name
  7. _fieldtypes = dict()
  8. ## @brief Stores relation with some LeType using rel2type fields. Key = rel2type fieldname value = LeType class
  9. _linked_types = dict()
  10. ## @brief Stores fieldgroups and the fields they contains
  11. _fieldgroups = dict()
  12. ## @brief Stores the EM uid
  13. _class_id = None
  14. ## @brief Stores the classtype
  15. _classtype = None
  16. ## @brief Instanciate a new LeClass
  17. # @note Abstract method
  18. # @param **kwargs
  19. def __init__(self, **kwargs):
  20. raise NotImplementedError("Abstract class")