#include <TFileIter.h>
Inheritance diagram for TFileIter:
Public Member Functions | |
TFileIter (const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0) | |
TFileIter (TFile *file=0) | |
TFileIter (TDirectory *directory) | |
TFileIter (const TFileIter &) | |
virtual | ~TFileIter () |
Int_t | CurrentCursorPosition () const |
virtual const TFile * | GetTFile () const |
virtual const TDirectory * | GetTDirectory () const |
virtual Bool_t | IsOpen () const |
virtual TObject * | NextEventGet (UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*") |
virtual Int_t | NextEventPut (TObject *obj, UInt_t eventNum, UInt_t runNumber, const char *name=0) |
void | SetCursorPosition (Int_t cursorPosition) |
void | SetCursorPosition (const char *keyNameToFind) |
Int_t | GetObjlen () const |
virtual Int_t | TotalKeys () const |
virtual TKey * | SkipObjects (Int_t nSkip=1) |
virtual TObject * | GetObject () const |
virtual Int_t | GetDepth () const |
TKey * | GetCurrentKey () const |
const char * | GetKeyName () const |
TFileIter & | operator= (Int_t cursorPosition) |
TFileIter & | operator= (const char *keyNameToFind) |
TFileIter & | operator+= (Int_t shift) |
TFileIter & | operator-= (Int_t shift) |
TFileIter & | operator++ () |
TFileIter & | operator-- () |
TObject * | operator * () const |
operator const char * () const | |
operator const TFile * () const | |
operator const TDirectory * () const | |
operator int () const | |
int | operator== (const char *name) const |
int | operator!= (const char *name) const |
virtual TObject * | Next () |
virtual TObject * | Next (Int_t nSkip) |
virtual void | Reset () |
virtual void | Rewind () |
TObject * | operator() (Int_t nSkip) |
TObject * | operator() () |
TFileIter (const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0) | |
TFileIter (TFile *file=0) | |
TFileIter (TDirectory *directory) | |
TFileIter (const TFileIter &) | |
virtual | ~TFileIter () |
Int_t | CurrentCursorPosition () const |
virtual const TFile * | GetTFile () const |
virtual const TDirectory * | GetTDirectory () const |
virtual Bool_t | IsOpen () const |
virtual TObject * | NextEventGet (UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*") |
virtual Int_t | NextEventPut (TObject *obj, UInt_t eventNum, UInt_t runNumber, const char *name=0) |
void | SetCursorPosition (Int_t cursorPosition) |
void | SetCursorPosition (const char *keyNameToFind) |
Int_t | GetObjlen () const |
virtual Int_t | TotalKeys () const |
virtual TKey * | SkipObjects (Int_t nSkip=1) |
virtual TObject * | GetObject () const |
virtual Int_t | GetDepth () const |
TKey * | GetCurrentKey () const |
const char * | GetKeyName () const |
TFileIter & | operator= (Int_t cursorPosition) |
TFileIter & | operator= (const char *keyNameToFind) |
TFileIter & | operator+= (Int_t shift) |
TFileIter & | operator-= (Int_t shift) |
TFileIter & | operator++ () |
TFileIter & | operator-- () |
TObject * | operator * () const |
operator const char * () const | |
operator const TFile * () const | |
operator const TDirectory * () const | |
operator int () const | |
int | operator== (const char *name) const |
int | operator!= (const char *name) const |
virtual TObject * | Next () |
virtual TObject * | Next (Int_t nSkip) |
virtual void | Reset () |
virtual void | Rewind () |
TObject * | operator() (Int_t nSkip) |
TObject * | operator() () |
Static Public Member Functions | |
static TString | MapName (const char *name, const char *localSystemKey=0, const char *mountedFileSystemKey=0) |
static const char * | GetResourceName () |
static const char * | GetDefaultMapFileName () |
static const char * | GetLocalFileNameKey () |
static const char * | GetForeignFileSystemKey () |
static void | PurgeKeys (TList *listOfKeys) |
static TString | MapName (const char *name, const char *localSystemKey=0, const char *mountedFileSystemKey=0) |
static const char * | GetResourceName () |
static const char * | GetDefaultMapFileName () |
static const char * | GetLocalFileNameKey () |
static const char * | GetForeignFileSystemKey () |
static void | PurgeKeys (TList *listOfKeys) |
Protected Member Functions | |
void | Initialize () |
TObject * | ReadObj (const TKey *key) const |
void | RestoreFileScope () |
void | SaveFileScope () |
TKey * | NextEventKey (UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*") |
void | Initialize () |
TObject * | ReadObj (const TKey *key) const |
void | RestoreFileScope () |
void | SaveFileScope () |
TKey * | NextEventKey (UInt_t eventNumber=UInt_t(-1), UInt_t runNumber=UInt_t(-1), const char *name="*") |
Protected Attributes | |
TDirectory * | fRootFile |
TString | fEventName |
UInt_t | fRunNumber |
UInt_t | fEventNumber |
Int_t | fCursorPosition |
Bool_t | fOwnTFile |
TDirectory * | fRootFile |
Private Member Functions | |
virtual TIterator & | operator= (const TIterator &) |
The inner TFidrectory interator;. | |
virtual bool | operator!= (const TIterator &it) const |
virtual TIterator & | operator= (const TIterator &) |
The inner TFidrectory interator;. | |
virtual bool | operator!= (const TIterator &it) const |
Private Attributes | |
TFile * | fFileBackUp |
TDirectory * | fDirectoryBackUp |
temporary data-members | |
TFileIter * | fNestedIterator |
to save/restore TFile/TDirectory global scope | |
TFile * | fFileBackUp |
TDirectory * | fDirectoryBackUp |
temporary data-members | |
TFileIter * | fNestedIterator |
to save/restore TFile/TDirectory global scope |
Definition at line 61 of file TFileIter.h.
TFileIter::TFileIter | ( | const char * | name, | |
Option_t * | option = "" , |
|||
const char * | ftitle = "" , |
|||
Int_t | compress = 1 , |
|||
Int_t | netopt = 0 | |||
) |
Definition at line 144 of file TFileIter.cxx.
References fOwnTFile, fRootFile, Initialize(), kTRUE, MapName(), and TFile::Open().
Referenced by ReadObj().
TFileIter::TFileIter | ( | TFile * | file = 0 |
) |
TFileIter::TFileIter | ( | TDirectory * | directory | ) |
TFileIter::TFileIter | ( | const TFileIter & | ) |
Definition at line 164 of file TFileIter.cxx.
References xmlio::Class, fOwnTFile, fRootFile, TNamed::GetName(), TObject::GetOption(), TNamed::GetTitle(), TObject::InheritsFrom(), Initialize(), MapName(), TFile::Open(), and SkipObjects().
TFileIter::~TFileIter | ( | ) | [virtual] |
Definition at line 190 of file TFileIter.cxx.
References TDirectory::Close(), fNestedIterator, fOwnTFile, fRootFile, TDirectory::IsWritable(), and TDirectory::Write().
TFileIter::TFileIter | ( | const char * | name, | |
Option_t * | option = "" , |
|||
const char * | ftitle = "" , |
|||
Int_t | compress = 1 , |
|||
Int_t | netopt = 0 | |||
) |
TFileIter::TFileIter | ( | TFile * | file = 0 |
) |
TFileIter::TFileIter | ( | TDirectory * | directory | ) |
TFileIter::TFileIter | ( | const TFileIter & | ) |
virtual TFileIter::~TFileIter | ( | ) | [virtual] |
The inner TFidrectory interator;.
Reimplemented from TListIter.
Definition at line 69 of file TFileIter.h.
virtual bool TFileIter::operator!= | ( | const TIterator & | it | ) | const [inline, private, virtual] |
Reimplemented from TListIter.
Definition at line 70 of file TFileIter.h.
References TListIter::operator!=().
void TFileIter::Initialize | ( | ) | [protected] |
Definition at line 204 of file TFileIter.cxx.
References TListIter::fDirection, fOwnTFile, fRootFile, IsOpen(), kIterForward, and Reset().
Referenced by TFileIter().
Definition at line 480 of file TFileIter.cxx.
References xmlio::Class, fNestedIterator, ReadObj(), and TFileIter().
Referenced by GetObject(), NextEventGet(), and ReadObj().
void TFileIter::RestoreFileScope | ( | ) | [inline, protected] |
Definition at line 256 of file TFileIter.h.
References fDirectoryBackUp, fFileBackUp, gDirectory, and gFile.
Referenced by NextEventPut().
void TFileIter::SaveFileScope | ( | ) | [inline, protected] |
Definition at line 252 of file TFileIter.h.
References fDirectoryBackUp, fFileBackUp, gDirectory, and gFile.
Referenced by NextEventPut().
TKey * TFileIter::NextEventKey | ( | UInt_t | eventNumber = UInt_t(-1) , |
|
UInt_t | runNumber = UInt_t(-1) , |
|||
const char * | name = "*" | |||
) | [protected] |
Definition at line 429 of file TFileIter.cxx.
References TDsKey::EventNumber(), fCursorPosition, TListIter::fDirection, fEventName, fEventNumber, fRunNumber, TNamed::GetName(), TDsKey::GetName(), kFALSE, kIterForward, kTRUE, Reset(), TDsKey::RunNumber(), TDsKey::SetKey(), and SkipObjects().
Referenced by NextEventGet().
Int_t TFileIter::CurrentCursorPosition | ( | ) | const [inline] |
Definition at line 157 of file TFileIter.h.
References CurrentCursorPosition(), fCursorPosition, and fNestedIterator.
Referenced by CurrentCursorPosition(), and operator int().
const TFile * TFileIter::GetTFile | ( | ) | const [inline, virtual] |
Definition at line 164 of file TFileIter.h.
References TDirectory::GetFile(), and GetTDirectory().
Referenced by operator const TFile *().
const TDirectory * TFileIter::GetTDirectory | ( | ) | const [inline, virtual] |
Definition at line 166 of file TFileIter.h.
References fNestedIterator, fRootFile, and GetTDirectory().
Referenced by GetTDirectory(), GetTFile(), and operator const TDirectory *().
TString TFileIter::MapName | ( | const char * | name, | |
const char * | localSystemKey = 0 , |
|||
const char * | mountedFileSystemKey = 0 | |||
) | [static] |
Definition at line 523 of file TFileIter.cxx.
References TSystem::AccessPathName(), TString::BeginsWith(), gEnv, GetDefaultMapFileName(), GetForeignFileSystemKey(), GetLocalFileNameKey(), GetResourceName(), TEnv::GetValue(), gSystem, and TString::Replace().
Referenced by G__G__Table_192_0_15(), G__setup_memfuncTFileIter(), and TFileIter().
const char * TFileIter::GetResourceName | ( | ) | [inline, static] |
Definition at line 148 of file TFileIter.h.
Referenced by G__G__Table_192_0_16(), G__setup_memfuncTFileIter(), and MapName().
const char * TFileIter::GetDefaultMapFileName | ( | ) | [inline, static] |
Definition at line 150 of file TFileIter.h.
Referenced by G__G__Table_192_0_17(), G__setup_memfuncTFileIter(), and MapName().
const char * TFileIter::GetLocalFileNameKey | ( | ) | [inline, static] |
Definition at line 152 of file TFileIter.h.
Referenced by G__G__Table_192_0_18(), G__setup_memfuncTFileIter(), and MapName().
const char * TFileIter::GetForeignFileSystemKey | ( | ) | [inline, static] |
Definition at line 154 of file TFileIter.h.
Referenced by G__G__Table_192_0_19(), G__setup_memfuncTFileIter(), and MapName().
void TFileIter::PurgeKeys | ( | TList * | listOfKeys | ) | [static] |
Definition at line 302 of file TFileIter.cxx.
References TList::FirstLink(), TKey::GetCycle(), TNamed::GetName(), TObjLink::GetObject(), TObjLink::Next(), TList::Remove(), and TList::Sort().
Referenced by G__G__Table_192_0_20(), G__setup_memfuncTFileIter(), and Reset().
Bool_t TFileIter::IsOpen | ( | ) | const [virtual] |
Definition at line 217 of file TFileIter.cxx.
References xmlio::Class, fRootFile, TObject::InheritsFrom(), TObject::IsZombie(), kFALSE, and kTRUE.
Referenced by Initialize(), and NextEventPut().
Int_t TFileIter::NextEventPut | ( | TObject * | obj, | |
UInt_t | eventNum, | |||
UInt_t | runNumber, | |||
const char * | name = 0 | |||
) | [virtual] |
Definition at line 499 of file TFileIter.cxx.
References TDirectory::cd(), xmlio::Class, fRootFile, gDirectory, TObject::InheritsFrom(), IsOpen(), TDirectory::IsWritable(), RestoreFileScope(), and SaveFileScope().
void TFileIter::SetCursorPosition | ( | Int_t | cursorPosition | ) | [inline] |
Definition at line 184 of file TFileIter.h.
References fCursorPosition, fNestedIterator, SetCursorPosition(), and SkipObjects().
Referenced by operator=(), and SetCursorPosition().
void TFileIter::SetCursorPosition | ( | const char * | keyNameToFind | ) |
Int_t TFileIter::GetObjlen | ( | ) | const |
Int_t TFileIter::TotalKeys | ( | ) | const [virtual] |
Definition at line 278 of file TFileIter.cxx.
References TListIter::fList, TCollection::GetSize(), and size.
Definition at line 378 of file TFileIter.cxx.
References TListIter::fCurCursor, TListIter::fCursor, fCursorPosition, TListIter::fDirection, TList::FirstLink(), TListIter::fList, fNestedIterator, TObjLink::GetObject(), TCollection::GetSize(), kIterForward, TList::LastLink(), TObjLink::Next(), TObjLink::Prev(), and SkipObjects().
Referenced by Next(), NextEventKey(), operator++(), operator+=(), operator--(), SetCursorPosition(), SkipObjects(), and TFileIter().
TObject * TFileIter::GetObject | ( | ) | const [virtual] |
Definition at line 256 of file TFileIter.cxx.
References GetCurrentKey(), and ReadObj().
Referenced by Next(), and operator *().
Int_t TFileIter::GetDepth | ( | ) | const [virtual] |
Definition at line 239 of file TFileIter.cxx.
References fNestedIterator, and GetDepth().
Referenced by GetDepth().
TKey * TFileIter::GetCurrentKey | ( | ) | const |
Definition at line 232 of file TFileIter.cxx.
Referenced by GetKeyName(), GetObject(), and GetObjlen().
const char * TFileIter::GetKeyName | ( | ) | const |
Definition at line 247 of file TFileIter.cxx.
References GetCurrentKey(), TNamed::GetName(), and name.
Referenced by operator const char *(), and operator==().
TFileIter & TFileIter::operator= | ( | const char * | keyNameToFind | ) | [inline] |
TFileIter & TFileIter::operator++ | ( | ) | [inline] |
TFileIter & TFileIter::operator-- | ( | ) | [inline] |
TObject * TFileIter::operator * | ( | ) | const [inline, virtual] |
TFileIter::operator const char * | ( | ) | const [inline] |
TFileIter::operator const TFile * | ( | ) | const [inline] |
TFileIter::operator const TDirectory * | ( | ) | const [inline] |
TFileIter::operator int | ( | ) | const [inline] |
int TFileIter::operator== | ( | const char * | name | ) | const [inline] |
int TFileIter::operator!= | ( | const char * | name | ) | const [inline] |
TObject * TFileIter::Next | ( | ) | [inline, virtual] |
Reimplemented from TListIter.
Definition at line 170 of file TFileIter.h.
Referenced by operator()().
void TFileIter::Reset | ( | ) | [virtual] |
Reimplemented from TListIter.
Definition at line 344 of file TFileIter.cxx.
References TListIter::fCurCursor, TListIter::fCursor, fCursorPosition, TListIter::fDirection, TList::FirstLink(), TListIter::fList, fNestedIterator, fRootFile, TDirectory::GetListOfKeys(), TCollection::GetSize(), TDirectory::IsWritable(), kIterForward, TList::LastLink(), TObjLink::Next(), TObjLink::Prev(), PurgeKeys(), and TListIter::Reset().
Referenced by Initialize(), NextEventKey(), Rewind(), and SetCursorPosition().
void TFileIter::Rewind | ( | ) | [inline, virtual] |
TObject * TFileIter::operator() | ( | ) | [inline] |
The inner TFidrectory interator;.
Reimplemented from TListIter.
Definition at line 69 of file TFileIter.h.
virtual bool TFileIter::operator!= | ( | const TIterator & | it | ) | const [inline, private, virtual] |
Reimplemented from TListIter.
Definition at line 70 of file TFileIter.h.
References TListIter::operator!=().
void TFileIter::Initialize | ( | ) | [protected] |
void TFileIter::RestoreFileScope | ( | ) | [protected] |
void TFileIter::SaveFileScope | ( | ) | [protected] |
TKey* TFileIter::NextEventKey | ( | UInt_t | eventNumber = UInt_t(-1) , |
|
UInt_t | runNumber = UInt_t(-1) , |
|||
const char * | name = "*" | |||
) | [protected] |
Int_t TFileIter::CurrentCursorPosition | ( | ) | const |
virtual const TFile* TFileIter::GetTFile | ( | ) | const [virtual] |
virtual const TDirectory* TFileIter::GetTDirectory | ( | ) | const [virtual] |
static TString TFileIter::MapName | ( | const char * | name, | |
const char * | localSystemKey = 0 , |
|||
const char * | mountedFileSystemKey = 0 | |||
) | [static] |
static const char* TFileIter::GetResourceName | ( | ) | [static] |
static const char* TFileIter::GetDefaultMapFileName | ( | ) | [static] |
static const char* TFileIter::GetLocalFileNameKey | ( | ) | [static] |
static const char* TFileIter::GetForeignFileSystemKey | ( | ) | [static] |
static void TFileIter::PurgeKeys | ( | TList * | listOfKeys | ) | [static] |
virtual Bool_t TFileIter::IsOpen | ( | ) | const [virtual] |
virtual TObject* TFileIter::NextEventGet | ( | UInt_t | eventNumber = UInt_t(-1) , |
|
UInt_t | runNumber = UInt_t(-1) , |
|||
const char * | name = "*" | |||
) | [virtual] |
virtual Int_t TFileIter::NextEventPut | ( | TObject * | obj, | |
UInt_t | eventNum, | |||
UInt_t | runNumber, | |||
const char * | name = 0 | |||
) | [virtual] |
void TFileIter::SetCursorPosition | ( | Int_t | cursorPosition | ) |
void TFileIter::SetCursorPosition | ( | const char * | keyNameToFind | ) |
Int_t TFileIter::GetObjlen | ( | ) | const |
virtual Int_t TFileIter::TotalKeys | ( | ) | const [virtual] |
virtual TObject* TFileIter::GetObject | ( | ) | const [virtual] |
virtual Int_t TFileIter::GetDepth | ( | ) | const [virtual] |
TKey* TFileIter::GetCurrentKey | ( | ) | const |
const char* TFileIter::GetKeyName | ( | ) | const |
TFileIter& TFileIter::operator= | ( | const char * | keyNameToFind | ) |
TFileIter& TFileIter::operator++ | ( | ) |
TFileIter& TFileIter::operator-- | ( | ) |
TFileIter::operator const char * | ( | ) | const |
TFileIter::operator const TFile * | ( | ) | const |
TFileIter::operator const TDirectory * | ( | ) | const |
TFileIter::operator int | ( | ) | const |
int TFileIter::operator== | ( | const char * | name | ) | const |
int TFileIter::operator!= | ( | const char * | name | ) | const |
virtual void TFileIter::Reset | ( | ) | [virtual] |
Reimplemented from TListIter.
virtual void TFileIter::Rewind | ( | ) | [virtual] |
TFile* TFileIter::fFileBackUp [private] |
TDirectory* TFileIter::fDirectoryBackUp [private] |
temporary data-members
Definition at line 66 of file TFileIter.h.
Referenced by RestoreFileScope(), and SaveFileScope().
TFileIter* TFileIter::fNestedIterator [private] |
to save/restore TFile/TDirectory global scope
Definition at line 67 of file TFileIter.h.
Referenced by CurrentCursorPosition(), GetDepth(), GetTDirectory(), ReadObj(), Reset(), SetCursorPosition(), SkipObjects(), and ~TFileIter().
TDirectory* TFileIter::fRootFile [protected] |
Definition at line 73 of file TFileIter.h.
Referenced by GetTDirectory(), Initialize(), IsOpen(), NextEventPut(), Reset(), TFileIter(), and ~TFileIter().
TString TFileIter::fEventName [protected] |
UInt_t TFileIter::fRunNumber [protected] |
UInt_t TFileIter::fEventNumber [protected] |
Int_t TFileIter::fCursorPosition [protected] |
Definition at line 77 of file TFileIter.h.
Referenced by CurrentCursorPosition(), NextEventKey(), Reset(), SetCursorPosition(), and SkipObjects().
Bool_t TFileIter::fOwnTFile [protected] |
Definition at line 78 of file TFileIter.h.
Referenced by Initialize(), TFileIter(), and ~TFileIter().
TFile* TFileIter::fFileBackUp [private] |
Definition at line 65 of file TFileIter.h.
TDirectory* TFileIter::fDirectoryBackUp [private] |
TFileIter* TFileIter::fNestedIterator [private] |
TDirectory* TFileIter::fRootFile [protected] |
Definition at line 73 of file TFileIter.h.