neic-glass3  1.4.6
fileutil.h
Go to the documentation of this file.
1 /*****************************************
2  * This file is documented for Doxygen.
3  * If you modify this file please update
4  * the comments so that Doxygen will still
5  * be able to work.
6  ****************************************/
15 #ifndef FILEUTIL_H
16 #define FILEUTIL_H
17 
18 #include <string>
19 
20 namespace glass3 {
21 namespace util {
33 bool getFirstFileNameByExtension(const std::string &path,
34  const std::string &extension,
35  std::string &fileName); // NOLINT
36 
50 bool moveFileTo(std::string fileName, const std::string &dirName);
51 
63 bool copyFileTo(std::string from, std::string to);
64 
74 bool deleteFileFrom(std::string fileName);
75 } // namespace util
76 } // namespace glass3
77 #endif // FILEUTIL_H
bool moveFileTo(std::string fileName, const std::string &dirName)
move a file from one directory to another
Definition: fileutil.cpp:159
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
bool copyFileTo(std::string from, std::string to)
copy a file from one directory to another
Definition: fileutil.cpp:261
bool deleteFileFrom(std::string fileName)
delete a file
Definition: fileutil.cpp:291
bool getFirstFileNameByExtension(const std::string &path, const std::string &extension, std::string &fileName)
get the next file name in a directory
Definition: fileutil.cpp:28