Iterator over files in in sub-directory.
Definition at line 64 of file RSysFile.cxx.
Public Member Functions | |
RSysDirLevelIter (const std::string &path="") | |
virtual | ~RSysDirLevelIter () |
bool | CanItemHaveChilds () const override |
Returns true if directory or is file format supported. | |
std::unique_ptr< RItem > | CreateItem () override |
Create generic description item for RBrowser. | |
bool | Find (const std::string &name, int=-1) override |
Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match. | |
std::shared_ptr< RElement > | GetElement () override |
Returns full information for current element. | |
std::string | GetItemName () const override |
Returns current entry name | |
bool | Next () override |
Shift to next entry. | |
Public Member Functions inherited from ROOT::Experimental::Browsable::RLevelIter | |
virtual | ~RLevelIter ()=default |
Private Member Functions | |
void | CloseDir () |
Close directory for listing. | |
std::string | FullDirName () const |
Return full dir name with appropriate slash at the end. | |
std::string | GetFileExtension (const std::string &fname) const |
bool | NextDirEntry () |
Trying to produce next entry. | |
bool | OpenDir () |
Open directory for listing. | |
bool | TestDirEntry (const std::string &name) |
Check if entry of that name exists. | |
Private Attributes | |
std::string | fCurrentName |
! current file name | |
FileStat_t | fCurrentStat |
! stat for current file name | |
void * | fDir {nullptr} |
! current directory handle | |
std::string | fItemName |
! current item name | |
std::string | fPath |
! fully qualified path without final slash | |
|
inlineexplicit |
Definition at line 227 of file RSysFile.cxx.
|
inlinevirtual |
Definition at line 229 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns true if directory or is file format supported.
Reimplemented from ROOT::Experimental::Browsable::RLevelIter.
Definition at line 246 of file RSysFile.cxx.
|
inlineprivate |
Close directory for listing.
Definition at line 128 of file RSysFile.cxx.
|
inlineoverridevirtual |
Create generic description item for RBrowser.
Reimplemented from ROOT::Experimental::Browsable::RLevelIter.
Definition at line 257 of file RSysFile.cxx.
|
inlineoverridevirtual |
Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match.
Reimplemented from ROOT::Experimental::Browsable::RLevelIter.
Definition at line 233 of file RSysFile.cxx.
|
inlineprivate |
Return full dir name with appropriate slash at the end.
Definition at line 138 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns full information for current element.
Implements ROOT::Experimental::Browsable::RLevelIter.
Definition at line 333 of file RSysFile.cxx.
|
inlineprivate |
Definition at line 217 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns current entry name
Implements ROOT::Experimental::Browsable::RLevelIter.
Definition at line 243 of file RSysFile.cxx.
|
inlineoverridevirtual |
Shift to next entry.
Implements ROOT::Experimental::Browsable::RLevelIter.
Definition at line 231 of file RSysFile.cxx.
|
inlineprivate |
Trying to produce next entry.
Definition at line 187 of file RSysFile.cxx.
|
inlineprivate |
Open directory for listing.
Definition at line 72 of file RSysFile.cxx.
|
inlineprivate |
Check if entry of that name exists.
Definition at line 152 of file RSysFile.cxx.
|
private |
! current file name
Definition at line 67 of file RSysFile.cxx.
|
private |
! stat for current file name
Definition at line 69 of file RSysFile.cxx.
|
private |
! current directory handle
Definition at line 66 of file RSysFile.cxx.
|
private |
! current item name
Definition at line 68 of file RSysFile.cxx.
|
private |
! fully qualified path without final slash
Definition at line 65 of file RSysFile.cxx.