Skip to content

Commit

Permalink
forgot overload
Browse files Browse the repository at this point in the history
  • Loading branch information
nadrino committed Nov 27, 2024
1 parent b06b9e3 commit da1e3af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/GenericToolbox.Root.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ namespace GenericToolbox{
inline TDirectory* mkdirTFile(TFile* outputFile_, const std::string &dirName_);
inline TDirectory* getCurrentTDirectory();
inline void writeInTFileWithObjTypeExt(TDirectory* dir_, const TObject* objToSave_, std::string saveName_ = "", bool forceWriteFile_=false);
inline void writeInTFileWithObjTypeExt(TDirectory* dir_, const TObject& objToSave_, std::string saveName_ = "", bool forceWriteFile_=false);
inline void writeInTFile(TDirectory* dir_, const TObject* objToSave_, std::string saveName_ = "", bool forceWriteFile_=false);
inline void writeInTFile(TDirectory* dir_, const TObject& objToSave_, std::string saveName_ = "", bool forceWriteFile_=false);
inline void writeInTFile(TDirectory* dir_, const std::string& objToSave_, std::string saveName_, bool forceWriteFile_=false);
Expand Down Expand Up @@ -774,6 +775,9 @@ namespace GenericToolbox {
// Force TFile Write?
if( forceWriteFile_ ){ triggerTFileWrite(dir_); }
}
inline void writeInTFileWithObjTypeExt(TDirectory* dir_, const TObject& objToSave_, std::string saveName_, bool forceWriteFile_){
writeInTFileWithObjTypeExt(dir_, &objToSave_, std::move(saveName_), forceWriteFile_);
}
inline void writeInTFile(TDirectory* dir_, const TObject& objToSave_, std::string saveName_, bool forceWriteFile_){
writeInTFile(dir_, &objToSave_, std::move(saveName_), forceWriteFile_);
}
Expand Down

0 comments on commit da1e3af

Please sign in to comment.