ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
SampleHandler
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
10
#include <
SampleHandler/Global.h
>
11
12
#include <
SampleHandler/DiskList.h
>
13
14
namespace
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
Global.h
DiskList.h
SH::DiskListSRM::DiskListSRM
DiskListSRM(const std::string &val_dir)
make the listing for the given directory
Definition
DiskListSRM.cxx:31
SH::DiskListSRM::m_isDir
bool m_isDir
whether this is a directory
Definition
DiskListSRM.h:108
SH::DiskListSRM::m_dir
std::string m_dir
the directory we are reading
Definition
DiskListSRM.h:92
SH::DiskListSRM::getNext
virtual bool getNext()
get the next list entry
Definition
DiskListSRM.cxx:49
SH::DiskListSRM::m_file
std::string m_file
the last file we read
Definition
DiskListSRM.h:104
SH::DiskListSRM::getDirname
virtual std::string getDirname() const
the base path for the directory listed
Definition
DiskListSRM.cxx:114
SH::DiskListSRM::testInvariant
void testInvariant() const
test the invariant of this object
Definition
DiskListSRM.cxx:24
SH::DiskListSRM::getPath
virtual std::string getPath() const
the path for the current entry.
Definition
DiskListSRM.cxx:92
SH::DiskListSRM::m_list
std::string m_list
the result of the directory listing
Definition
DiskListSRM.h:100
SH::DiskListSRM::doOpenDir
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
Definition
DiskListSRM.cxx:101
SH::DiskListSRM::m_prefix
std::string m_prefix
the directory from with to read actual files
Definition
DiskListSRM.h:96
SH::DiskList::DiskList
DiskList()
standard constructor
Definition
DiskList.cxx:38
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition
PrunDriver.h:15
Generated on
for ATLAS Offline Software by
1.17.0