OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
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 
27  OP_API std::string getFileNameAndExtension(const std::string& fullPath);
28 
34  OP_API std::string getFileNameNoExtension(const std::string& fullPath);
35 
42  OP_API std::string getFileExtension(const std::string& fullPath);
43 
49  OP_API std::string getFullFilePathNoExtension(const std::string& fullPath);
50 
56  OP_API std::string getFileParentFolderPath(const std::string& fullPath);
57 
65  OP_API std::vector<std::string> getFilesOnDirectory(
66  const std::string& directoryPath, const std::vector<std::string>& extensions = {});
67 
75  OP_API std::vector<std::string> getFilesOnDirectory(
76  const std::string& directoryPath, const std::string& extension);
77 
85  OP_API std::vector<std::string> getFilesOnDirectory(
86  const std::string& directoryPath, const Extensions extensions);
87 
88  OP_API std::string removeSpecialsCharacters(const std::string& stringToVariate);
89 
90  OP_API void removeAllOcurrencesOfSubString(std::string& stringToModify, const std::string& substring);
91 
92  OP_API void replaceAll(std::string& stringText, const char charToChange, const char charToAdd);
93 }
94 
95 #endif // OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
#define OP_API
Definition: macros.hpp:18
OP_API std::string getFileParentFolderPath(const std::string &fullPath)
OP_API std::vector< std::string > getFilesOnDirectory(const std::string &directoryPath, const std::vector< std::string > &extensions={})
OP_API std::string getFileExtension(const std::string &fullPath)
Extensions
Definition: enumClasses.hpp:32
OP_API std::string getFileNameAndExtension(const std::string &fullPath)
OP_API void replaceAll(std::string &stringText, const char charToChange, const char charToAdd)
OP_API std::string getFileNameNoExtension(const std::string &fullPath)
OP_API bool existDirectory(const std::string &directoryPath)
OP_API void removeAllOcurrencesOfSubString(std::string &stringToModify, const std::string &substring)
OP_API std::string removeSpecialsCharacters(const std::string &stringToVariate)
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)
OP_API void makeDirectory(const std::string &directoryPath)