ATLAS Offline Software
|
a DiskList implementation for the SRM protocol More...
#include <DiskListSRM.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object More... | |
DiskListSRM (const std::string &val_dir) | |
make the listing for the given directory More... | |
DiskListSRM (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... | |
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... | |
std::string | m_list |
the result of the directory listing More... | |
std::string | m_file |
the last file we read More... | |
bool | m_isDir |
whether this is a directory More... | |
State | m_state |
the current state More... | |
a DiskList implementation for the SRM protocol
Definition at line 25 of file DiskListSRM.h.
|
privateinherited |
SH::DiskListSRM::DiskListSRM | ( | const std::string & | val_dir | ) |
make the listing for the given directory
val_dir | the directory to list |
Definition at line 38 of file DiskListSRM.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 DiskListSRM.cxx.
|
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 108 of file DiskListSRM.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 121 of file DiskListSRM.cxx.
|
protectedvirtual |
get the next list entry
Implements SH::DiskList.
Definition at line 56 of file DiskListSRM.cxx.
|
protectedvirtual |
the path for the current entry.
Implements SH::DiskList.
Definition at line 99 of file DiskListSRM.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::DiskListSRM::testInvariant | ( | ) | const |
|
private |
the directory we are reading
Definition at line 100 of file DiskListSRM.h.
|
private |
the last file we read
Definition at line 112 of file DiskListSRM.h.
|
private |
whether this is a directory
Definition at line 116 of file DiskListSRM.h.
|
private |
the result of the directory listing
Definition at line 108 of file DiskListSRM.h.
|
private |
the directory from with to read actual files
Definition at line 104 of file DiskListSRM.h.
|
privateinherited |
the current state
Definition at line 174 of file DiskList.h.