|
libSDRForge
|
Explicit, non-destructive importer for legacy OpenRoadCode radio data. More...
Classes | |
| class | ImportedRadioData |
| Imported catalog and separate factory and user presets. More... | |
Functions | |
| str | _group (str key) |
| RadioMode | _mode (dict[str, Any] raw, RadioMode|None fallback=None) |
| str | _preset_id (str source, str profile_key, int index, int frequency_hz, str label) |
| ImportedRadioData | import_orc_radio_data (Path radio_root, *, str|None locale=None, Path|None user_presets_path=None, str owner="default") |
| Read legacy ORC JSON without modifying input files. | |
| int | persist_imported_user_presets (ImportedRadioData data, PresetStoreIf store) |
| Persist only missing deterministic user preset IDs. | |
Explicit, non-destructive importer for legacy OpenRoadCode radio data.
|
protected |
|
protected |
|
protected |
| ImportedRadioData sdrforge.adapters.orc_radio_import.import_orc_radio_data | ( | Path | radio_root, |
| * | , | ||
| str | None | locale = None, | ||
| Path | None | user_presets_path = None, | ||
| str | owner = "default" ) |
Read legacy ORC JSON without modifying input files.
Common profiles are overridden by a matching locale profile. Locales are opt-in; there is deliberately no implicit Romeo selection.
| radio_root | Root directory of legacy radio profiles. |
| locale | Optional regional directory overriding common profiles. |
| user_presets_path | Optional legacy user preset JSON path. |
| owner | Owner assigned to imported user presets. |
| int sdrforge.adapters.orc_radio_import.persist_imported_user_presets | ( | ImportedRadioData | data, |
| PresetStoreIf | store ) |
Persist only missing deterministic user preset IDs.
| data | Previously imported radio data. |
| store | Writable preset store. |