![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
43 :
m_dir (val_dir), m_prefix (
"root://eosatlas.cern.ch/" + val_dir), m_isRead (false)
51 DiskListEOS (
const std::string& val_dir,
const std::string& val_prefix)
52 :
m_dir (val_dir), m_prefix (val_prefix), m_isRead (false)
72 std::string::size_type split1 =
m_list.find (
'\n');
73 if (split1 == std::string::npos)
81 std::string::size_type split2 =
line.find (
"r");
87 for (
unsigned iter = 0,
end = 9; iter !=
end; ++ iter)
DiskListEOS(const std::string &val_dir)
make the listing for the given directory
TDirectory & m_dir
The directory we need to return to.
std::string m_prefix
the directory from with to read actual files
virtual std::string getDirname() const
the base path for the directory listed
std::string m_file
the last file we read
void testInvariant() const
test the invariant of this object
virtual std::string getPath() const
the path for the current entry.
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
std::string m_list
the result of the directory listing
bool m_isDir
whether this is a directory
std::string exec_read(const std::string &cmd)
effects: execute the given command and return the output returns: the output of the command guarantee...
virtual bool getNext()
get the next list entry
#define RCU_CHANGE_INVARIANT(x)
This module provides a lot of global definitions, forward declarations and includes that are used by ...
#define RCU_THROW_MSG(message)
#define RCU_READ_INVARIANT(x)
std::string m_dir
the directory we are reading
#define RCU_NEW_INVARIANT(x)