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

Add an API to use magic enum to define custom objects. #2

Open
tyler-gilbert opened this issue Sep 7, 2022 · 0 comments
Open

Add an API to use magic enum to define custom objects. #2

tyler-gilbert opened this issue Sep 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tyler-gilbert
Copy link
Member

class MyObject {

enum class Key {
  name,
  path,
  value
}

JsonValue get(Key key);
MyObject& set(Key key, JsonValue value);

private:
  JsonObject m_object;
};
@tyler-gilbert tyler-gilbert added the enhancement New feature or request label Sep 7, 2022
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