-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Addition of Unique Ptr type Open interface with implementation #14017
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
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
@@ -299,6 +299,11 @@ class TFile : public TDirectoryFile { | |||
static TFile *Open(const char *name, Option_t *option = "", | |||
const char *ftitle = "", Int_t compress = ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, | |||
Int_t netopt = 0); | |||
|
|||
static std::unique_ptr<TFile> OpenU(const char *name, Option_t *option = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static std::unique_ptr<TFile> OpenU(const char *name, Option_t *option = "", | |
static std::unique_ptr<TFile> OpenUniquePtr(const char *name, Option_t *option = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shall have a naming discussion in Mattermost's I/O channel. I promise that nobody will want to spell OpenUniquePtr
:-) And I don't want to see Bronch
-style Opan
either :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Axel-Naumann @pcanal Is it fine if we keep it as OpenU for the time being?
@phsft-bot build |
Starting build on |
Build failed on ROOT-ubuntu2004/python3. Errors:
|
Build failed on ROOT-ubuntu2204/nortcxxmod. Errors:
|
Build failed on ROOT-performance-centos8-multicore/soversion. Errors:
|
Build failed on mac12arm/cxx20. Errors:
|
Build failed on windows10/default. Errors:
|
I've just got the testing framework ready, and will conduct local tests before further review. (Just read the PR code of conduct, my apologies for creating a PR without the local tests) |
@Axel-Naumann I've left a message on the root web channel https://mattermost.web.cern.ch/root/channels/root-io, could you have a look? |
@pcanal Successfully tested changes locally, ready for review 👍 |
Return unique ptr TFile directly Co-authored-by: Philippe Canal <[email protected]>
@pcanal I had been running the master branch for tests and builds all this time, and not my patch branch; that's why its been failing the Jekyll build 😅 |
Can I have the review for this change? |
@pcanal For some reason the clang tools is running on a different branch, and is not addressing the latest commit to this branch.. Everything else seems fine. Also as a side note, should I rebase all of this to a single commit? |
@pcanal Can this be merged? And must I rebase this to clean up the commit history? |
@Axel-Naumann Any updates on the naming convention to be used? Also, I'd like to know if there is a possibility for me adding some unit test cases for the newly implemented interface, thanks. |
We are still discussing the names. The current proposal is:
In the meantime, you should indeed start getting familiar with the testing infrastructure. See io/io/test for some examples. |
This Pull request:
Addition of Unique Pointer for TFile::Open -> Creation of Interface and implementation for the same
Changes or fixes:
Enables utilization of Unique Pointer for TFile::Open
Checklist: