ATLAS Offline Software
Loading...
Searching...
No Matches
DiskListSRM.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef SAMPLE_HANDLER__DISK_LIST_SRM_H
8#define SAMPLE_HANDLER__DISK_LIST_SRM_H
9
11
13
14namespace SH
15{
17 class DiskListSRM : public DiskList
18 {
19 //
20 // public interface
21 //
22
27 public:
28 void testInvariant () const;
29
30
38 public:
39 DiskListSRM (const std::string& val_dir);
40
41
56 public:
57 DiskListSRM (const std::string& val_dir, const std::string& val_prefix);
58
59
60
61 //
62 // inherited interface
63 //
64
66 protected:
67 virtual bool getNext ();
68
69
71 protected:
72 virtual std::string getPath () const;
73
74
76 protected:
77 virtual DiskList *doOpenDir () const;
78
79
81 protected:
82 virtual std::string getDirname () const;
83
84
85
86 //
87 // private interface
88 //
89
91 private:
92 std::string m_dir;
93
95 private:
96 std::string m_prefix;
97
99 private:
100 std::string m_list;
101
103 private:
104 std::string m_file;
105
107 private:
108 bool m_isDir = false;
109 };
110}
111
112#endif
DiskListSRM(const std::string &val_dir)
make the listing for the given directory
bool m_isDir
whether this is a directory
std::string m_dir
the directory we are reading
Definition DiskListSRM.h:92
virtual bool getNext()
get the next list entry
std::string m_file
the last file we read
virtual std::string getDirname() const
the base path for the directory listed
void testInvariant() const
test the invariant of this object
virtual std::string getPath() const
the path for the current entry.
std::string m_list
the result of the directory listing
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
std::string m_prefix
the directory from with to read actual files
Definition DiskListSRM.h:96
DiskList()
standard constructor
Definition DiskList.cxx:38
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15