Berkeley Nuclear Data Software
EZFileSystem.h
Go to the documentation of this file.
1 #ifndef _EZ_FILE_SYSTEM_
2 #define _EZ_FILE_SYSTEM_
3 #include <filesystem>
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 
8 
9 
14 {
15 public:
16  void test();
17  //this function returns the current runtime directory as a string
18  static std::string cwd();
20  //the specified name
21  static void mkSubDir(std::string a_dirName);
25  static std::vector<std::string> getFileListWithExt(std::string a_directory,
26  std::string a_ext
27  );
28 
32  static std::vector<std::string> getFileListRWithExt(std::string a_directory,
33  std::string a_ext
34  );
39  static std::vector<std::string> getFileListRWithExtCont(std::string a_directory,
40  std::string a_ext,
41  std::string a_cont
42  );
43 };
44 
45 #endif
Definition: EZFileSystem.h:14
static void mkSubDir(std::string a_dirName)
this function makes a subdiretory within the runtime directory with
Definition: EZFileSystem.cpp:26
void test()
Definition: EZFileSystem.cpp:4
static std::string cwd()
Definition: EZFileSystem.cpp:22
static std::vector< std::string > getFileListWithExt(std::string a_directory, std::string a_ext)
Definition: EZFileSystem.cpp:38
static std::vector< std::string > getFileListRWithExt(std::string a_directory, std::string a_ext)
Definition: EZFileSystem.cpp:64
static std::vector< std::string > getFileListRWithExtCont(std::string a_directory, std::string a_ext, std::string a_cont)
Definition: EZFileSystem.cpp:92