|
ATLAS Offline Software
|
Go to the documentation of this file.
43 DiskListXRD (
const std::string& val_server,
const std::string& val_directory,
45 : m_server (val_server), m_directory (val_directory),
46 m_laxParser (val_laxParser), m_isRead (false)
57 using namespace msgScanDir;
71 std::string::size_type split1 =
m_list.find (
'\n');
72 if (split1 == std::string::npos)
75 const std::string
line (
m_list.substr (0, split1));
79 std::string::size_type split2 =
line.find (
'/');
80 if (split2 != std::string::npos &&
96 throw std::runtime_error (
message);
std::string m_file
the last file we read
virtual bool getNext()
get the next list entry
virtual std::string getPath() const
the path for the current entry.
std::string m_list
the result of the directory listing
bool m_isDir
whether this is a directory
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
std::string m_directory
the directory we are reading
void testInvariant() const
test the invariant of this object
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
an interface for listing directory contents, locally or on a file server
bool m_isRead
whether the directory has been read
virtual std::string getDirname() const
the base path for the directory listed
std::string m_server
the server from which we are reading
std::string m_context
the context (for error reporting)
std::string exec_read(const std::string &cmd)
effects: execute the given command and return the output returns: the output of the command guarantee...
bool m_laxParser
whether we employ lax parsing
#define RCU_CHANGE_INVARIANT(x)
This module provides a lot of global definitions, forward declarations and includes that are used by ...
#define RCU_READ_INVARIANT(x)
#define RCU_NEW_INVARIANT(x)