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

Builder State to transfer parameters #199

Merged

Conversation

rototor
Copy link
Contributor

@rototor rototor commented Apr 8, 2018

The item, that the *Renderers take way to much arguments in #196 is valid. To solve this I extracted the builder state in its own class, which is then passed to the renderer.

This allows to get more state / parameters into the builder without extending the constructors all the time. That those state classes are public is a pity, but we don't have C++ friend classes at hand here...

This also adds the TestcaseRunner to the regression tests, just as a "smoke" test.

@rototor
Copy link
Contributor Author

rototor commented Apr 8, 2018

Feel free to suggest a better class / variable name for the state.

@danfickle
Copy link
Owner

Thanks a lot mate. Looks good.

@danfickle danfickle merged commit 6473d3a into danfickle:open-dev-v1 Apr 9, 2018
@delafer
Copy link

delafer commented Apr 9, 2018

4ad3f0dc9b8db3eb0e3350d731dd7a24_400x400 1

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

Successfully merging this pull request may close these issues.

3 participants