21 #include <experimental/string_view> 43 virtual void Flush() = 0;
49 void Write(
const std::string& ,
const T& ) {}
94 operator bool()
const {
return fImpl; }
98 TFilePtr(TCoopPtr<Internal::TFileImplBase>);
basic_string_view< char > string_view
Namespace for new ROOT classes and functions.
TCoopPtr< Internal::TFileImplBase > fImpl
Base class for storage-specific ROOT file implementations.
Key/value store of objects.
void Write(const std::string &, const T &)
virtual void Close()=0
Flush() and make the file non-writable: close it.
TCoopPtr< T > Create(const std::string &name, ARGS... args)
Create an object of type T (passing some arguments to its constructor).
virtual void Flush()=0
Save all objects associated with this directory to the storage medium.
Pointer_t Get() const
Get the raw pointer.
Several pointers point to the same object, any of them can delete the object, setting all of them to ...