Skip to content

Add typeName member to link collections#748

Merged
tmadlener merged 6 commits into
AIDASoft:masterfrom
m-fila:link_typename
Apr 1, 2025
Merged

Add typeName member to link collections#748
tmadlener merged 6 commits into
AIDASoft:masterfrom
m-fila:link_typename

Conversation

@m-fila
Copy link
Copy Markdown
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

Comment thread include/podio/utilities/StaticConcatenate.h Outdated
Copy link
Copy Markdown
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.

Comment thread include/podio/utilities/StaticConcatenate.h Outdated
Comment thread include/podio/utilities/StaticConcatenate.h
@tmadlener
Copy link
Copy Markdown
Collaborator

As discussed during the meeting today. Merging this and then the corresponding PR in EDM4hep so that nightlies don't break.

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