1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-21 13:19:16 +01:00
lodel2_mirror/leobject/leclass.py

27 lines
816 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#-*- coding: utf-8 -*-
import leobject
## @brief Represent an EmClass data instance
# @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObject
class LeClass(object):
## @brief Stores fieldtypes by field name
_fieldtypes = dict()
## @brief Stores relation with some LeType using rel2type fields. Key = rel2type fieldname value = LeType class
_linked_types = dict()
## @brief Stores fieldgroups and the fields they contains
_fieldgroups = dict()
## @brief Stores the EM uid
_class_id = None
## @brief Stores the classtype
_classtype = None
## @brief Instanciate a new LeClass
# @note Abstract method
# @param **kwargs
def __init__(self, **kwargs):
raise NotImplementedError("Abstract class")