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

Generalize osmium.apply() to work with an arbitrary number of handlers #241

Merged
merged 5 commits into from
Mar 3, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Mar 3, 2024

Reworks the apply() function to use an indirect handler that can handle a vector of BaseHandlers. This way, an arbitrary number of handlers can be chained in one apply.

NodeLocationForWays is now exposed through a wrapper class which also inherits from BaseHandler. This means we can get rid of the special treatment in apply(). The interface doesn't change except that there is a new functionality to switch off applying node locations to ways.call to

The only other child class WriteHandler uses a different implementation
for apply, so the generic variant is pointless.
That way, it can be used with generic apply functions.
@lonvia lonvia merged commit 71262e2 into osmcode:master Mar 3, 2024
20 checks passed
@lonvia lonvia deleted the generic-apply-II branch March 3, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant