Skip to content

Move DataHeader to use fmt::format#5743

Merged
ktf merged 1 commit intoAliceO2Group:devfrom
ktf:use-fmt-data-header
Apr 7, 2021
Merged

Move DataHeader to use fmt::format#5743
ktf merged 1 commit intoAliceO2Group:devfrom
ktf:use-fmt-data-header

Conversation

@ktf
Copy link
Copy Markdown
Member

@ktf ktf commented Mar 19, 2021

Allows us to remove some code from DataHeader.h, which is
included pretty much everywhere.

@ktf ktf requested review from a team, davidrohr, shahor02 and wiechula as code owners March 19, 2021 01:31
@ktf
Copy link
Copy Markdown
Member Author

ktf commented Mar 19, 2021

@mkrzewic @matthiasrichter @davidrohr @shahor02 this should simplify the formatting and the Descriptor class itself. We can probably get rid of asstd::string and use a std::string_view instead.

@davidrohr
Copy link
Copy Markdown
Collaborator

fine for me if it works

@ktf
Copy link
Copy Markdown
Member Author

ktf commented Mar 19, 2021

I need to patch QualityControl or do things in steps... :-/

@ktf ktf force-pushed the use-fmt-data-header branch from 93a5286 to 6d5a1b5 Compare March 29, 2021 12:02
@ktf
Copy link
Copy Markdown
Member Author

ktf commented Mar 29, 2021

I have refactored the parts of this PR which do not break QC in #5819. We will be able to merge this only once #5819 is merged and a QC tag adapted to use the new functionality.

This allows us to drop the templated Print policy from the DataHeader.h
classes, hopefully simplifying the code. As a replacement for the various
print methods one can use DataHeaderHelpers.h in conjuction with
the various fmt / Logger.h methods.
@ktf ktf force-pushed the use-fmt-data-header branch from 6d5a1b5 to 741cc17 Compare March 30, 2021 15:31
@ktf
Copy link
Copy Markdown
Member Author

ktf commented Apr 7, 2021

Now that the associated QC is released (thanks @Barthelemy!), we can merge this.

@ktf ktf merged commit 5bc2219 into AliceO2Group:dev Apr 7, 2021
@ktf ktf deleted the use-fmt-data-header branch April 7, 2021 23:07
cortesep pushed a commit to cortesep/AliceO2 that referenced this pull request Jun 11, 2021
This allows us to drop the templated Print policy from the DataHeader.h
classes, hopefully simplifying the code. As a replacement for the various
print methods one can use DataHeaderHelpers.h in conjuction with
the various fmt / Logger.h methods.
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.

2 participants