3.1.25.2.3. waf_tools.hcg.NodeStructure
- class waf_tools.hcg.NodeStructure(xml_file_path: str, remove: list[str])
Bases:
objectParses and holds all generated file information from a HALCoGen configuration.
Reads the
.hcgXML file to determine: - The associated.dildevice file name. - Whether FreeRTOS is enabled in the HALCoGen project. - Which header and source files will be generated.Files listed in the
removelist are excluded from the output lists.- Parameters:
xml_file_path – Absolute path to the
.hcgXML configuration file.remove – List of file paths that shall be excluded from the generated outputs.
- parse_xml() None
Parse the HALCoGen XML to populate headers, sources, and FreeRTOS state.
Iterates over all top-level XML elements and delegates to
_parse_devicefor device/tool validation and_parse_systemfor file path extraction.- Raises:
ToolNotSupportedError – If the configured toolchain is not “ti”.