diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/sysdef.api-module.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/sysdef.api-module.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,389 @@ + + + + + sysdef.api + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package sysdef :: + Module api + + + + + + +
[hide private]
[frames] | no frames]
+
+ +

Module api

source code

+

System Definition file parser.

+

Priority are not handled yet. +Nested task unitlist are not handled properly yet.

+

How to use it:

+
+sdf = SystemDefinition(filename)
+for name in sdf.layers:
+    print " + Units in layer %s" % name
+    for unit in sdf.layers[name].units:
+        print "     - " +  sdf.units[name].id
+
+for name in sdf.units:
+    print sdf.units[name].id
+


+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Classes[hide private]
+
+   + + SysDefElement
+ A generic element of a System Definition. +
+   + + Unit
+ Abstract unit from SDF file. +
+   + + _UnitGroup
+ A group of units. +
+   + + Layer
+ Abstract layer from SDF file. +
+   + + Module
+ Abstract module from SDF file. +
+   + + UnitList
+ Abstract unitlist from SDF file. +
+   + + BuildLayer
+ Abstract buildlayer. +
+   + + Option
+ Represents an option used in abld calls. +
+   + + SpecialInstruction
+ Reads special instruction command. +
+   + + Task
+ Abstract task node from SDF xml. +
+   + + Configuration
+ Abstract configuration from SDF file. +
+   + + Target
+ Abstract target from SDF file. +
+   + + TargetList
+ Abstract targetlist from SDF file. +
+   + + SystemDefinition
+ Logical representation of the System Definition. +
+   + + Binary
+ A binary file that may go into a ROM image. +
+ + + + + + + + + + + + +
+ + + + + +
Functions[hide private]
+
+   + + + + + + +
filter_out(config_filters, + unit_filters)
+ Function that determines if a unit should be included or not.
+ source code + +
+ +
+   + + + + + + +
extract_filter_list(filters)
+ Convert a comma separated list of filters into a python list.
+ source code + +
+ +
+ + + + + + + + + +
+ + + + + +
Variables[hide private]
+
+   + + _logger = logging.getLogger('sysdef.api') +
+ + + + + + +
+ + + + + +
Function Details[hide private]
+
+ +
+ +
+ + +
+

filter_out(config_filters, + unit_filters) +

+
source code  +
+ + Function that determines if a unit should be included or not. +returns None => could be included, string reason. +
+
+
+
+ +
+ +
+ + +
+

extract_filter_list(filters) +

+
source code  +
+ + Convert a comma separated list of filters into a python list. +The method will skip empty filters (empty strings). +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +