Tag configuration items with a type

This commit is contained in:
Mike Auty
2024-08-06 22:01:13 +01:00
parent 32c8dc50af
commit 1837c6b8f9
3 changed files with 3 additions and 0 deletions
@@ -178,6 +178,7 @@ class ModuleInterface(interfaces.configuration.ConfigurableInterface):
config = super().build_configuration()
config["$type"] = "Module"
config["offset"] = self.config["offset"]
subconfigs = {
"symbol_table_name": self.context.symbol_space[
@@ -391,6 +391,7 @@ class DataLayerInterface(
# Translation Layers are constructable, and therefore require a class configuration variable
config["class"] = self.__class__.__module__ + "." + self.__class__.__name__
config["$type"] = "TranslationLayer"
return config
# ## Metadata methods
@@ -344,6 +344,7 @@ class SymbolTableInterface(
# Symbol Tables are constructable, and therefore require a class configuration variable
config["class"] = self.__class__.__module__ + "." + self.__class__.__name__
config["$type"] = "SymbolTable"
return config
@classmethod