OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fileSystem.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
2 #define OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
3 
5 
6 namespace op
7 {
8  OP_API void makeDirectory(const std::string& directoryPath);
9 
10  OP_API bool existDirectory(const std::string& directoryPath);
11 
12  OP_API bool existFile(const std::string& filePath);
13 
20  OP_API std::string formatAsDirectory(const std::string& directoryPathString);
21 
28 
35 
42 
49 
56 
64  OP_API std::vector<std::string> getFilesOnDirectory(const std::string& directoryPath,
65  const std::vector<std::string>& extensions = {});
66 
74  OP_API std::vector<std::string> getFilesOnDirectory(const std::string& directoryPath,
75  const std::string& extension);
76 
78 
79  OP_API void removeAllOcurrencesOfSubString(std::string& stringToModify, const std::string& substring);
80 
81  OP_API void replaceAll(std::string& stringText, const char charToChange, const char charToAdd);
82 }
83 
84 #endif // OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
OP_API void replaceAll(std::string &stringText, const char charToChange, const char charToAdd)
OP_API std::string getFileParentFolderPath(const std::string &fullPath)
OP_API void removeAllOcurrencesOfSubString(std::string &stringToModify, const std::string &substring)
OP_API std::string getFileExtension(const std::string &fullPath)
OP_API void makeDirectory(const std::string &directoryPath)
OP_API bool existDirectory(const std::string &directoryPath)
OP_API std::string getFileNameAndExtension(const std::string &fullPath)
OP_API std::string getFileNameNoExtension(const std::string &fullPath)
OP_API std::string formatAsDirectory(const std::string &directoryPathString)
OP_API std::string getFullFilePathNoExtension(const std::string &fullPath)
OP_API bool existFile(const std::string &filePath)
#define OP_API
Definition: macros.hpp:16
OP_API std::string removeSpecialsCharacters(const std::string &stringToVariate)
OP_API std::vector< std::string > getFilesOnDirectory(const std::string &directoryPath, const std::vector< std::string > &extensions={})
std::string string
Definition: cl2.hpp:574