ATLAS Offline Software
Loading...
Searching...
No Matches
DiskListLocal.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_LOCAL_H
8#define SAMPLE_HANDLER__DISK_LIST_LOCAL_H
9
11
12#include <string>
14
15namespace SH
16{
18 class DiskListLocal : public DiskList
19 {
20 //
21 // public interface
22 //
23
28 public:
29 void testInvariant () const;
30
31
39 public:
40 DiskListLocal (const std::string& val_dir);
41
42
57 public:
58 DiskListLocal (const std::string& val_dir, const std::string& val_prefix);
59
60
65 public:
66 virtual ~DiskListLocal ();
67
68
69
70 //
71 // inherited interface
72 //
73
75 protected:
76 virtual bool getNext ();
77
78
80 protected:
81 virtual std::string getPath () const;
82
83
85 protected:
86 virtual DiskList *doOpenDir () const;
87
88
90 protected:
91 virtual std::string getDirname () const;
92
93
94
95 //
96 // private interface
97 //
98
100 private:
101 std::string m_dir;
102
104 private:
105 std::string m_prefix;
106
108 private:
109 void *m_dirp;
110
112 private:
113 std::string m_file;
114 };
115}
116
117#endif
std::string m_prefix
the directory from with to read actual files
virtual std::string getDirname() const
the base path for the directory listed
std::string m_dir
the directory we are reading
void testInvariant() const
test the invariant of this object
virtual std::string getPath() const
the path for the current entry.
virtual DiskList * doOpenDir() const
make a new list object for the sub-directory
void * m_dirp
the directory pointer used
virtual ~DiskListLocal()
standard destructor
DiskListLocal(const std::string &val_dir)
make the listing for the given directory
std::string m_file
the file we last fetched
virtual bool getNext()
get the next list entry
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