ATLAS Offline Software
Loading...
Searching...
No Matches
DiskListXRD.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_XRD_H
8#define SAMPLE_HANDLER__DISK_LIST_XRD_H
9
11
13
14namespace SH
15{
17 class DiskListXRD : public DiskList
18 {
19 //
20 // public interface
21 //
22
27 public:
28 void testInvariant () const;
29
30
47 public:
48 DiskListXRD (const std::string& val_server, const std::string& val_dir,
49 bool val_laxParsing = false);
50
51
52
53 //
54 // inherited interface
55 //
56
58 protected:
59 virtual bool getNext ();
60
61
63 protected:
64 virtual std::string getPath () const;
65
66
68 protected:
69 virtual DiskList *doOpenDir () const;
70
71
73 protected:
74 virtual std::string getDirname () const;
75
76
77
78 //
79 // private interface
80 //
81
83 private:
84 std::string m_server;
85
87 private:
88 std::string m_directory;
89
91 private:
93
95 private:
96 std::string m_context;
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
111 private:
113 };
114}
115
116#endif
virtual std::string getPath() const
the path for the current entry.
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
std::string m_server
the server from which we are reading
Definition DiskListXRD.h:84
std::string m_context
the context (for error reporting)
Definition DiskListXRD.h:96
virtual bool getNext()
get the next list entry
void testInvariant() const
test the invariant of this object
bool m_laxParser
whether we employ lax parsing
Definition DiskListXRD.h:92
virtual std::string getDirname() const
the base path for the directory listed
std::string m_directory
the directory we are reading
Definition DiskListXRD.h:88
std::string m_list
the result of the directory listing
bool m_isRead
whether the directory has been read
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
bool m_isDir
whether this is a directory
std::string m_file
the last file we read
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