Iterator over files in in sub-directory.
Definition at line 63 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::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 226 of file RSysFile.cxx.
|
inlinevirtual |
Definition at line 228 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns true if directory or is file format supported.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 245 of file RSysFile.cxx.
|
inlineprivate |
Close directory for listing.
Definition at line 127 of file RSysFile.cxx.
|
inlineoverridevirtual |
Create generic description item for RBrowser.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 256 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::Browsable::RLevelIter.
Definition at line 232 of file RSysFile.cxx.
|
inlineprivate |
Return full dir name with appropriate slash at the end.
Definition at line 137 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns full information for current element.
Implements ROOT::Browsable::RLevelIter.
Definition at line 332 of file RSysFile.cxx.
|
inlineprivate |
Definition at line 216 of file RSysFile.cxx.
|
inlineoverridevirtual |
Returns current entry name
Implements ROOT::Browsable::RLevelIter.
Definition at line 242 of file RSysFile.cxx.
|
inlineoverridevirtual |
Shift to next entry.
Implements ROOT::Browsable::RLevelIter.
Definition at line 230 of file RSysFile.cxx.
|
inlineprivate |
Trying to produce next entry.
Definition at line 186 of file RSysFile.cxx.
|
inlineprivate |
Open directory for listing.
Definition at line 71 of file RSysFile.cxx.
|
inlineprivate |
Check if entry of that name exists.
Definition at line 151 of file RSysFile.cxx.
|
private |
! current file name
Definition at line 66 of file RSysFile.cxx.
|
private |
! stat for current file name
Definition at line 68 of file RSysFile.cxx.
|
private |
! current directory handle
Definition at line 65 of file RSysFile.cxx.
|
private |
! current item name
Definition at line 67 of file RSysFile.cxx.
|
private |
! fully qualified path without final slash
Definition at line 64 of file RSysFile.cxx.