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

[XML Markers] Implement generated init_xml_attribute() #67

Closed
Tracked by #64
AsherGlick opened this issue Jul 23, 2022 · 1 comment
Closed
Tracked by #64

[XML Markers] Implement generated init_xml_attribute() #67

AsherGlick opened this issue Jul 23, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AsherGlick
Copy link
Owner

The new generated classes written in #65 need a way to parse XML values into the member variables. This will be done by implementing the now virtual function:

bool init_xml_attribute(rapidxml::xml_attribute<>* attribute, vector<XMLError*> *errors);

This function will have static code inside of it such that it is able to translate from any of the stringy attribute names, found in the xml_fields value of any of the xml docs's frontmatter, to specific logic for setting the associated class variable.

One option may be to use gperf to generate a perfect hash lookup table at compile time.

@klingbolt
Copy link
Contributor

I will take this assignment

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

2 participants