Package pyffi :: Module object_models :: Module xml :: Class StructAttribute
[hide private]
[frames] | no frames]

Class StructAttribute

source code

object --+
         |
        StructAttribute

Helper class to collect attribute data of struct add tags.
Instance Methods [hide private]
 
__init__(self, cls, attrs)
Initialize attribute from the xml attrs dictionary of an add tag.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  name = None
The name of this member variable.
  type_ = None
The type of this member variable (type is str for forward declarations, and resolved to BasicBase or StructBase later).
  default = None
The default value of this member variable.
  template = None
The template type of this member variable (initially str, resolved to BasicBase or StructBase at the end of the xml parsing), and if there is no template type, then this variable will equal type(None).
  arg = None
The argument of this member variable.
  arr1 = None
The first array size of this member variable, as Expression or type(None).
  arr2 = None
The second array size of this member variable, as Expression or type(None).
  cond = None
The condition of this member variable, as Expression or type(None).
  ver1 = None
The first version this member exists, as int, and None if there is no lower limit.
  ver2 = None
The last version this member exists, as int, and None if there is no upper limit.
  userver = None
The user version this member exists, as int, and None if it exists for all user versions.
  is_abstract = False
Whether the attribute is abstract or not (read and written).
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cls, attrs)
(Constructor)

source code 
Initialize attribute from the xml attrs dictionary of an add tag.
Parameters:
  • cls - The class where all types reside.
  • attrs - The xml add tag attribute dictionary.
Overrides: object.__init__