Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create generic configuration interface #14

Open
devin122 opened this issue Dec 28, 2020 · 0 comments
Open

Create generic configuration interface #14

devin122 opened this issue Dec 28, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@devin122
Copy link
Owner

Devise some sort of generic configuration interface for configuring runtime options on the various components.

Current sketch looks something like

class IConfigProvider {
public:
virtual string GetStringOption(const char* option_name) = 0;
int GetIntOption(cont char *option_name) = 0;
bool GetBoolOption(const char *option_name) = 0;
};

Open questions:

  • How are string valued options returned, and who owns the memory
  • Can modules provide some kind of schema to define what options they take, valid ranges, and/or default values?
  • If components can provide schema, what does the flow look like in terms of providing that to the configuration provider? Presumably the components want to query configuration at construction time, thus the schema needs to be provided before construction
@devin122 devin122 added the enhancement New feature or request label Dec 28, 2020
@devin122 devin122 added this to the v 0.2 milestone Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant