ROOT  6.06/09
Reference Guide
Public Member Functions | List of all members
ROOT::Internal::TFileImplBase Class Referenceabstract

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().

Definition at line 38 of file TFile.h.

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 TKeyFindKey (const std::string &name) const
 
template<class T >
const TKeyAdd (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 TDirectoryHeap ()
 Dedicated, process-wide TDirectory. More...
 

#include <ROOT/TFile.h>

+ Inheritance diagram for ROOT::Internal::TFileImplBase:
+ Collaboration diagram for ROOT::Internal::TFileImplBase:

Constructor & Destructor Documentation

ROOT::Internal::TFileImplBase::~TFileImplBase ( )
default

Member Function Documentation

virtual void ROOT::Internal::TFileImplBase::Close ( )
pure virtual

Flush() and make the file non-writable: close it.

virtual void ROOT::Internal::TFileImplBase::Flush ( )
pure virtual

Save all objects associated with this directory to the storage medium.

template<class T >
void ROOT::Internal::TFileImplBase::Write ( const std::string &  ,
const T &   
)
inline

Definition at line 49 of file TFile.h.


The documentation for this class was generated from the following file: