00001 #ifndef DirectoryHelpers_h
00002 #define DirectoryHelpers_h
00003
00004 #include "TDirectory.h"
00005 #include "TFile.h"
00006 #include <string>
00007 #include <vector>
00008
00009 #include <sys/stat.h>
00010 #include <sys/types.h>
00011
00012 using namespace std;
00013
00014
00015 namespace DirectoryHelpers
00016 {
00017
00018
00019 void Tokenize(const string& str,
00020 vector<string>& tokens,
00021 const string& delimiters);
00022
00023
00024 TDirectory * GetDirectory(TDirectory *f, string dir, int create=0);
00025
00026
00027 TDirectory * GetDirectory(TFile *f, string dir, int create=0);
00028
00029
00030
00031 int MakeTrueDirectory(vector<string> paths, int pos=1);
00032
00033
00034 int MakeTrueDirectory(string dir);
00035
00036 }
00037
00038 #endif
00039