OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <openpose/core/common.hpp>
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
41 OP_API std::string getFileExtension(const std::string& fullPath);
42
48 OP_API std::string getFullFilePathNoExtension(const std::string& fullPath);
49
55 OP_API std::string getFileParentFolderPath(const std::string& fullPath);
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
77 OP_API std::string removeSpecialsCharacters(const std::string& stringToVariate);
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::replaceAll
OP_API void replaceAll(std::string &stringText, const char charToChange, const char charToAdd)
op::getFileParentFolderPath
OP_API std::string getFileParentFolderPath(const std::string &fullPath)
op::removeAllOcurrencesOfSubString
OP_API void removeAllOcurrencesOfSubString(std::string &stringToModify, const std::string &substring)
op::getFileExtension
OP_API std::string getFileExtension(const std::string &fullPath)
op::makeDirectory
OP_API void makeDirectory(const std::string &directoryPath)
op::existDirectory
OP_API bool existDirectory(const std::string &directoryPath)
common.hpp
op::getFileNameAndExtension
OP_API std::string getFileNameAndExtension(const std::string &fullPath)
op::getFileNameNoExtension
OP_API std::string getFileNameNoExtension(const std::string &fullPath)
op::formatAsDirectory
OP_API std::string formatAsDirectory(const std::string &directoryPathString)
op::getFullFilePathNoExtension
OP_API std::string getFullFilePathNoExtension(const std::string &fullPath)
op::existFile
OP_API bool existFile(const std::string &filePath)
OP_API
#define OP_API
Definition: macros.hpp:19
op::removeSpecialsCharacters
OP_API std::string removeSpecialsCharacters(const std::string &stringToVariate)
op::getFilesOnDirectory
OP_API std::vector< std::string > getFilesOnDirectory(const std::string &directoryPath, const std::vector< std::string > &extensions={})
cl::string
std::string string
Definition: cl2.hpp:574