diff --git a/core/base/inc/TObject.h b/core/base/inc/TObject.h index f3646aa4f4c5bc5953aa338eeef533b6f265c45c..0637421f9cd0b7fb8ea02624f991d7a94e00c9cf 100644 --- a/core/base/inc/TObject.h +++ b/core/base/inc/TObject.h @@ -87,17 +87,23 @@ public: kSingleKey = BIT(0), ///< write collection with single key kOverwrite = BIT(1), ///< overwrite existing object with same name kWriteDelete = BIT(2), ///< write object, then delete previous key with same name + }; - ///< Used to request that the class specific implementation of `TObject::Write` +protected: + enum DeprectatedWriteOpions { + ///< Used to request that the class specific implementation of `TObject::Write` ///< just prepare the objects to be ready to be written but do not actually write ///< them into the TBuffer. This is just for example by TBufferMerger to request ///< that the TTree inside the file calls `TTree::FlushBaskets` (outside of the merging lock) ///< and TBufferMerger will later ask for the write (inside the merging lock). ///< To take advantage of this feature the class needs to overload `TObject::Write` ///< and use this enum value accordingly. (See `TTree::Write` and `TObject::Write`) - kOnlyPrepStep = BIT(3) + ///< Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge) + kOnlyPrepStep = BIT(3) }; +public: + TObject(); TObject(const TObject &object); TObject &operator=(const TObject &rhs);