ROOT
6.06/09
Reference Guide
|
Base class for storage-specific ROOT file implementations.
A class deriving from TFileImplBase
is an object store: it can serialize any object for which ROOT I/O is available (generally: an object which has a dictionary), and it stores the object's data under a key name.
A TFileImplBase
stores whatever was added to it as a TDirectory
, when the TFileImplBase
object is destructed. It can store non-lifetime managed objects by passing them to Save()
.
Public Member Functions | |
~TFileImplBase ()=default | |
virtual void | Flush ()=0 |
Save all objects associated with this directory to the storage medium. More... | |
virtual void | Close ()=0 |
Flush() and make the file non-writable: close it. More... | |
template<class T > | |
void | Write (const std::string &, const T &) |
Public Member Functions inherited from ROOT::TDirectory | |
template<class T , class... ARGS> | |
TCoopPtr< T > | Create (const std::string &name, ARGS...args) |
Create an object of type T (passing some arguments to its constructor). More... | |
const TKey * | FindKey (const std::string &name) const |
template<class T > | |
const TKey & | Add (const std::string &name, TCoopPtr< T > ptr) |
Add an existing object (rather a TCoopPtr to it) to the TDirectory. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ROOT::TDirectory | |
static TDirectory & | Heap () |
Dedicated, process-wide TDirectory. More... | |
#include <ROOT/TFile.h>
|
default |
|
pure virtual |
Flush() and make the file non-writable: close it.
|
pure virtual |
Save all objects associated with this directory to the storage medium.
|
inline |