|
ATLAS Offline Software
|
Go to the documentation of this file.
40 :
m_dir (val_dir), m_prefix (val_dir), m_dirp (0)
48 DiskListLocal (
const std::string& val_dir,
const std::string& val_prefix)
49 :
m_dir (val_dir), m_prefix (val_prefix), m_dirp (0)
63 gSystem->FreeDirectory (
m_dirp);
82 const char *subresult = 0;
85 subresult = gSystem->GetDirEntry (
m_dirp);
88 gSystem->FreeDirectory (
m_dirp);
93 }
while (strcmp (subresult,
".") == 0 || strcmp (subresult,
"..") == 0);
114 std::unique_ptr<DiskListLocal>
result
116 result->m_dirp = gSystem->OpenDirectory (
result->m_dir.c_str());
void * m_dirp
the directory pointer used
TDirectory & m_dir
The directory we need to return to.
std::string m_file
the file we last fetched
std::string m_prefix
the directory from with to read actual files
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
void testInvariant() const
test the invariant of this object
an interface for listing directory contents, locally or on a file server
DiskListLocal(const std::string &val_dir)
make the listing for the given directory
virtual ~DiskListLocal()
standard destructor
virtual std::string getDirname() const
the base path for the directory listed
virtual std::string getPath() const
the path for the current entry.
a DiskList implementation for local directories
virtual bool getNext()
get the next list entry
#define RCU_DESTROY_INVARIANT(x)
std::string m_dir
the directory we are reading
#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)
#define RCU_NEW_INVARIANT(x)