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