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 typeName member to link collections #748

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

Conversation

m-fila
Copy link
Contributor

@m-fila m-fila commented Mar 10, 2025

BEGINRELEASENOTES

  • Change type of typeName members to std::string_view. Add utility to concatenate std::string_views at compile time.
  • Add typeName static member to link collections. typeName can be checked at compilation time.
  • Deprecate linkCollTypeName and linkTypeName helper functions.

ENDRELEASENOTES

Adding utility to concatenate multiple std::string_views at compile time. Then using the utility to add missing typeName member for link collections.

The linkCollTypeName and linkTypeName functions will be now redundant so I propose to deprecate them. The only usage of them I could find is in EDM4hep in schema evolution

Closes #731

Copy link
Collaborator

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. Effectively I only have one real comment.

Regarding the deprecation / removal of the linkCollTypeName and linkTypeName functions, I think it's fine to remove them, they are in a detail namespace, and once this is merged we can get rid of the usage in EDM4hep and remove them here as well.

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.

Link collections do not have a typeName member like other collections
2 participants