ATLAS Offline Software
|
a DiskList implementation for local directories More...
#include <DiskListLocal.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object More... | |
DiskListLocal (const std::string &val_dir) | |
make the listing for the given directory More... | |
DiskListLocal (const std::string &val_dir, const std::string &val_prefix) | |
make the listing for the given directory, but replacing the directory with prefix for the path More... | |
virtual | ~DiskListLocal () |
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 | |
virtual bool | getNext () |
get the next list entry More... | |
virtual std::string | getPath () const |
the path for the current entry. More... | |
virtual DiskList * | doOpenDir () const |
make a new list object for the sub-directory More... | |
virtual std::string | getDirname () const |
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 | |
std::string | m_dir |
the directory we are reading More... | |
std::string | m_prefix |
the directory from with to read actual files More... | |
void * | m_dirp |
the directory pointer used More... | |
std::string | m_file |
the file we last fetched More... | |
State | m_state |
the current state More... | |
a DiskList implementation for local directories
Definition at line 26 of file DiskListLocal.h.
|
privateinherited |
SH::DiskListLocal::DiskListLocal | ( | const std::string & | val_dir | ) |
make the listing for the given directory
val_dir | the directory to list |
Definition at line 38 of file DiskListLocal.cxx.
make the listing for the given directory, but replacing the directory with prefix for the path
val_dir | the directory to list |
val_prefix | the prefix with which val_dir will be replaced in the reported paths |
Definition at line 47 of file DiskListLocal.cxx.
|
virtual |
|
inherited |
the base path for the directory listed
Definition at line 110 of file DiskList.cxx.
|
protectedvirtual |
make a new list object for the sub-directory
NULL
if it is not a directory Implements SH::DiskList.
Definition at line 109 of file DiskListLocal.cxx.
|
inherited |
the filename for the current entry
Definition at line 87 of file DiskList.cxx.
|
protectedvirtual |
the base path for the directory listed
Implements SH::DiskList.
Definition at line 124 of file DiskListLocal.cxx.
|
protectedvirtual |
get the next list entry
Implements SH::DiskList.
Definition at line 70 of file DiskListLocal.cxx.
|
protectedvirtual |
the path for the current entry.
Implements SH::DiskList.
Definition at line 100 of file DiskListLocal.cxx.
|
inherited |
get the next list entry
Definition at line 53 of file DiskList.cxx.
|
inherited |
make a new list object for the sub-directory
NULL
if it is not a directory Definition at line 100 of file DiskList.cxx.
|
inherited |
the path for the current entry.
Definition at line 77 of file DiskList.cxx.
void SH::DiskListLocal::testInvariant | ( | ) | const |
|
private |
the directory we are reading
Definition at line 109 of file DiskListLocal.h.
|
private |
the directory pointer used
Definition at line 117 of file DiskListLocal.h.
|
private |
the file we last fetched
Definition at line 121 of file DiskListLocal.h.
|
private |
the directory from with to read actual files
Definition at line 113 of file DiskListLocal.h.
|
privateinherited |
the current state
Definition at line 174 of file DiskList.h.