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
5#ifndef SAMPLE_HANDLER__DISK_LIST_SRM_H
6#define SAMPLE_HANDLER__DISK_LIST_SRM_H
7
8//
9// Distributed under the Boost Software License, Version 1.0.
10// (See accompanying file LICENSE_1_0.txt or copy at
11// http://www.boost.org/LICENSE_1_0.txt)
12
13// Please feel free to contact me (krumnack@iastate.edu) for bug
14// reports, feature suggestions, praise and complaints.
15
16
17
19
21
22namespace SH
23{
25 class DiskListSRM : public DiskList
26 {
27 //
28 // public interface
29 //
30
35 public:
36 void testInvariant () const;
37
38
46 public:
47 DiskListSRM (const std::string& val_dir);
48
49
64 public:
65 DiskListSRM (const std::string& val_dir, const std::string& val_prefix);
66
67
68
69 //
70 // inherited interface
71 //
72
74 protected:
75 virtual bool getNext ();
76
77
79 protected:
80 virtual std::string getPath () const;
81
82
84 protected:
85 virtual DiskList *doOpenDir () const;
86
87
89 protected:
90 virtual std::string getDirname () const;
91
92
93
94 //
95 // private interface
96 //
97
99 private:
100 std::string m_dir;
101
103 private:
104 std::string m_prefix;
105
107 private:
108 std::string m_list;
109
111 private:
112 std::string m_file;
113
115 private:
116 bool m_isDir = false;
117 };
118}
119
120#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
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
DiskList()
standard constructor
Definition DiskList.cxx:45
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15