A Project configuration.
More...
|
| def | __init__ |
| | Initialize self from XML in project_element.
|
| |
| def | sub_node_delete |
| | Delete the index'th sub node from *self.
|
| |
| def | xml_write |
| | Write self out as XML to out_stream indented by indent
|
| |
| def | __init__ |
| | Node Constructor
|
| |
| def | parent_index_find |
| | Recursively find parent of self starting from root_node.
|
| |
| def | show |
| | Method print self indented by indent.
|
| |
| def | sub_node_append |
| | Append sub_node to the children sub nodes of self.
|
| |
| def | xml_write |
| | Method writes self to out_stream indented by indent.
|
| |
A Project configuration.
This class specifies the overall configuration of a project. It corresponds to the following XML:
<Project Name="...">
<Module_Use Name="..." Vendor="..." Module="...">
...
</Module_Use>
</Project>
| def data_structures.Project.__init__ |
( |
|
self, |
|
|
|
project_element, |
|
|
|
modules_table, |
|
|
|
style |
|
) |
| |
Initialize self from XML in project_element.
- Parameters
-
| self | Project to initialize |
| project_element | None ET.Element that contains the XML |
| modules_table | dict module look up table |
| style | Style object that specifies how to format generate code. |
This method will initialize self from the XML in project_element. modules_table is used to construct a table of the modules that are read in. If project_element is None, a self is initialized to an empty project.
| def data_structures.Project.sub_node_delete |
( |
|
self, |
|
|
|
index |
|
) |
| |
Delete the index'th sub node from *self.
- Parameters
-
| self | Project to delete sub node from |
| index | int The index of the sub node to delete |
This method will delete the index'th sub node of self.
| def data_structures.Project.xml_write |
( |
|
self, |
|
|
|
indent, |
|
|
|
out_stream |
|
) |
| |
Write self out as XML to out_stream indented by indent
- Parameters
-
| self | Project to write out as XML |
| indent | int The amount to indent the XML by |
| out_stream | File to write XML out to |
This method will write self out as XML to out_stream indented by indent. Currently, indent must be 0.
| tuple data_structures.Project.module_use |
|
static |
Initial value:
2 None, module_use_element, modules_table, style)
The documentation for this class was generated from the following file: