ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include <string>
13
14namespace SH
15{
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:
165
167 };
168}
169
170#endif
virtual DiskList * doOpenDir() const =0
make a new list object for the sub-directory
std::string path() const
the path for the current entry.
Definition DiskList.cxx:71
virtual std::string getDirname() const =0
the base path for the directory listed
State
the current state
Definition DiskList.h:159
@ S_VALID
holding a valid entry
Definition DiskList.h:161
@ S_DONE
finished reading entries
Definition DiskList.h:162
@ S_BROKEN
an error occured
Definition DiskList.h:163
@ S_BLANK
just initialized
Definition DiskList.h:160
State m_state
the current state
Definition DiskList.h:166
std::string fileName() const
the filename for the current entry
Definition DiskList.cxx:81
virtual ~DiskList()
standard destructor
Definition DiskList.cxx:30
virtual std::string getPath() const =0
the path for the current entry.
virtual bool getNext()=0
get the next list entry
void testInvariant() const
test the invariant of this object
Definition DiskList.cxx:23
DiskList * openDir() const
make a new list object for the sub-directory
Definition DiskList.cxx:94
bool next()
get the next list entry
Definition DiskList.cxx:47
DiskList()
standard constructor
Definition DiskList.cxx:38
std::string dirname() const
the base path for the directory listed
Definition DiskList.cxx:104
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15