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 Schema::child_name() #13

Closed
cyrush opened this issue Jul 29, 2016 · 0 comments · Fixed by #23
Closed

add Schema::child_name() #13

cyrush opened this issue Jul 29, 2016 · 0 comments · Fixed by #23
Labels
Milestone

Comments

@cyrush
Copy link
Member

cyrush commented Jul 29, 2016

for the object case,

add:
std::string child_name(index_t idx) const;

to complement:
index_t child_index(const std::string &path) const;

@cyrush cyrush added the feature label Jul 31, 2016
@cyrush cyrush added this to the 0.2.0 milestone Jul 31, 2016
cyrush added a commit that referenced this issue Aug 10, 2016
if the Schema represents an object, this method
allows you to get a child's name by index.

if the Schema is not an object, or the index is bad
it returns an empty string.

This commit resolves #13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant