Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:00:26

0001 #ifndef EVFUTILITIESDIRMANAGER_H
0002 #define EVFUTILITIESDIRMANAGER_H
0003 
0004 #include <sys/types.h>
0005 #include <dirent.h>
0006 
0007 #include <string>
0008 
0009 #include <cstdlib>
0010 
0011 namespace evf {
0012 
0013   class DirManager {
0014   public:
0015     DirManager(std::string &d) : dir_(d) {}
0016     virtual ~DirManager() {}
0017     unsigned int findHighestRun();
0018     std::string findHighestRunDir();
0019     std::string findRunDir(unsigned int);
0020     bool checkDirEmpty(std::string &);
0021 
0022   private:
0023     std::string dir_;  // this is the base dir with all runs in it
0024   };
0025 
0026 }  // namespace evf
0027 #endif