Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ConfigCumulativeOverride Class Reference
Public Member Functions | |
def | __init__ |
def | remove_cumulative_overrides |
def | add_cumulative_overrides |
def | strict_cumulative_overrides |
def | update_target |
Detailed Description
Representation of overrides for cumulative attributes
Definition at line 228 of file config/__init__.py.
Constructor & Destructor Documentation
def __init__ | ( | self, | |
name, | |||
additions = None , |
|||
removals = None , |
|||
strict = False |
|||
) |
Construct a ConfigCumulativeOverride object Positional arguments: name - the name of the config file this came from ? Keyword arguments: additions - macros to add to the overrides removals - macros to remove from the overrides strict - Boolean indicating that attempting to remove from an override that does not exist should error
Definition at line 230 of file config/__init__.py.
Member Function Documentation
def add_cumulative_overrides | ( | self, | |
overrides | |||
) |
Extend the list of override additions. Positional arguments: overrides - a list of a names that, when the override is evaluated, will be added to the list
Definition at line 268 of file config/__init__.py.
def remove_cumulative_overrides | ( | self, | |
overrides | |||
) |
Extend the list of override removals. Positional arguments: overrides - a list of names that, when the override is evaluated, will be removed
Definition at line 253 of file config/__init__.py.
def strict_cumulative_overrides | ( | self, | |
overrides | |||
) |
Remove all overrides that are not the specified ones Positional arguments: overrides - a list of names that will replace the entire attribute when this override is evaluated.
Definition at line 284 of file config/__init__.py.
def update_target | ( | self, | |
target | |||
) |
Update the attributes of a target based on this override
Definition at line 295 of file config/__init__.py.
Generated on Tue Jul 12 2022 13:33:27 by
