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
5#ifndef SAMPLE_HANDLER__DISK_LIST_XRD_H
6#define SAMPLE_HANDLER__DISK_LIST_XRD_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 DiskListXRD : public DiskList
26 {
27 //
28 // public interface
29 //
30
35 public:
36 void testInvariant () const;
37
38
55 public:
56 DiskListXRD (const std::string& val_server, const std::string& val_dir,
57 bool val_laxParsing = false);
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_server;
93
95 private:
96 std::string m_directory;
97
99 private:
101
103 private:
104 std::string m_context;
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
119 private:
121 };
122}
123
124#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:92
std::string m_context
the context (for error reporting)
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
virtual std::string getDirname() const
the base path for the directory listed
std::string m_directory
the directory we are reading
Definition DiskListXRD.h:96
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:45
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15