![]() |
ATLAS Offline Software
|
an interface for listing directory contents, locally or on a file server More...
#include <DiskList.h>
Public Member Functions | |
| void | testInvariant () const |
| test the invariant of this object More... | |
| virtual | ~DiskList () |
| standard destructor More... | |
| bool | next () |
| get the next list entry More... | |
| std::string | path () const |
| the path for the current entry. More... | |
| std::string | fileName () const |
| the filename for the current entry More... | |
| DiskList * | openDir () const |
| make a new list object for the sub-directory More... | |
| std::string | dirname () const |
| the base path for the directory listed More... | |
Protected Member Functions | |
| DiskList () | |
| standard constructor More... | |
| virtual bool | getNext ()=0 |
| get the next list entry More... | |
| virtual std::string | getPath () const =0 |
| the path for the current entry. More... | |
| virtual DiskList * | doOpenDir () const =0 |
| make a new list object for the sub-directory More... | |
| virtual std::string | getDirname () const =0 |
| the base path for the directory listed More... | |
Private Types | |
| enum | State { S_BLANK, S_VALID, S_DONE, S_BROKEN } |
| the current state More... | |
Private Attributes | |
| State | m_state |
| the current state More... | |
an interface for listing directory contents, locally or on a file server
Definition at line 31 of file DiskList.h.
|
private |
|
virtual |
standard destructor
Definition at line 36 of file DiskList.cxx.
|
protected |
standard constructor
Definition at line 44 of file DiskList.cxx.
| std::string SH::DiskList::dirname | ( | ) | const |
the base path for the directory listed
Definition at line 110 of file DiskList.cxx.
|
protectedpure virtual |
make a new list object for the sub-directory
NULL if it is not a directory Implemented in SH::DiskListLocal, SH::DiskListEOS, SH::DiskListSRM, and SH::DiskListXRD.
| std::string SH::DiskList::fileName | ( | ) | const |
the filename for the current entry
Definition at line 87 of file DiskList.cxx.
|
protectedpure virtual |
the base path for the directory listed
Implemented in SH::DiskListLocal, SH::DiskListEOS, SH::DiskListSRM, and SH::DiskListXRD.
|
protectedpure virtual |
get the next list entry
Implemented in SH::DiskListLocal, SH::DiskListEOS, SH::DiskListSRM, and SH::DiskListXRD.
|
protectedpure virtual |
the path for the current entry.
Implemented in SH::DiskListLocal, SH::DiskListEOS, SH::DiskListSRM, and SH::DiskListXRD.
| bool SH::DiskList::next | ( | ) |
get the next list entry
Definition at line 53 of file DiskList.cxx.
| DiskList * SH::DiskList::openDir | ( | ) | const |
make a new list object for the sub-directory
NULL if it is not a directory Definition at line 100 of file DiskList.cxx.
| std::string SH::DiskList::path | ( | ) | const |
the path for the current entry.
Definition at line 77 of file DiskList.cxx.
| void SH::DiskList::testInvariant | ( | ) | const |
|
private |
the current state
Definition at line 174 of file DiskList.h.
1.8.18