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

Rework the I/O handling for relations #673

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

tmadlener
Copy link
Collaborator

BEGINRELEASENOTES

  • Rework the I/O handling for relations. This is mainly removing the differences in handling of interface and regular datatypes in relations.
    • Remove the conditional code generation from the jinja2 templates and add functionality that dispatches to the correct handling depending on a (c++) type check
  • Expose an interfaced_types member type for interface types and add a type helper to check whether a type is an interface type

ENDRELEASENOTES

This has fallen out as a relatively isolated change in #257, where this has become necessary to be able to handle links that contain an interface type.

include/podio/detail/RelationIOHelpers.h Outdated Show resolved Hide resolved
include/podio/detail/RelationIOHelpers.h Outdated Show resolved Hide resolved
This is work that has become necessary for making links work that
contain interface types.

- Remove differences in handling of interface vs regular types in the
jinja2 templates and lift it into a separate function that dispatches
depending on the type of the relation
- Make the interfaced_types type member publicly available for interface
types
- Add type helpers to detect whether a type is an interface type
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.

1 participant