fab.tools.tool_repository module#
This file contains the ToolRepository class.
- class fab.tools.tool_repository.ToolRepository#
Bases:
dict
This class implements the tool repository. It stores a list of tools for various categories. For each compiler, it will automatically create a tool called “linker-{compiler-name}” which can be used for linking with the specified compiler.
Singleton access. Changes the value of _singleton so that the constructor can verify that it is indeed called from here.
- add_tool(cls)#
Creates an instance of the specified class and adds it to the tool repository.
- get_tool(category, name)#
- Return type:
- Returns:
the tool with a given name in the specified category.
- Parameters:
- Raises: