CMS 3D CMS Logo

DirManager.h
Go to the documentation of this file.
1 #ifndef EVFUTILITIESDIRMANAGER_H
2 #define EVFUTILITIESDIRMANAGER_H
3 
4 #include <sys/types.h>
5 #include <dirent.h>
6 
7 #include <string>
8 
9 #include <cstdlib>
10 
11 namespace evf {
12 
13  class DirManager {
14  public:
16  virtual ~DirManager() {}
17  unsigned int findHighestRun();
19  std::string findRunDir(unsigned int);
20  bool checkDirEmpty(std::string &);
21 
22  private:
23  std::string dir_; // this is the base dir with all runs in it
24  };
25 
26 } // namespace evf
27 #endif
Definition: fillJson.h:27
bool checkDirEmpty(std::string &)
Definition: DirManager.cc:64
unsigned int findHighestRun()
Definition: DirManager.cc:7
d
Definition: ztail.py:151
std::string dir_
Definition: DirManager.h:23
std::string findHighestRunDir()
Definition: DirManager.cc:23
std::string findRunDir(unsigned int)
Definition: DirManager.cc:43
virtual ~DirManager()
Definition: DirManager.h:16
DirManager(std::string &d)
Definition: DirManager.h:15