ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
SampleHandler
DiskList.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef SAMPLE_HANDLER__DISK_LIST_H
8
#define SAMPLE_HANDLER__DISK_LIST_H
9
10
#include <
SampleHandler/Global.h
>
11
12
#include <string>
13
14
namespace
SH
15
{
23
class
DiskList
24
{
25
//
26
// public interface
27
//
28
33
public
:
34
void
testInvariant
()
const
;
35
36
43
public
:
44
virtual
~DiskList
();
45
46
54
public
:
55
bool
next
();
56
57
65
public
:
66
std::string
path
()
const
;
67
68
77
public
:
78
std::string
fileName
()
const
;
79
80
90
public
:
91
DiskList
*
openDir
()
const
;
92
93
99
public
:
100
std::string
dirname
()
const
;
101
102
103
104
//
105
// protected interface
106
//
107
114
protected
:
115
DiskList
();
116
117
118
119
//
120
// virtual interface
121
//
122
126
protected
:
127
virtual
bool
getNext
() = 0;
128
129
133
protected
:
134
virtual
std::string
getPath
()
const
= 0;
135
136
140
protected
:
141
virtual
DiskList
*
doOpenDir
()
const
= 0;
142
143
147
protected
:
148
virtual
std::string
getDirname
()
const
= 0;
149
150
151
152
//
153
// private interface
154
//
155
157
private
:
158
enum
State
159
{
160
S_BLANK
,
161
S_VALID
,
162
S_DONE
,
163
S_BROKEN
164
};
165
166
State
m_state
;
167
};
168
}
169
170
#endif
Global.h
SH::DiskList::doOpenDir
virtual DiskList * doOpenDir() const =0
make a new list object for the sub-directory
SH::DiskList::path
std::string path() const
the path for the current entry.
Definition
DiskList.cxx:71
SH::DiskList::getDirname
virtual std::string getDirname() const =0
the base path for the directory listed
SH::DiskList::State
State
the current state
Definition
DiskList.h:159
SH::DiskList::S_VALID
@ S_VALID
holding a valid entry
Definition
DiskList.h:161
SH::DiskList::S_DONE
@ S_DONE
finished reading entries
Definition
DiskList.h:162
SH::DiskList::S_BROKEN
@ S_BROKEN
an error occured
Definition
DiskList.h:163
SH::DiskList::S_BLANK
@ S_BLANK
just initialized
Definition
DiskList.h:160
SH::DiskList::m_state
State m_state
the current state
Definition
DiskList.h:166
SH::DiskList::fileName
std::string fileName() const
the filename for the current entry
Definition
DiskList.cxx:81
SH::DiskList::~DiskList
virtual ~DiskList()
standard destructor
Definition
DiskList.cxx:30
SH::DiskList::getPath
virtual std::string getPath() const =0
the path for the current entry.
SH::DiskList::getNext
virtual bool getNext()=0
get the next list entry
SH::DiskList::testInvariant
void testInvariant() const
test the invariant of this object
Definition
DiskList.cxx:23
SH::DiskList::openDir
DiskList * openDir() const
make a new list object for the sub-directory
Definition
DiskList.cxx:94
SH::DiskList::next
bool next()
get the next list entry
Definition
DiskList.cxx:47
SH::DiskList::DiskList
DiskList()
standard constructor
Definition
DiskList.cxx:38
SH::DiskList::dirname
std::string dirname() const
the base path for the directory listed
Definition
DiskList.cxx:104
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