ATLAS Offline Software
|
a DiskList implementation for the XRD protocol More...
#include <DiskListXRD.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object More... | |
DiskListXRD (const std::string &val_server, const std::string &val_dir, bool val_laxParsing=false) | |
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_server |
the server from which we are reading More... | |
std::string | m_directory |
the directory we are reading More... | |
bool | m_laxParser |
whether we employ lax parsing More... | |
std::string | m_context |
the context (for error reporting) 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... | |
bool | m_isRead |
whether the directory has been read More... | |
State | m_state |
the current state More... | |
a DiskList implementation for the XRD protocol
Definition at line 25 of file DiskListXRD.h.
|
privateinherited |
SH::DiskListXRD::DiskListXRD | ( | const std::string & | val_server, |
const std::string & | val_dir, | ||
bool | val_laxParsing = false |
||
) |
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 |
val_laxParsing | if true , graciously skip over any error messages. |
Definition at line 42 of file DiskListXRD.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 113 of file DiskListXRD.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 126 of file DiskListXRD.cxx.
|
protectedvirtual |
get the next list entry
Implements SH::DiskList.
Definition at line 53 of file DiskListXRD.cxx.
|
protectedvirtual |
the path for the current entry.
Implements SH::DiskList.
Definition at line 104 of file DiskListXRD.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::DiskListXRD::testInvariant | ( | ) | const |
|
private |
the context (for error reporting)
Definition at line 104 of file DiskListXRD.h.
|
private |
the directory we are reading
Definition at line 96 of file DiskListXRD.h.
|
private |
the last file we read
Definition at line 112 of file DiskListXRD.h.
|
private |
whether this is a directory
Definition at line 116 of file DiskListXRD.h.
|
private |
whether the directory has been read
Definition at line 120 of file DiskListXRD.h.
|
private |
whether we employ lax parsing
Definition at line 100 of file DiskListXRD.h.
|
private |
the result of the directory listing
Definition at line 108 of file DiskListXRD.h.
|
private |
the server from which we are reading
Definition at line 92 of file DiskListXRD.h.
|
privateinherited |
the current state
Definition at line 174 of file DiskList.h.