Feature #13050
Request a new variant of T* TFileDirectory::makeAndRegister<T>
0%
Description
Julia Yarba sent a question to the artists mailing list the other day and I answered it. My answer did not solve her problem.
When we first developed TFileDirectory::makeAndRegister we presumed that all objects being created by this call would have both names and titles; that is the class being instantiated has member functions SetName and SetTitle.
In Julia's use case the class as SetName but not SetTitle.
I believe that we should provide another variant for objects that have SetName but not SetTitle. The only difference in the two implementations would be removing the call to SetTitle.
I don't know if makes sense to have a variant for a class without SetName - how would one retrieve an unnamed object from the root file?
I have not thought about whether we can do this with a new overload of makeAndRegister or if we need a new name.
History
#1 Updated by Kyle Knoepfel over 4 years ago
- Status changed from New to Accepted
We will provide a make(AndRegister)
overload that does not require a title.