13 #ifndef ROOT_TFileIter
14 #define ROOT_TFileIter
50 #ifndef ROOT_TIterator
85 const char *ftitle =
"",
Int_t compress = 1,
96 ,
const char *mountedFileSystemKey = 0);
124 operator const char *()
const;
125 operator const TFile *()
const;
127 operator int ()
const;
135 virtual void Reset();
205 {
return GetTDirectory(); }
208 inline TFileIter::operator
const TFile *()
const
209 {
return GetTFile (); }
226 inline TFileIter::operator int ()
const
227 {
return CurrentCursorPosition(); }
229 inline TFileIter::operator
const char *()
const
236 {
return name ? !strcmp(name,
GetKeyName()):0;}
TFileIter * fNestedIterator
virtual ~TFileIter()
TFileIter dtor.
Int_t CurrentCursorPosition() const
virtual const TFile * GetTFile() const
virtual TIterator & operator=(const TIterator &)
The inner TFidrectory interator;.
static const char * GetDefaultMapFileName()
virtual Int_t GetDepth() const
return the current number of the nested subdirectroies; = 0 - means there is no subdirectories ...
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void SetCursorPosition(Int_t cursorPosition)
const char * GetKeyName() const
return the name of the current TKey
static const char * GetLocalFileNameKey()
static const char * GetResourceName()
TKey * GetCurrentKey() const
return the pointer to the current TKey
TObject * ReadObj(const TKey *key) const
Read the next TObject from for the TDirectory by TKey provided.
Iterator abstract base class.
virtual Bool_t operator!=(const TIterator &it) const
This operator compares two TIterator objects.
#define ClassDef(name, id)
virtual TObject * NextEventGet(UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*")
reads, creates and returns the object by TKey name that matches the "name" .
static TString MapName(const char *name, const char *localSystemKey=0, const char *mountedFileSystemKey=0)
MapName(const char *name, const char *localSystemKey,const char *mountedFileSystemKey) Substitute th...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual Int_t NextEventPut(TObject *obj, UInt_t eventNum, UInt_t runNumber, const char *name=0)
Create a special TKey name with obj provided and write it out.
virtual const TDirectory * GetTDirectory() const
virtual TFile * GetFile() const
virtual TObject * Next()
Return next object in the list. Returns 0 when no more objects in list.
int operator==(const char *name) const
virtual TObject * GetObject() const
read the object from TFile defined by the current TKey
void Initialize()
to be documented
virtual Bool_t IsOpen() const
Check whether the associated ROOT TFile was open and TFile object is healthy.
virtual Int_t TotalKeys() const
The total number of the TKey keys in the current TDirectory only Usually this means the total number ...
virtual void Reset()
Reset the status of the iterator.
static const char * GetForeignFileSystemKey()
Bool_t operator!=(const TIterator &aIter) const
This operator compares two TIterator objects.
Describe directory structure in memory.
TObject * operator*() const
Return current object or nullptr.
virtual TKey * SkipObjects(Int_t nSkip=1)
Returns the TKey pointer to the nSkip TKey object from the current one nSkip = 0; the state of the it...
TFileIter & operator+=(Int_t shift)
Mother of all ROOT objects.
TFileIter & operator-=(Int_t shift)
TFileIter(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Open ROOT TFile by the name provided; This TFile is to be deleted by the TFileIter alone...
static void PurgeKeys(TList *listOfKeys)
Remove the TKey duplication, leave the keys with highest cycle number only Sort if first...
Int_t GetObjlen() const
Returns the uncompressed length of the current object.
TKey * NextEventKey(UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*")