Skip to content

Replace global, map-based key-value store with type safe structs #1418

@deckstose

Description

@deckstose

Is your feature request related to a problem? Please describe.

Currently configuration is stored in a weakly typed key-value store, accessed by string key. It's global it's hard to reason about where a config is written and read from.

Describe the solution you'd like

Rewrite the map-based approach into structs, and pass them where needed. Either main or an app state should hold a single config instance that is ideally split into multiple sub-configs that can be passed by const& for read only access and wrapped with a mutex for write access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions