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 supportedPixelTypes typelist, replace ELEMENT_WRITE with TryToWriteToStore #69

Merged

Conversation

N-Dekker
Copy link
Collaborator

Avoided a few redundant `this->GetComponentType()` calls.
@N-Dekker
Copy link
Collaborator Author

N-Dekker commented Aug 22, 2024

"Build, test, package / build-test-cxx (macos-12) (pull_request)" failed saying (https://github.com/InsightSoftwareConsortium/ITKIOOMEZarrNGFF/actions/runs/10498234014/job/29082765516#step:11:1062):

ITKIOOMEZarrNGFF/ITK-build/Modules/ThirdParty/VNL/src/vxl/vcl -I/Users/runner/work/ITKIOOMEZarrNGFF/ITK-build/Modules/ThirdParty/VNL/src/vxl/core -mtune=generic -march=corei7 -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Wno-undefined-var-template -Woverloaded-virtual -Wctad-maybe-unsupported  -w  -Os -DNDEBUG -std=c++17 -isysroot /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -fPIC -MD -MT Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/vcl_deprecated.cxx.o -MF Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/vcl_deprecated.cxx.o.d -o Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/vcl_deprecated.cxx.o -c /Users/runner/work/ITKIOOMEZarrNGFF/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_deprecated.cxx
2024-08-22T00:18:02.7311400Z /Users/runner/work/ITKIOOMEZarrNGFF/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_deprecated.cxx:2:10: fatal error: 'iostream' file not found
2024-08-22T00:18:02.7321020Z #include <iostream>
2024-08-22T00:18:02.7321500Z          ^~~~~~~~~~

It cannot find <iostream>, interesting 🤔


Update: Looks like this was some "hick-up" of the CI system! With the latest force-push, it just works fine 😃

Anticipated sharing the list of supported pixel types between
`OMEZarrNGFFImageIO::Read` and `OMEZarrNGFFImageIO::Write`
Allowed the macro to be called anywhere in the source file.
Allowed `getKVstoreDriver` to be called by other functions from the unnamed
namespace more easily.

Following C++ Core Guidelines, May 11, 2024, "Use an unnamed (anonymous)
namespace for all internal/non-exported entities",
http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities
Replaced the original `ELEMENT_WRITE` macro with a variadic template, using a
C++17 fold-expression.

Follow-up to pull request InsightSoftwareConsortium#67
commit 77a2f45
"STYLE: Replace READ_ELEMENT_IF with TryToReadFromStore variadic template"
@N-Dekker N-Dekker marked this pull request as ready for review August 22, 2024 10:35
@N-Dekker
Copy link
Collaborator Author

Thanks for your approval, @dzenanz. I also think this PR is ready 😃

@dzenanz dzenanz merged commit c2ddc46 into InsightSoftwareConsortium:main Aug 26, 2024
18 checks passed
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.

2 participants