All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fileSystem.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
#define OPENPOSE_UTILITIES_FILE_SYSTEM_HPP
#include <openpose/core/common.hpp>
namespace op
{
OP_API void makeDirectory(const std::string& directoryPath);
OP_API bool existDirectory(const std::string& directoryPath);
OP_API bool existFile(const std::string& filePath);
OP_API std::string formatAsDirectory(const std::string& directoryPathString);
OP_API std::string getFileNameAndExtension(const std::string& fullPath);
OP_API std::string getFileNameNoExtension(const std::string& fullPath);
OP_API std::string getFileExtension(const std::string& fullPath);
OP_API std::string getFullFilePathNoExtension(const std::string& fullPath);
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::vector<std::string> getFilesOnDirectory(const std::string& directoryPath,
const std::string& extension);
OP_API std::string removeSpecialsCharacters(const std::string& stringToVariate);
OP_API void removeAllOcurrencesOfSubString(std::string& stringToModify, const std::string& substring);
OP_API void replaceAll(std::string& stringText, const char charToChange, const char charToAdd);
}
#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