Ejemplo n.º 1
0
 def __init__(self, value, text, data_type='UCHAR', default=0, max_insts=1, \
              prop_types=None, num_insts_obj_type_name=None):
    EnumeratedValue.__init__(self,value,text)
    self.max_num_instances = max_insts
    self.num_insts_obj_type_name = num_insts_obj_type_name
    if prop_types is None:
       prop_types = [0]
    self.prop_types = prop_types
    self.default = default
    self.data_type = data_type
    return
Ejemplo n.º 2
0
 def __init__(self, value, text, data_type='UCHAR', default=0, max_insts=1, \
              prop_types=None, num_insts_obj_type_name=None):
     EnumeratedValue.__init__(self, value, text)
     self.max_num_instances = max_insts
     self.num_insts_obj_type_name = num_insts_obj_type_name
     if prop_types is None:
         prop_types = [0]
     self.prop_types = prop_types
     self.default = default
     self.data_type = data_type
     return
Ejemplo n.º 3
0
 def __init__(self, value, text, data_type='UCHAR'):
    EnumeratedValue.__init__(self,value,text)
    self.data_type = _data_types[data_type] # use ref to EnumValue
    return
Ejemplo n.º 4
0
 def __init__(self, value, text, obj_types):
    EnumeratedValue.__init__(self, value, text)
    self.obj_types = obj_types
    return
Ejemplo n.º 5
0
 def __init__(self, value, text, data_type='UCHAR'):
     EnumeratedValue.__init__(self, value, text)
     self.data_type = _data_types[data_type]  # use ref to EnumValue
     return
Ejemplo n.º 6
0
 def __init__(self, value, text, obj_types):
     EnumeratedValue.__init__(self, value, text)
     self.obj_types = obj_types
     return