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 | |
| virtual | ~DiskList () |
| standard destructor | |
| bool | next () |
| get the next list entry | |
| std::string | path () const |
| the path for the current entry. | |
| std::string | fileName () const |
| the filename for the current entry | |
| DiskList * | openDir () const |
| make a new list object for the sub-directory | |
| std::string | dirname () const |
| the base path for the directory listed | |
Protected Member Functions | |
| DiskList () | |
| standard constructor | |
| virtual bool | getNext ()=0 |
| virtual std::string | getPath () const =0 |
| virtual DiskList * | doOpenDir () const =0 |
| virtual std::string | getDirname () const =0 |
an interface for listing directory contents, locally or on a file server
| SH::DiskList::~DiskList | ( | ) | [virtual] |
standard destructor
| SH::DiskList::DiskList | ( | ) | [protected] |
standard constructor
| std::string SH::DiskList::dirname | ( | ) | const |
the base path for the directory listed
| virtual DiskList* SH::DiskList::doOpenDir | ( | ) | const [protected, pure virtual] |
make a new list object for the sub-directory
NULL if it is not a directory Implemented in SH::DiskListEOS, SH::DiskListLocal, SH::DiskListSRM, and SH::DiskListXRD.
| std::string SH::DiskList::fileName | ( | ) | const |
the filename for the current entry
| virtual std::string SH::DiskList::getDirname | ( | ) | const [protected, pure virtual] |
the base path for the directory listed
Implemented in SH::DiskListEOS, SH::DiskListLocal, SH::DiskListSRM, and SH::DiskListXRD.
| virtual bool SH::DiskList::getNext | ( | ) | [protected, pure virtual] |
get the next list entry
Implemented in SH::DiskListEOS, SH::DiskListLocal, SH::DiskListSRM, and SH::DiskListXRD.
| virtual std::string SH::DiskList::getPath | ( | ) | const [protected, pure virtual] |
the path for the current entry.
Implemented in SH::DiskListEOS, SH::DiskListLocal, SH::DiskListSRM, and SH::DiskListXRD.
| bool SH::DiskList::next | ( | ) |
get the next list entry
| DiskList * SH::DiskList::openDir | ( | ) | const |
make a new list object for the sub-directory
NULL if it is not a directory | std::string SH::DiskList::path | ( | void | ) | const |
the path for the current entry.
| void SH::DiskList::testInvariant | ( | ) | const |
test the invariant of this object
Reimplemented in SH::DiskListEOS, SH::DiskListLocal, SH::DiskListSRM, and SH::DiskListXRD.
1.6.1