77 const char *ftitle =
"",
Int_t compress = 1,
88 ,
const char *mountedFileSystemKey = 0);
116 operator const char *()
const;
117 operator const TFile *()
const;
119 operator int ()
const;
127 virtual void Reset();
197{
return GetTDirectory(); }
200inline TFileIter::operator
const TFile *()
const
201{
return GetTFile (); }
218inline TFileIter::operator int ()
const
219{
return CurrentCursorPosition(); }
221inline TFileIter::operator
const char *()
const
#define ClassDef(name, id)
Describe directory structure in memory.
virtual TFile * GetFile() const
static void PurgeKeys(TList *listOfKeys)
Remove the TKey duplication, leave the keys with highest cycle number only Sort if first.
virtual TObject * GetObject() const
read the object from TFile defined by the current TKey
TFileIter * fNestedIterator
void SetCursorPosition(Int_t cursorPosition)
virtual ~TFileIter()
TFileIter dtor.
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 const char * GetResourceName()
virtual Bool_t IsOpen() const
Check whether the associated ROOT TFile was open and TFile object is healthy.
TKey * GetCurrentKey() const
return the pointer to the current TKey
virtual Int_t TotalKeys() const
The total number of the TKey keys in the current TDirectory only Usually this means the total number ...
static const char * GetLocalFileNameKey()
virtual Bool_t operator!=(const TIterator &it) const
This operator compares two TIterator objects.
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 const char * GetForeignFileSystemKey()
int operator==(const char *name) const
TObject * operator*() const
Return current object or nullptr.
const char * GetKeyName() const
return the name of the current TKey
Int_t CurrentCursorPosition() const
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)
void Initialize()
to be documented
virtual void Reset()
Reset the status of the iterator.
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.
static TString MapName(const char *name, const char *localSystemKey=0, const char *mountedFileSystemKey=0)
virtual Int_t GetDepth() const
return the current number of the nested subdirectroies; = 0 - means there is no subdirectories
TKey * NextEventKey(UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*")
TObject * ReadObj(const TKey *key) const
Read the next TObject from for the TDirectory by TKey provided.
virtual const TFile * GetTFile() const
virtual TIterator & operator=(const TIterator &)
The inner TFidrectory interator;.
TFileIter & operator-=(Int_t shift)
virtual TObject * Next()
Return next object in the list. Returns 0 when no more objects in list.
Int_t GetObjlen() const
Returns the uncompressed length of the current object.
static const char * GetDefaultMapFileName()
virtual const TDirectory * GetTDirectory() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Iterator abstract base class.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Bool_t operator!=(const TIterator &aIter) const
This operator compares two TIterator objects.
Mother of all ROOT objects.