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.
This issue has been migrated from https://cdcvs.fnal.gov/redmine/issues/13050 (FNAL account required) Originally created by @kutschke on 2016-06-25 21:13:56
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.